import { type FailoverReason } from './reason.js';
export type { FailoverReason };
export declare class FailoverError extends Error {
    readonly reason: FailoverReason;
    readonly provider?: string;
    readonly model?: string;
    readonly status?: number;
    readonly code?: string;
    constructor(message: string, reason: FailoverReason, provider?: string, model?: string, status?: number, code?: string, cause?: unknown);
}
export declare function isFailoverError(err: unknown): err is FailoverError;
export declare function describeFailoverError(err: unknown): {
    message: string;
    reason: FailoverReason;
    status: number;
    code: string;
} | {
    message: string;
    reason: FailoverReason;
    status?: undefined;
    code?: undefined;
};
