//#region src/encoder/types.d.ts /** * 纠错级别 * - L: ~7% 纠错能力 * - M: ~15% 纠错能力 * - Q: ~25% 纠错能力 * - H: ~30% 纠错能力 */ type ErrorCorrectionLevel = 'L' | 'M' | 'Q' | 'H'; interface QRCodeOptions { /** 纠错级别,默认 'M';L 容量最大,H 纠错能力最强 */ errorCorrection?: ErrorCorrectionLevel; /** 最小版本(1-40),默认自动选择最小可用版本 */ minVersion?: number; } //#endregion //#region src/encoder/matrix.d.ts /** * 从文本内容生成 QR 码模块矩阵 * @returns boolean[][] 其中 true = 黑色, false = 白色 */ declare function encode(text: string, options?: QRCodeOptions): boolean[][]; //#endregion export { ErrorCorrectionLevel as n, QRCodeOptions as r, encode as t }; //# sourceMappingURL=index-BZTsHcHW.d.mts.map