/** * Zero-dependency QR Code encoder (ISO/IEC 18004). * * Produces the module matrix for a piece of text — no rendering, no runtime * dependency. Supports numeric / alphanumeric / byte segment modes (whichever * is most compact for the input), all 40 versions, the four error-correction * levels, and automatic data-mask selection by the standard penalty rules. * * The algorithm follows the reference structure of Project Nayuki's public * QR generator (the canonical, spec-faithful design); the code here is an * independent TypeScript implementation of the ISO standard. */ export type QrEcl = 'L' | 'M' | 'Q' | 'H'; /** * Encode `text` into a QR module matrix (`true` = dark). The returned matrix has * no quiet zone — the renderer adds it. Throws when the text does not fit any * version at the requested ECC level. */ export declare function encodeQr(text: string, ecl?: QrEcl, opts?: { minVersion?: number; maxVersion?: number; }): boolean[][];