import { I as VisualGraph, f as Graph } from "../types-BAEQTwK_.mjs"; import { LayoutOptions } from "./index.mjs"; //#region src/layout/dagre.d.ts interface DagreLayoutOptions extends LayoutOptions { /** * Raw dagre graph options, spread onto `setGraph` last (override * everything). See https://github.com/dagrejs/dagre/wiki#configuring-the-layout */ graphOptions?: Record; } /** * Lay out a graph with dagre (`@dagrejs/dagre`, an optional peer dependency). * Pure and synchronous: returns a new {@link VisualGraph} with node * positions/sizes, polyline edge `points`, and computed edge label rects * (dagre's own `edge.x/y` label convention maps directly onto ours). * Compound graphs are supported via dagre's `setParent`. All coordinates are * absolute (dagre does not produce parent-relative positions). * * Per-edge `mode` is ignored by dagre (it layers everything by authored * direction) — for mixed graphs prefer {@link getElkLayout}. * * @example * ```ts * import { getDagreLayout } from '@statelyai/graph/layout/dagre'; * * const laidOut = getDagreLayout(graph, { direction: 'right' }); * ``` */ declare function getDagreLayout(graph: Graph | VisualGraph, options?: DagreLayoutOptions): VisualGraph; //#endregion export { DagreLayoutOptions, getDagreLayout };