import { AsyncState } from './use-async'; export interface RetryOptions { retries?: number; delayMs?: number; factor?: number; onRetry?: (attempt: number, error: any) => void; } /** * A hook that wraps an async function with retry logic and exponential backoff. * @param fn The async function to retry * @param opts Configuration options for retry behavior * @returns AsyncState object containing run function, data, error, loading state, and reset function */ export declare function useRetry(fn: () => Promise, opts?: RetryOptions): AsyncState;