/** * QR Code encoder (ISO/IEC 18004), byte mode, versions 1–40, used to print * the code that opens a video resource (#454). The algorithm follows * Project Nayuki's reference implementation (MIT): data bits → Reed–Solomon * blocks interleaved → function patterns → codewords in the zigzag → the * mask with the lowest penalty. */ /** Error-correction level: about 7 %, 15 %, 25 % or 30 % of the code can be * damaged (or covered) and still read. */ export type QrErrorCorrection = 'L' | 'M' | 'Q' | 'H'; /** A QR symbol: `size` × `size` modules, row by row, `'1'` for a dark * module. The quiet zone around it is not included. */ export interface QrMatrix { size: number; rows: string[]; } /** Encode `text` (UTF-8, byte mode) in the smallest version that holds it at * `ecl`, raising the level while the version still holds the data. * `undefined` when even version 40 is too small. */ export declare function encodeQr(text: string, ecl?: QrErrorCorrection): QrMatrix | undefined; //# sourceMappingURL=qr.d.ts.map