import type { WebTasksResultResponse, WebTasksStartRequestBody, WebTasksStartResponse } from "../models.js"; import { BaseClient, type RequestOptions, type SDKOptions } from "../core.js"; export declare class WebTasksService extends BaseClient { constructor(options: SDKOptions); /** * Web Task - Start */ start(body: WebTasksStartRequestBody, options?: RequestOptions): Promise; /** * Web Task - Result */ result(webTaskId: string, options?: RequestOptions): Promise; /** * Start a Web Task and poll until it reaches a terminal state. * * Calls `start` with `body`, then polls `result` every * `pollIntervalMs` (default 5000) until the task's `status` is * `"completed"` or `"canceled"`. Always returns the terminal * response — callers should branch on `status` and `outcome` to * handle success, failure, or cancellation. * * Throws only when `timeoutMs` is supplied and elapses before the * task reaches a terminal state. */ run(body: WebTasksStartRequestBody, pollOptions?: { pollIntervalMs?: number; timeoutMs?: number; }): Promise; } //# sourceMappingURL=webTasks.d.ts.map