import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as models from "./models/index.js"; export declare class Tasks extends ClientSDK { /** * List tasks * * @remarks * Use when listing or searching async tasks (e.g. admin queue view). Returns list with optional filtering. */ listTasks(request?: models.ListTasksRequest | undefined, options?: RequestOptions): Promise; /** * Get task processing result * * @remarks * Use when fetching the outcome of a completed task (e.g. export URL or error message). Call after task status is complete. */ getTaskResult(workflowId: string, options?: RequestOptions): Promise; /** * Get a task * * @remarks * Use when checking task status or progress (e.g. polling after create). Returns task by ID. */ getTask(id: string, options?: RequestOptions): Promise; /** * Download task export file * * @remarks * Use when letting a user download an exported file (e.g. report or data export). Returns a presigned URL; supports FlexPrice or customer-owned S3. */ downloadTaskExport(id: string, options?: RequestOptions): Promise<{ [k: string]: string; }>; /** * Update task status * * @remarks * Use when updating task status (e.g. marking complete or failed from a worker). Typically called by backend processors. */ updateTaskStatus(id: string, body: models.UpdateTaskStatusRequest, options?: RequestOptions): Promise; } //# sourceMappingURL=tasks.d.ts.map