/** * Excalidraw JSON → standalone SVG. * * Sketchy elements (`roughness > 0`) are drawn through roughjs with the same * per-element seed Excalidraw uses, so the SVG mirrors what Excalidraw shows. * Clean elements (`roughness === 0`) become plain SVG primitives. All text and * attribute values are escaped; colours are validated before use. * @module render/svg */ export type SvgOptions = { /** * Whitespace around the drawing (default 24). */ padding?: number; /** * Background colour (default: document background). */ background?: string; /** * Inline Excalifont as a data URL (default true). */ embedFont?: boolean; /** * Include hook states and full hover hit regions for an inline SVG host (default false). */ interactive?: boolean; }; export type HookVariants = { name: string; id: string | null; classes: string[]; hover: any; click: any; parent: string | null; clickFromChildren: boolean; button: boolean; }; /** * @typedef {object} SvgOptions * @property {number} [padding] Whitespace around the drawing (default 24). * @property {string} [background] Background colour (default: document background). * @property {boolean} [embedFont] Inline Excalifont as a data URL (default true). * @property {boolean} [interactive] Include hook states and full hover hit regions for an inline SVG host (default false). */ /** @typedef {{ name: string, id: string | null, classes: string[], hover: any, click: any, parent: string | null, clickFromChildren: boolean, button: boolean }} HookVariants */ /** * Escape text content for XML. * @param {string} s */ export declare function escapeXml(s: string): string; /** * Convert an Excalidraw document to SVG markup. * @param {import("./excalidraw.mjs").ExcalidrawDocument} doc * @param {SvgOptions} [options] * @returns {string} * @public */ export declare function excalidrawToSvg(doc: import("./excalidraw.mjs").ExcalidrawDocument, options?: SvgOptions): string;