import { type BarcodeFormat, type DetectedBarcode } from 'barcode-detector/ponyfill';
import { type RefObject } from 'react';
import type { IScannerError } from '../types';
interface IUseScannerProps {
    videoElementRef: RefObject<HTMLVideoElement | null>;
    onScan: (result: DetectedBarcode[]) => void;
    onFound: (result: DetectedBarcode[]) => void;
    onError?: (error: IScannerError) => void;
    formats?: BarcodeFormat[];
    sound?: boolean | string;
    allowMultiple?: boolean;
    retryDelay?: number;
    scanDelay?: number;
}
export default function useScanner(props: IUseScannerProps): {
    startScanning: () => void;
    stopScanning: () => void;
};
export {};
//# sourceMappingURL=useScanner.d.ts.map