export interface PollOptions { maxAttempts?: number; intervalMs?: number; onPoll?: (attempt: number) => void; } export interface PollResult { success: boolean; data?: T; error?: string; attempts: number; } /** * Poll a function until it returns a truthy result or max attempts reached */ export declare function poll(fn: () => Promise, isComplete: (result: T | null) => boolean, options?: PollOptions): Promise>; /** * Sleep for a given number of milliseconds */ export declare function sleep(ms: number): Promise; //# sourceMappingURL=polling.d.ts.map