import { hasRetryableProperty, LLMProviderError, type RetryableError } from "../error.js";
export { hasRetryableProperty, type RetryableError };
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);
}
/**
 * Error thrown when a stream has been idle for too long.
 * This is a retryable error that triggers the retry logic.
 */
export declare class StallTimeoutError extends Error implements RetryableError {
    name: string;
    readonly isRetryable = true;
    readonly idleTimeMs: number;
    readonly maxIdleTimeMs: number;
    constructor(idleTimeMs: number, maxIdleTimeMs: number);
}
/**
 * Wraps an error for consistent error handling.
 */
export declare function wrapError(err: unknown, provider?: string): LLMProviderError;
//# sourceMappingURL=errors.d.ts.map