import { type CellData, type Point, type ViewBox } from './diagram-geometry.js'; /** Number of `` pages in the document. */ export declare function countPages(content: string): number; /** * Pre-pass: distribute the border anchors of every baked-waypoint edge so connectors * that share a table side fan out to DISTINCT points instead of stacking on one (e.g. * a hub whose edges all source from the PK row, GH-563). Groups each edge endpoint by * its effective table + side (left/right, chosen by the adjacent bend), then spreads the * group's anchors evenly down that border span. Returns edge-id → {source?, target?}. * Reusable and side-effect free. */ export declare function distributeEdgeAnchors(edges: CellData[], cellMap: Map): Map; /** The painted inner SVG markup (the `` body) + its viewBox. */ export declare function renderDiagramContent(content: string, pageIndex?: number): { inner: string; viewBox: ViewBox; }; /** A standalone, viewBox-stamped SVG document for the given drawio page. */ export declare function renderDiagramSvg(content: string, pageIndex?: number): string;