import type { ApiTaskType } from '../../../../../api/taskStatus/taskStatus.types';
/**
 * Custom hook that polls for a specific task status with a built-in timeout.
 * It manages the timeout state, stopping polling if the task completes, errors out, or the timeout is reached.
 *
 * @param taskType - The specific type of task to monitor.
 * @param timeoutMs - The duration in milliseconds before timing out if the task is still processing.
 * @returns Status indicators and the current task status.
 */
export declare const useTaskStatusWithTimeout: (taskType: ApiTaskType, timeoutMs?: number) => {
    submitStatus: "FINISHED" | "PROCESSING" | "DETAILS_REQUIRED" | "ERROR" | undefined;
    decisionMakerStatus: "FINISHED" | "PROCESSING" | "DETAILS_REQUIRED" | "ERROR" | "UNKNOWN";
    isLoading: boolean;
    isErrorOrDetailsRequired: boolean;
};
