export type RetryOptions = { maxAttempts: number; onAttemptFailure?: (error: unknown, remainingAttempts: number) => void; onAllAttemptsFailed?: (error: unknown) => void; }; export declare function retry(action: () => Promise, options: RetryOptions): Promise;