import type { LayoutEngine, LayoutOptions } from "../editor";
import type { DagreLike } from "./types";
export interface CreateDagreEngineOptions {
    /** Default spacing between nodes within a rank (default 60). */
    nodeSpacing?: number;
    /** Default spacing between ranks (default 80). */
    rankSpacing?: number;
    /** Default direction — TB, BT, LR, RL. Defaults to TB. */
    direction?: LayoutOptions["direction"];
}
/**
 * Build a `LayoutEngine` backed by a consumer-supplied `dagre` module.
 *
 * `dagre` can be passed as either the default export or the namespace
 * import (`import * as dagre from "dagre"`). The adapter probes both
 * shapes so consumers don't have to think about it.
 */
export declare function createDagreEngine(dagre: DagreLike | {
    default: DagreLike;
} | {
    graphlib: DagreLike["graphlib"];
    layout: DagreLike["layout"];
}, defaults?: CreateDagreEngineOptions): LayoutEngine;
//# sourceMappingURL=dagre.d.ts.map