import type { OpenCodeStreamEvent } from '../OpenCodeStreamHandler.js'; import type { OpenCodeGuard, OpenCodeGuardLifecycleScope, OpenCodeGuardVerdict } from './types.js'; export { STALE_IN_FLIGHT_TOOL_FACTOR } from '../../../shared/types/provider-deadline.js'; export declare function describeOpenCodeIdleTimeout(timeoutMs: number): string; export declare class InactivityTimeoutGuard implements OpenCodeGuard { private readonly timeoutMs; readonly id = "inactivity-timeout"; readonly layer: "time"; private timeoutId; private onVerdict; private readonly inFlightTools; private readonly staleAfterMs; constructor(timeoutMs: number); start(scope: OpenCodeGuardLifecycleScope, onVerdict: (verdict: OpenCodeGuardVerdict) => void): void; onEvent(event: OpenCodeStreamEvent): OpenCodeGuardVerdict | undefined; stop(scope: OpenCodeGuardLifecycleScope): void; private arm; private fail; private schedule; private disarm; } export declare class IdleTimeoutGuard implements OpenCodeGuard { private readonly timeoutMs; readonly id = "idle-timeout"; readonly layer: "time"; private timeoutId; private onVerdict; private readonly inFlightTools; private readonly staleAfterMs; constructor(timeoutMs: number); start(scope: OpenCodeGuardLifecycleScope, onVerdict: (verdict: OpenCodeGuardVerdict) => void): void; onEvent(event: OpenCodeStreamEvent): OpenCodeGuardVerdict | undefined; stop(scope: OpenCodeGuardLifecycleScope): void; private arm; private earliestStaleDeadline; private schedule; private disarm; } //# sourceMappingURL=time-guards.d.ts.map