export default useAutoCapturer; /** * @template {object} T - Type of frame * @param {{ * compareFn: (currentFrame: T, newFrame: T) => boolean, * duration: number * minFrames: number | null * }} */ declare function useAutoCapturer({ compareFn, duration, minFrames }: { compareFn: (currentFrame: T, newFrame: T) => boolean; duration: number; minFrames: number | null; }): { captureFrame: (frame: T) => void; getBestResult: () => T; isAutoCapturing: () => boolean; startCapturing: ({ initialFrame, onDone }: { initialFrame: T; }) => void; stopCapturing: () => void; };