/** * Structured form of a provider error string. Provider errors look something * like ` ` (Anthropic, OpenAI) or `` (Gemini). * This helper makes a best-effort guess: walk the JSON, grab the deepest * `message` string and the first 3-digit `code`/`status` field. */ export interface FormattedProviderError { status?: string; message: string; details?: string; raw: string; } export declare function formatProviderError(raw: string | undefined): FormattedProviderError; /** Compact one-liner suitable for notification toasts. */ export declare function formattedProviderErrorToShortString(e: FormattedProviderError): string; //# sourceMappingURL=provider-error-formatter.d.ts.map