interface PollWithTimeoutParams { /** Function to poll (should return a promise). */ callbackFn: () => Promise; /** Function that checks the result to determine if polling should stop. */ condition: (result: T) => boolean; /** Time between polls in milliseconds; default value `1000ms`. */ interval?: number; /** Maximum time to wait in milliseconds before rejecting; default value `15000ms`. */ timeout?: number; /** Called when timeout occurs. */ onTimeout?: (params: { /** Lets you resolve with a custom value */ resolve: (value: T | PromiseLike) => void; /** Lets you reject with custom error */ reject: (reason?: unknown) => void; }) => void; } /** * Polls a function at a specified interval until a condition is met or timeout is reached. */ export declare function pollWithTimeout(params: PollWithTimeoutParams): Promise; export {};