import { PhotoCaptureAppConfig, Sight } from '@monkvision/types'; import { LoadingState } from '@monkvision/common'; import { MonkApiConfig } from '@monkvision/network'; /** * Parameters of the useStartTasksOnComplete hook. */ export interface UseStartTasksOnCompleteParams extends Pick { /** * The inspection ID. */ inspectionId: string; /** * The api config used to communicate with the API. */ apiConfig: MonkApiConfig; /** * Global loading state of the PhotoCapture component. */ loading: LoadingState; /** * The list of sights passed to the PhotoCapture component. */ sights?: Sight[]; } /** * Callback to be called when the PhotoCapture inspection is complete in order to start (or not) to inspection tasks. */ export type StartTasksFunction = () => Promise; /** * Custom hook used to generate a callback called at the end of the PhotoCapture inspection in order to automatically * start (or not) the inspection tasks. */ export declare function useStartTasksOnComplete({ inspectionId, apiConfig, sights, additionalTasks, tasksBySight, startTasksOnComplete, loading, }: UseStartTasksOnCompleteParams): StartTasksFunction;