import React, { MutableRefObject } from "react"; import { Dispatch, SetStateAction } from "react"; import { ModelPrediction } from "./types/Model"; import { CardScanApi } from "../types/types"; import { PerformanceData } from "../types/general.types"; import AdaptiveThreshold from "../utils/AdaptiveThreshold"; import { ScanGuidance, ScanGuidanceUI } from "../utils/ScanGuidance"; export declare const scanHandler: (videoRefBg: React.RefObject, frameDivRef: React.RefObject, captureCanvasRef: React.RefObject, detectionCanvasRef: React.RefObject, debugCanvasLatestRef: React.RefObject, debugCanvasBestRef: React.RefObject, scanCountRef: React.MutableRefObject, performanceCountRef: React.MutableRefObject, topPredictions: React.MutableRefObject, getPerformanceData: () => PerformanceData, setLatestScore: Dispatch>, setLatestLaplacian: Dispatch>, setBestScore: Dispatch>, setBestClass: Dispatch>, setLastClass: Dispatch>, setBestLaplacian: Dispatch>, setModelState: Dispatch>, setScanDebugState: Dispatch>, setScanProgress: Dispatch>, flipHorizontal: boolean | undefined, flipVertical: boolean | undefined, scanCaptureBuffer: any, adaptiveThreshold: AdaptiveThreshold, onError: any, scanProgress: any, softMaxUploads: any, bufferSize: any, videoMetadata: any, cardScanApi: React.MutableRefObject, cardIdRef: any, stateMachineState: any, stateMachineSend: any, metricsDumpRef: MutableRefObject, guidanceUI: MutableRefObject, scanGuidance: MutableRefObject, handleGuidanceUI: (newGuideMessage: string, guideColor: "detected" | "notDetected") => void, debugMenu?: boolean) => void;