import { _ as GraphFormatConverter, f as Graph } from "../../types-BAEQTwK_.mjs"; //#region src/formats/dot/index.d.ts /** * Converts a graph to a DOT (Graphviz) format string. * * @example * ```ts * import { createGraph, toDOT } from '@statelyai/graph'; * * const graph = createGraph({ * nodes: { a: {}, b: {} }, * edges: [{ source: 'a', target: 'b' }], * }); * * const dot = toDOT(graph); * // digraph "" { * // a; * // b; * // a -> b; * // } * ``` */ declare function toDOT(graph: Graph): string; /** * Parses a DOT (Graphviz) format string into a graph. * * @example * ```ts * import { fromDOT } from '@statelyai/graph'; * * const graph = fromDOT(` * digraph { * a -> b; * b -> c; * } * `); * * graph.nodes; // [{id: 'a', ...}, {id: 'b', ...}, {id: 'c', ...}] * graph.edges; // [{sourceId: 'a', targetId: 'b', ...}, ...] * ``` */ declare function fromDOT(dot: string): Graph; /** * Bidirectional converter for DOT (Graphviz) format. * * @example * ```ts * import { dotConverter, createGraph } from '@statelyai/graph'; * * const graph = createGraph({ * nodes: { a: {}, b: {} }, * edges: [{ source: 'a', target: 'b' }], * }); * * const dot = dotConverter.to(graph); * const roundTripped = dotConverter.from(dot); * ``` */ declare const dotConverter: GraphFormatConverter; //#endregion export { dotConverter, fromDOT, toDOT };