import type { ResolvedAnnotation } from "./model.js"; export { annotationsToSvg, escapeXml, wrapText, anchorPoint }; export type { PlacedAnnotation, BlurRegion, Rect }; type Rect = { x: number; y: number; width: number; height: number; }; type Point = { x: number; y: number; }; type PlacedAnnotation = ResolvedAnnotation & { rect: Rect; element?: any; }; type BlurRegion = { rect: Rect; intensity: number; id?: string; track?: boolean; }; declare function escapeXml(value: string): string; declare function wrapText(text: string, maxWidth: number, fontSize: number): string[]; declare function anchorPoint(rect: Rect, region: unknown): Point; /** * Render placed annotations into a single SVG overlay sized to the canvas, * plus the blur regions the caller must apply itself. * * @param items Annotations whose rects are already in image pixels, relative * to the canvas origin (the geometry layer handles scaling and any crop * offset). * @param canvas Dimensions of the image the overlay composites onto. */ declare function annotationsToSvg(items: PlacedAnnotation[], canvas: { width: number; height: number; }): { svg: string; blurRegions: BlurRegion[]; }; //# sourceMappingURL=svg.d.ts.map