import type { OutputEvent } from '../agent/types.js'; export declare const FIRST_EVENT_TIMEOUT_MS = 90000; export declare const NEXT_EVENT_TIMEOUT_MS = 180000; export declare const MAX_TOOL_INFLIGHT_MS = 660000; export declare const TOOL_INFLIGHT_RECHECK_MS = 15000; export declare const MAX_API_ROUND_HEADROOM_MS = 60000; export declare function resolveMaxApiRoundInflightMs(): number; export declare const PROGRESS_START_DELAY_MS = 5000; export interface WatchdogState { receivedAny: boolean; timedOut: boolean; lastActivityAt: number; inFlightTools: Set; toolInFlightSince: number | null; pausedUntil: Date | null; apiRoundInFlight: boolean; apiRoundSince: number | null; } export declare const PAUSE_SLACK_MS = 90000; export declare function makeNextWithTimeout(iter: AsyncIterator, state: WatchdogState): () => Promise>; export declare function armProgressGateTimer(remainingMs: number, onOpen: () => void, isTurnEnded: () => boolean): ReturnType;