import { IRetryPolicy, RetryOptions } from './interfaces'; /** * Exponential backoff retry policy with jitter */ export declare class ExponentialBackoffRetry implements IRetryPolicy { private options; private defaultOptions; constructor(options?: Partial); execute(operation: () => Promise, options?: Partial): Promise; canRetry(error: Error, attempt: number): boolean; calculateDelay(attempt: number, baseDelay: number, maxDelay: number): number; private sleep; } /** * Linear backoff retry policy */ export declare class LinearBackoffRetry implements IRetryPolicy { private options; private defaultOptions; constructor(options?: Partial); execute(operation: () => Promise, options?: Partial): Promise; canRetry(error: Error, attempt: number): boolean; calculateDelay(attempt: number, baseDelay: number, maxDelay: number): number; private sleep; } /** * Fixed delay retry policy */ export declare class FixedDelayRetry implements IRetryPolicy { private options; private defaultOptions; constructor(options?: Partial); execute(operation: () => Promise, options?: Partial): Promise; canRetry(error: Error, attempt: number): boolean; calculateDelay(attempt: number, baseDelay: number, maxDelay: number): number; private sleep; } /** * Factory for creating retry policies */ export declare class RetryPolicyFactory { static createExponentialBackoff(options?: Partial): IRetryPolicy; static createLinearBackoff(options?: Partial): IRetryPolicy; static createFixedDelay(options?: Partial): IRetryPolicy; static createDefault(): IRetryPolicy; } /** * Decorators for adding retry logic to functions */ export declare function withRetry(options?: Partial): (target: any, propertyName: string, descriptor: PropertyDescriptor) => PropertyDescriptor; /** * Higher-order function to wrap any async function with retry logic */ export declare function withRetryWrapper(fn: (...args: T) => Promise, options?: Partial): (...args: T) => Promise; //# sourceMappingURL=retryPolicy.d.ts.map