import { _ as GraphFormatConverter, f as Graph } from "../../types-BAEQTwK_.mjs"; //#region src/formats/gml/index.d.ts /** * Converts a graph to GML (Graph Modelling Language) string. * * @example * ```ts * import { createGraph } from '@statelyai/graph'; * import { toGML } from '@statelyai/graph/gml'; * * const graph = createGraph({ * nodes: [{ id: 'a' }, { id: 'b' }], * edges: [{ id: 'e0', sourceId: 'a', targetId: 'b' }], * }); * * const gml = toGML(graph); * // graph [ * // directed 1 * // node [ id "a" ] * // node [ id "b" ] * // edge [ id "e0" source "a" target "b" ] * // ] * ``` */ declare function toGML(graph: Graph): string; /** * Parses a GML (Graph Modelling Language) string into a graph. * * @example * ```ts * import { fromGML } from '@statelyai/graph/gml'; * * const graph = fromGML(` * graph [ * directed 1 * node [ id "a" ] * node [ id "b" ] * edge [ source "a" target "b" ] * ] * `); * ``` */ declare function fromGML(gml: string): Graph; /** * Bidirectional converter for GML (Graph Modelling Language) format. * * @example * ```ts * import { createGraph } from '@statelyai/graph'; * import { gmlConverter } from '@statelyai/graph/gml'; * * const graph = createGraph({ * nodes: [{ id: 'a' }, { id: 'b' }], * edges: [{ id: 'e0', sourceId: 'a', targetId: 'b' }], * }); * * const gml = gmlConverter.to(graph); * const roundTripped = gmlConverter.from(gml); * ``` */ declare const gmlConverter: GraphFormatConverter; //#endregion export { fromGML, gmlConverter, toGML };