UNPKG

@nuintun/qrcode

Version:

A pure JavaScript QRCode encode and decode library.

26 lines (25 loc) 577 B
/** * @module Detector */ import { Detected } from './Detected.js'; import { BitMatrix } from '../common/BitMatrix.js'; export interface Options { /** * @property strict * @description Enable strict mode. */ strict?: boolean; } export declare class Detector { #private; /** * @constructor * @param options The options of detector. */ constructor(options?: Options); /** * @method detect Detect the binarized image matrix. * @param matrix The binarized image matrix. */ detect(matrix: BitMatrix): Generator<Detected, void, boolean>; }