import { MonkApiConfig } from '@monkvision/network'; import { type BaseVideoCaptureConfig, type VideoCaptureHybridConfig } from '@monkvision/types'; import { PhotoCaptureProps } from '../PhotoCapture/PhotoCapture'; /** * Base props shared by all VideoCapture configurations. */ export interface BaseVideoCaptureProps { /** * The ID of the inspection to add the video frames to. */ inspectionId: string; /** * The api config used to communicate with the API. Make sure that the user described in the auth token is the same * one as the one that created the inspection provided in the `inspectionId` prop. */ apiConfig: MonkApiConfig; /** * Callback called when the inspection is complete (after all workflows are finished). */ onComplete?: () => void; /** * The language to be used by this component. * * @default en */ lang?: string; /** * Callback called after a picture is taken. Hybrid mode only. */ onPictureTaken?: PhotoCaptureProps['onPictureTaken']; /** * Callback called when the user clicks on the close video button. */ onCloseVideo?: () => void; } /** * Props of the VideoCapture component. */ export type VideoCaptureProps = BaseVideoCaptureProps & BaseVideoCaptureConfig; /** * Props of the VideoCapture component when photo capture is enabled (hybrid mode). */ export type HybridVideoProps = BaseVideoCaptureProps & VideoCaptureHybridConfig; export declare function VideoCapture(props: VideoCaptureProps): import("react").JSX.Element;