export type RetryManagerOptions = {
    /** maximum number of retries before giving up */
    maxRetry?: number;
    /** delay between attempts, in milliseconds */
    delay?: number;
    /** function to call when an error occurs */
    onError?: (err: Error) => void;
};
/**
 * Wrap an async function `fn` so it’s retried on failure.
 *
 * @param fn       The async function to wrap
 * @param options  { maxRetry, delay }
 * @returns        A new function with the same signature as `fn`
 */
export declare const retryManager: <Args extends any[], R>(fn: (...args: Args) => Promise<R>, { maxRetry, delay, onError, }?: RetryManagerOptions) => ((...args: Args) => Promise<R>);
//# sourceMappingURL=retryManager.d.ts.map