import type { LaxPartial } from "."; export type RetryOptions = { attempts: number; retryDelay: number; onError: (error: unknown) => void; exponentialBackoff: boolean; }; /** @example const response = await retry(() => fetch(url, fetchOptions)) */ export declare function retry(callback: () => Promise, { attempts, retryDelay, onError, exponentialBackoff }?: LaxPartial): Promise;