/** A rectangle's on-screen geometry — only the fields the math needs. */ export type RectLike = { left: number; top: number; width: number; height: number; }; /** A viewBox's page-unit dimensions. */ export type VbLike = { width: number; height: number; }; /** An on-screen box in CSS px relative to the page's . */ export type ScreenBox = { left: number; top: number; width: number; height: number; }; /** Forward map: an on-screen click (clientX/clientY) → PAGE-unit (x,y) to feed adapter.hitTest / * adapter.tableAt. Returns null when the page isn't laid out yet (any zero dimension → guard). */ export declare function screenToPage(clientX: number, clientY: number, rect: RectLike, vb: VbLike): { x: number; y: number; } | null; /** A box in PAGE units (own-render px). */ export type PageBox = { x: number; y: number; w: number; h: number; }; /** Map a PAGE-unit box → CSS-px {left,top,width,height} relative to the page's box — the * inverse-scale the SelectionOverlay uses (same rect/viewBox ratio as the forward map, so the mark * tracks the SVG zoom exactly). Returns null on any zero dimension (page not laid out). */ export declare function pageBoxToScreen(box: PageBox, rect: { width: number; height: number; }, vb: VbLike): ScreenBox | null; /** Read the page-unit viewBox off a live , falling back to its width/height attrs (own-render * SVGs carry an explicit viewBox; the fallback keeps a hand-rolled SVG working in the demo). */ export declare function readViewBox(svg: SVGSVGElement): VbLike; //# sourceMappingURL=coords.d.ts.map