/** * Compact SVG serialisation of a QR module matrix. * * Emits one move + horizontal-run command per dark stretch on each * row. Gzip likes the repetition; for a typical 25-30-module Thai QR * Payment payload the path is 1-2 KB before compression. */ import type { QRMatrix } from '@thai-qr-payment/qr'; /** Build a path-data string covering every dark module in the matrix. */ export declare function matrixToPath(matrix: QRMatrix): string; export interface QRSvgOptions { /** Output width in user units (px by default). Defaults to module count. */ size?: number; /** Quiet-zone width in modules. EMVCo recommends 4. */ quietZone?: number; /** Dark module colour. Defaults to `#000`. */ foreground?: string; /** Background colour (set to `transparent` to omit). Defaults to `#fff`. */ background?: string; /** Additional attributes added verbatim to the root `` element. */ rootAttributes?: Record; } /** Render a QR matrix to a self-contained `` string. */ export declare function renderQRSvg(matrix: QRMatrix, options?: QRSvgOptions): string; declare function escapeXmlAttribute(value: string): string; export { escapeXmlAttribute }; //# sourceMappingURL=matrix-svg.d.ts.map