export interface RetryStrategy { attemptRetry(error: Error): Promise; reset(): void; } export interface RetryStrategyResult { } export declare class Retry implements RetryStrategyResult { waitTimeMillis: number; constructor(waitTimeMillis: number); } export declare class DoNotRetry implements RetryStrategyResult { error: Error; constructor(error: Error); } export declare class ExponentialBackoffRetryStrategy implements RetryStrategy { private logger; private limit; private retryCount; private maxBackoffMillis; private defaultBackoffMillis; private currentBackoffMillis; constructor(options: any); private shouldRetry(error); attemptRetry(error: Error): Promise; isRetryable(error: Error): RetryableResult; reset(): void; private calulateMillisToRetry(); } export declare type RetryableResult = { isRetryable: boolean; backoffMillis?: number; };