import type { LTApiResult, LTApiAuth } from '../types/sdk'; /** * Create a task record. * * Tasks represent workflow executions tracked by the LT interceptor. * Required fields: `workflow_id`, `workflow_type`, `lt_type`, * `signal_id`, `parent_workflow_id`, and `envelope`. * * @returns `{ status: 201, data: }` */ export declare function createTask(input: { workflow_id: string; workflow_type: string; lt_type: string; task_queue?: string; signal_id: string; parent_workflow_id: string; origin_id?: string; parent_id?: string; envelope?: string; metadata?: Record; priority?: number; trace_id?: string; span_id?: string; }, auth: LTApiAuth): Promise; /** * List tasks with optional filters. * * Tasks represent workflow executions tracked by the LT interceptor. * * @param input.status — filter by `pending` or `completed` * @param input.lt_type — filter by interceptor classification * @param input.workflow_type — filter by workflow function name * @param input.workflow_id — filter by HotMesh workflow ID * @param input.parent_workflow_id — filter by parent orchestrator ID * @param input.origin_id — filter by root process origin ID * @param input.limit — max results (default: 50) * @param input.offset — pagination offset (default: 0) * @returns `{ status: 200, data: { tasks, total } }` */ export declare function listTasks(input: { status?: string; lt_type?: string; workflow_type?: string; workflow_id?: string; parent_workflow_id?: string; origin_id?: string; limit?: number; offset?: number; }): Promise; /** * Return aggregate process statistics. * * @param input.period — time window (`1h`, `24h`, `7d`, `30d`) * @returns `{ status: 200, data: }` */ export declare function getProcessStats(input: { period?: string; }): Promise; /** * List processes (grouped by origin_id) with optional filters. * * @param input.limit — max results (default: 50) * @param input.offset — pagination offset * @param input.workflow_type — filter by workflow type * @param input.status — filter by status * @param input.search — full-text search across process fields * @returns `{ status: 200, data: { processes, total } }` */ export declare function listProcesses(input: { limit?: number; offset?: number; workflow_type?: string; status?: string; search?: string; }): Promise; /** * Get a single process with all its tasks and escalations. * * @param input.originId — root process origin ID * @returns `{ status: 200, data: { origin_id, tasks, escalations } }` */ export declare function getProcess(input: { originId: string; }): Promise; /** * Get a single task by ID. * * @param input.id — task UUID * @returns `{ status: 200, data: }` or 404 */ export declare function getTask(input: { id: string; }): Promise;