type Poll_running_cb = (ctx: { attempt: number; timeout_seconds: number; status: string; result: T; }) => void; type Poll_opts = { timeout_seconds: number; fetch_once: () => Promise; get_status: (result: T) => string | undefined; running_statuses: string[]; interval_ms?: number; timeout_label?: string; on_running?: Poll_running_cb; }; type Poll_result = { result: T; attempts: number; last_status?: string; }; declare const sleep: (ms: number) => Promise; declare const parse_timeout: (raw_timeout: string | undefined, env_key?: string) => number; declare const poll_until: (opts: Poll_opts) => Promise>; export { sleep, parse_timeout, poll_until }; export type { Poll_running_cb, Poll_opts, Poll_result }; //# sourceMappingURL=polling.d.ts.map