/** * Retry Utility * Exponential backoff retry logic for LLM provider requests */ import type { RetryConfig } from '../types.js'; import type { Logger } from './logger.js'; export declare class RetryManager { private config; private logger; constructor(config?: Partial, logger?: Logger); /** * Execute a function with retry logic */ execute(fn: () => Promise, context?: string): Promise; /** * Check if an error should be retried */ private shouldRetry; /** * Calculate delay before next retry attempt */ private calculateDelay; /** * Promise-based delay */ private delay; /** * Update retry configuration */ updateConfig(config: Partial): void; /** * Get current configuration */ getConfig(): RetryConfig; } /** * Default retry manager instance */ export declare const defaultRetryManager: RetryManager; /** * Retry decorator for async functions */ export declare function withRetry(retryConfig?: Partial): (_target: object, propertyKey: string, descriptor: TypedPropertyDescriptor<(...args: T) => Promise>) => TypedPropertyDescriptor<(...args: T) => Promise>; /** * Simple retry function for one-off operations */ export declare function retry(fn: () => Promise, config?: Partial): Promise; //# sourceMappingURL=retry.d.ts.map