/** * Configuration for exponential backoff retry logic. */ export type BackoffConfig = { maxRetries: number; baseDelayInMs: number; backoffFactor: number; errHandler?: (error: Error, attempt: number) => 'stop' | 'continue'; }; /** * Helper function to implement exponential backoff retry logic. * @param fn - The function to retry * @param config - Optional backoff configuration * @returns Promise that resolves with the result of the function */ export declare function retryWithBackoff(fn: () => Promise, { maxRetries, baseDelayInMs, backoffFactor, errHandler, }?: Partial): Promise;