/** * A small QR encoder, enough to turn a URL into a scannable grid. * * Written rather than pulled in so the package keeps its "no dependencies" promise, and so no * reader's document URL is handed to a third-party image service to be logged. Deliberately * narrow: byte mode, error-correction level M, versions 1-10 (up to 271 characters at level M), * which covers any sane page URL. Longer input throws rather than silently producing a code that * will not scan. */ /** Encode `text` as a QR matrix: a square of 0/1 by row. */ export declare function encodeQr(text: string): { size: number; modules: Uint8Array; }; /** Render a QR matrix as an SVG string, sized to `px`. */ export declare function qrSvg(text: string, px: number): string;