import { LLMProviderError } from "../error.js";
export declare class RetriesExhaustedError extends Error {
    name: string;
    readonly attempts: number;
    readonly totalTimeMs: number;
    constructor(attempts: number, totalTimeMs: number, cause?: unknown);
}
export declare class AbortedError extends Error {
    name: string;
    constructor(message?: string);
}
/**
 * Wraps an error for consistent error handling.
 */
export declare function wrapError(err: unknown, provider?: string): LLMProviderError;
//# sourceMappingURL=errors.d.ts.map