export type DetectBarcodeParams = {
    image: HTMLElement | Blob | HTMLCanvasElement | HTMLImageElement | HTMLVideoElement | ImageBitmap | ImageData | SVGImageElement | undefined;
    formats?: string[];
};
export type Barcode = {
    format: string;
    rawValue: string;
};
export declare function detectBarcode({ image, formats }: DetectBarcodeParams): Promise<Barcode[]>;
