import type { ClassifiedError } from './providerFailoverTypes.ts'; /** * Thrown when every provider in the chain has been exhausted. * Carries the category of the most recent failure so callers can * decide whether to escalate or provide a fallback experience. */ export declare class AllProvidersFailedError extends Error { readonly category: string; constructor(errors: string[], category?: string); } /** * Classify an error into a structured category with retry/cooldown semantics. * Checks typed error classes first (AuthError, RateLimitedError, etc.), * then falls back to HTTP status codes embedded in error messages, * then returns 'unknown' as the default. */ export declare function classifyError(err: unknown): ClassifiedError; //# sourceMappingURL=ProviderFailoverError.d.ts.map