import type { TaskStatus, PollOptions } from '../core/types.js'; /** * Poll a status function until completion or timeout */ export declare function poll(getStatus: () => Promise, options?: PollOptions): Promise; /** * Sleep for a given number of milliseconds */ export declare function sleep(ms: number): Promise; /** * Create a polling controller that can be cancelled */ export declare function createPollingController(): { cancel: () => void; isCancelled: () => boolean; poll: (getStatus: () => Promise, options?: PollOptions) => Promise; };