import { MonkApiConfig } from '@monkvision/network'; /** * Parameters of the useCaptureDuration hook. */ export interface CaptureDurationParams { /** * The inspection ID. */ inspectionId: string; /** * The api config used to communicate with the API. */ apiConfig: MonkApiConfig; /** * Boolean indicating if the inspection is completed or not. */ isInspectionCompleted: boolean; /** * Interval in milliseconds for the heartbeat to update the duration. */ heartbeatInterval?: number; /** * Idle timeout in milliseconds to pause the capture duration tracking. */ idleTimeout?: number; } /** * Handle used to manage the capture duration. */ export interface HandleCaptureDuration { /** * Callback to update the capture duration in the API. */ updateDuration: () => Promise; } /** * Custom hook used to track the duration of an inspection session. */ export declare function useCaptureDuration({ apiConfig, inspectionId, isInspectionCompleted, heartbeatInterval, idleTimeout, }: CaptureDurationParams): HandleCaptureDuration;