import type { EdgeConfig, GraphLabel, NodeConfig } from 'dagre';
import type { Graph, Layout, LayoutMapping, Node } from './types';
import { type Size } from './util/size';
export interface DagreLayoutOptions extends GraphLabel, NodeConfig, EdgeConfig {
nodeSize?: Size | ((node: Node) => Size);
}
/**
* Dagre 布局
*
* Dagre layout
*/
export declare class DagreLayout implements Layout {
static defaultOptions: Partial;
id: string;
options: Partial;
constructor(options: Partial);
execute(graph: Graph, options?: DagreLayoutOptions): Promise;
assign(graph: Graph, options?: DagreLayoutOptions): Promise;
private genericDagreLayout;
}