import { FinalizeHandler, FinalizeHandlerArguments, MetadataBearer, Provider } from "@smithy/types"; import { RateLimiter } from "@smithy/util-retry"; import { StandardRetryStrategyOptions } from "./StandardRetryStrategy"; import { StandardRetryStrategy } from "./StandardRetryStrategy"; /** * @public * Strategy options to be passed to AdaptiveRetryStrategy */ export interface AdaptiveRetryStrategyOptions extends StandardRetryStrategyOptions { rateLimiter?: RateLimiter; } /** * @public * @deprecated use AdaptiveRetryStrategy from @smithy/util-retry */ export declare class AdaptiveRetryStrategy extends StandardRetryStrategy { private rateLimiter; constructor(maxAttemptsProvider: Provider, options?: AdaptiveRetryStrategyOptions); retry(next: FinalizeHandler, args: FinalizeHandlerArguments): Promise<{ response: unknown; output: Ouput; }>; }