import { BarcodeDetectorOptions, BarcodeFormat, DetectedBarcode } from "./basic-types"; import SleepyWorker from "./SleepyWorker"; export default class BarcodeDetector { worker: SleepyWorker; workerLoad: number; messageCount: number; constructor(barcodeDetectorOptions?: BarcodeDetectorOptions); static getSupportedFormats(): Promise; detect(image: ImageBitmapSource): Promise; }