/// import { QRCode, Options } from 'jsqr'; export type CodeResult = QRCode | null; export declare class QrcodeDecoder { timerCapture: null | NodeJS.Timeout; canvasElem: null | HTMLCanvasElement; gCtx: null | CanvasRenderingContext2D; stream: null | MediaStream; videoElem: null | HTMLVideoElement; getUserMediaHandler: null; videoConstraints: MediaStreamConstraints; defaultOption: Options; constructor(); /** * Verifies if canvas element is supported. */ isCanvasSupported(): boolean; _createImageData(target: CanvasImageSource, width: number, height: number): ImageData; /** * Prepares the canvas element (which will * receive the image from the camera and provide * what the algorithm needs for checking for a * QRCode and then decoding it.) * * * @param {DOMElement} canvasElem the canvas * element * @param {number} width The width that * the canvas element * should have * @param {number} height The height that * the canvas element * should have * @return {DOMElement} the canvas * after the resize if width and height * provided. */ _prepareCanvas(width: number, height: number): void; /** * Based on the video dimensions and the canvas * that was previously generated captures the * video/image source and then paints into the * canvas so that the decoder is able to work as * it expects. * @param {DOMElement} videoElem