import type { Graph, Layout, LayoutMapping, RandomLayoutOptions } from './types'; /** * 随机布局 * * Random layout */ export declare class RandomLayout implements Layout { options: RandomLayoutOptions; id: string; constructor(options?: RandomLayoutOptions); /** * Return the positions of nodes and edges(if needed). */ execute(graph: Graph, options?: RandomLayoutOptions): Promise; /** * To directly assign the positions to the nodes. */ assign(graph: Graph, options?: RandomLayoutOptions): Promise; private genericRandomLayout; }