import { FaceDetectionI18n, FaceDetectionResult, LegendOptions } from "../../types"; interface FaceDetection { readonly element: HTMLElement; startCapture: () => void; stop: () => void; checkFaces: (video: HTMLVideoElement, scoreThreshold?: number, minHeight?: number, maxHeight?: number) => Promise; respPicture: FaceDetectionResult; } interface FaceDetectionProps extends LegendOptions { autoCaptureEnabled: boolean; timeToCapture: number; timeToCaptureFeedbackColor: string; scoreThreshold: number; minHeight: number; maxHeight: number; autoCaptureTimeoutFeedbackThickness: number; multipleFacesEnabled: boolean; i18n?: FaceDetectionI18n; detectionResultCallback: (canTake: boolean) => void; adapter?: (videoElement: HTMLVideoElement, scoreThreshold?: number, minHeight?: number, maxHeight?: number) => Promise; } export default function faceDetection(props: FaceDetectionProps): FaceDetection; export {};