import { IBackoffStrategy } from "./BackoffStrategy"; /** * Exponential backoff strategy that when supplied with a startMs value will * increment the timeout based on powers of the base. It uses the general * exponential function equation: * * ``` * timeout = ab^x * ``` */ export declare class ExponentialBackoff implements IBackoffStrategy { readonly startMs: number; readonly base: number; readonly waitFn: (timeoutMs: number) => Promise; timeout: number; exp: number; constructor(startMs: number, base: number, waitFn?: (timeoutMs: number) => Promise); backoff(): Promise; }