/** * Per-server MCP request timeout contract, in seconds. * * The `timeout` field in cline_mcp_settings.json is in SECONDS. Every client * (VSCode extension, CLI, JetBrains) resolves it through this module so all * apply the same default and bounds. Values above MAX are almost always a * milliseconds/seconds mix-up (e.g. `timeout: 60000` meaning 60s), so they * clamp instead of silently becoming hours. */ export declare const DEFAULT_MCP_TIMEOUT_SECONDS = 60; export declare const MIN_MCP_TIMEOUT_SECONDS = 1; export declare const MAX_MCP_TIMEOUT_SECONDS = 3600; export declare function isMcpTimeoutConfigured(value: unknown): value is number; /** * Clamp a timeout in seconds into [MIN_MCP_TIMEOUT_SECONDS, MAX_MCP_TIMEOUT_SECONDS]. */ export declare function clampMcpTimeoutSeconds(value: number): number; /** * Resolve a raw `timeout` value from MCP settings to seconds. Never throws: * missing or non-numeric values fall back to the default, so one malformed * field cannot take down a whole settings file. */ export declare function resolveMcpTimeoutSeconds(value: unknown): number; export declare function formatMcpTimeoutErrorMessage(serverName: string, timeoutMs: number, method?: string): string;