import type { ProviderErrorCategory, ProviderErrorSurface } from './error-classify.js'; import type { ProviderErrorResponse } from './errors.js'; /** * Helper to classify a provider error response directly. * Wraps the error classification logic to work with ProviderErrorResponse. */ export declare function classifyProviderErrorResponse(response: ProviderErrorResponse): ProviderErrorSurface; export interface RuntimeRetryInfo { attempt: number; category: ProviderErrorCategory; backoffMs: number; willRetry: boolean; } export interface RuntimeRetryOptions { classify: (err: unknown) => ProviderErrorSurface; onRetry?: (info: RuntimeRetryInfo) => void; backoffMs?: [number, number]; shouldRetry?: (surface: ProviderErrorSurface) => boolean; signal?: AbortSignal; maxAttempts?: 1; } export declare function runWithProviderRetry(fn: () => Promise, opts: RuntimeRetryOptions): Promise; //# sourceMappingURL=runtime-retry.d.ts.map