/** * Summarizes Connect error detail entries (objects with type / value / debug * fields per the Connect JSON error model). Returns undefined when nothing * usable is present. */ export declare function summarizeConnectErrorDetails(details: unknown): string | undefined; /** * True when Cursor's `aiserver.v1.ErrorDetails` entry declares the failure * retryable. Its JSON `debug` form carries `details.isRetryable` — set on * upstream outages such as ERROR_OPENAI ("Unable to reach the model * provider") whose bare `code: message` text (`unavailable: Error`) * classifies as a hard failure on its own. Other detail types are ignored * even when they share the `debug.details` shape. */ export declare function hasRetryableCursorErrorDetail(details: unknown): boolean; /** * Formats a Connect end-stream error object into a diagnosable message. * The "Connect error code: message" prefix is preserved exactly; detail * entries are appended when present, and when the message itself is generic * the remaining trailer fields are inlined so the error names what the * server actually sent instead of a bare "Error". */ export declare function formatConnectEndStreamError(error: unknown): string;