import { WorkspaceScopedResource } from './base.js';
/**
 * Tasks — long-running async jobs the platform spawns (intake processing,
 * tool executions, voice imports). The SDK exposes get-by-id and a
 * by-call lookup for retrieving every task tied to a specific call.
 *
 * @beta New in this release; surface may evolve.
 */
export declare class TasksResource extends WorkspaceScopedResource {
    /** Get the current state of a single task */
    get(taskId: string): Promise<{
        cached_tokens?: number | undefined;
        call_sid: string;
        completed_at?: string | null | undefined;
        dispatched_at?: string | null | undefined;
        duration_ms?: number | null | undefined;
        error?: string | null | undefined;
        error_type?: string | null | undefined;
        input_tokens?: number | undefined;
        output_tokens?: number | undefined;
        progress_message?: string | null | undefined;
        progress_step?: number | null | undefined;
        result?: string | null | undefined;
        skill: string;
        status: "pending" | "dispatched" | "running" | "completed" | "failed" | "cancelled" | "timeout";
        sub_tool_count?: number | undefined;
        task_id: string;
        tier: "direct" | "companion" | "desktop" | "computer_use";
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    /** List every task associated with a call (by Twilio call sid) */
    listByCall(callSid: string): Promise<{
        tasks: {
            cached_tokens?: number | undefined;
            call_sid: string;
            completed_at?: string | null | undefined;
            dispatched_at?: string | null | undefined;
            duration_ms?: number | null | undefined;
            error?: string | null | undefined;
            error_type?: string | null | undefined;
            input_tokens?: number | undefined;
            output_tokens?: number | undefined;
            progress_message?: string | null | undefined;
            progress_step?: number | null | undefined;
            result?: string | null | undefined;
            skill: string;
            status: "pending" | "dispatched" | "running" | "completed" | "failed" | "cancelled" | "timeout";
            sub_tool_count?: number | undefined;
            task_id: string;
            tier: "direct" | "companion" | "desktop" | "computer_use";
            workspace_id: string;
        }[];
    } & import("../index.js").ResponseMetadata>;
}
//# sourceMappingURL=tasks.d.ts.map