import { EitherAsync } from "purify-ts";
/**
 *
 * @summary Retry with exponential backoff. Fire once + retry times
 */
export declare const withRequestErrorRetry: <T, E = unknown>({ fn, retryTimes, shouldRetry, retryWaitForMs, }: {
    fn: () => Promise<T>;
    retryTimes?: number;
    shouldRetry?: (error: unknown, retryCount: number) => boolean;
    retryWaitForMs?: () => number;
}) => EitherAsync<E, T>;
