UNPKG

@nuintun/qrcode

Version:

A pure JavaScript QRCode encode and decode library.

20 lines (19 loc) 609 B
/** * @module source */ import { FNC1 } from '../../common/interface.cjs'; import { Version } from '../../common/Version.cjs'; import { TextDecode } from '../../common/encoding/index.cjs'; export interface Structured { readonly index: number; readonly count: number; readonly parity: number; } export interface DecodeSource { readonly content: string; readonly symbology: string; readonly fnc1: FNC1 | false; readonly codewords: Uint8Array; readonly structured: Structured | false; } export declare function decode(codewords: Uint8Array, version: Version, decode: TextDecode): DecodeSource;