import type { IDetectedBarcode, IBarcodeDetector } from './models'; export declare class BarcodeDetector implements IBarcodeDetector { private reader; constructor(options?: { formats: string[]; }); static getSupportedFormats(): Promise; detect(imageSource: ImageBitmapSource): Promise; private blobToImage; private imageDataSourceToCanvas; }