/** * it is possible to add other formats */ export type DataFormat = "dagre" | "graphology"; export type RehypeVizdomConfig = { graphFormat: DataFormat; }; export declare const render: (code: string, options: RehypeVizdomConfig) => Promise<{ svg: string; data: { options: { directed: boolean; multigraph: boolean; compound: boolean; allowSelfLoops?: undefined; multi?: undefined; type?: undefined; }; nodes: { v: string; }[]; edges: { v: string; w: string; name: string; }[]; attributes?: undefined; } | { attributes: { name: string; }; options: { allowSelfLoops: boolean; multi: boolean; type: string; directed?: undefined; multigraph?: undefined; compound?: undefined; }; nodes: { key: string; }[]; edges: { key: string; source: string; target: string; }[]; } | undefined; }>;