/** How a remote agent host kind should be re-established after its transport drops. */ export interface IRemoteAgentHostReconnectPolicy { /** * Whether a dropped transport may be restored automatically, with no user intent. * `false` means the connection is surfaced as lost and recovery waits for an explicit user action. */ readonly autoRestore: boolean; /** First retry delay, in milliseconds. */ readonly initialDelayMs: number; /** Ceiling for exponential backoff, in milliseconds. */ readonly maxDelayMs: number; /** * Consecutive failed attempts before automatic restore gives up. Exhaustion is * terminal for the automatic path; recovery falls back to an explicit user action. */ readonly maxAttempts: number; /** Optional total recovery budget, including backoff and in-flight preparation/handshakes, excluding reported OS sleep. */ readonly maxElapsedTimeMs?: number; /** Spread transport retries within the upper half of their backoff interval. */ readonly jitter?: boolean; } /** Default automatic reconnect policy for remote agent hosts. */ export declare const DEFAULT_RECONNECT_POLICY: IRemoteAgentHostReconnectPolicy; /** * Computes a retry delay after a failed automatic reconnect attempt. * `attempt` is 1-based: pass 1 after the first failure, 2 after the second, and so on. */ export declare function computeReconnectDelay(policy: Pick, attempt: number, random?: () => number): number; /** * Whether automatic reconnect has reached its failure limit. * `attempt` is the 1-based count of consecutive failed automatic reconnect attempts. */ export declare function hasExhaustedReconnectAttempts(policy: IRemoteAgentHostReconnectPolicy, attempt: number): boolean;