import type { BarcodeScannerFormatProfile } from './scannerFormats.js'; import './scannerNativeTypes.js'; export interface StillDecodeResult { readonly payload: string; readonly engine: 'zbar-wasm' | 'zxing' | 'native-detector'; } /** * Grayscale → contrast stretch → Otsu binarization → optional 2× upscale. */ export declare function preprocessStillImageData(source: ImageData, upscale: boolean): ImageData; export declare function decodeBarcodeFromImageFile(file: File, formatProfile?: BarcodeScannerFormatProfile): Promise; export declare function decodeBarcodeFromVideoFrame(video: HTMLVideoElement, formatProfile?: BarcodeScannerFormatProfile, canvas?: HTMLCanvasElement): Promise; //# sourceMappingURL=decodeStillImage.d.ts.map