import type { ServerConnection } from "./connection.ts";
import type { McpLogger } from "./log.ts";
export declare const MCP_RECONNECT_BACKOFF_MS: readonly [500, 1000, 2000, 4000, 8000];
export declare const MCP_RECONNECT_BREAKER_WINDOW_MS = 30000;
export declare const MCP_RECONNECT_BREAKER_ATTEMPTS = 5;
interface McpReconnectOptions {
    readonly connection: ServerConnection;
    readonly logger: McpLogger;
    readonly reconnect: () => Promise<void>;
    readonly shouldReconnect?: () => boolean;
    readonly random?: () => number;
}
export declare function configureMcpReconnect(options: McpReconnectOptions): void;
export declare function disposeMcpReconnect(connection: ServerConnection): void;
export declare function reconnectMcpNow(connection: ServerConnection): Promise<void>;
export declare function getMcpReconnectDebugSnapshot(connection: ServerConnection): {
    attemptsInWindow: number;
    timerHasRef: boolean | null;
};
export {};
//# sourceMappingURL=reconnect.d.ts.map