export default createAutoCapturer; /** * @template {object} T - The type of the frame * @param {(currentFrame: T, newFrame: T) => boolean} compareFn - The function to compare the frame * @param {number} duration - The duration to capture the frame */ declare function createAutoCapturer(compareFn: (currentFrame: T, newFrame: T) => boolean, duration: number): { checkIsTimeUp: () => boolean; compareAndStoreResult: (frame: T) => void; getBestResult: () => T; reset: () => void; };