import type { LTMilestone, LTTaskRecord } from '../../../types'; /** * Create a task record when a Long Tail workflow starts. */ export declare function ltCreateTask(input: { workflowId: string; workflowType: string; ltType: string; taskQueue?: string; signalId: string; parentWorkflowId: string; originId?: string; parentId?: string; envelope: string; metadata?: Record; traceId?: string; spanId?: string; initiatedBy?: string; principalType?: string; executingAs?: string; status?: string; }): Promise; /** * Mark a task as in_progress. */ export declare function ltStartTask(taskId: string): Promise; /** * Mark a task as completed with result data and milestones. */ export declare function ltCompleteTask(input: { taskId: string; data?: string; milestones?: LTMilestone[]; workflowId?: string; workflowName?: string; taskQueue?: string; }): Promise; /** * Mark a task as needing intervention (escalated). */ export declare function ltEscalateTask(taskId: string): Promise; /** * Mark a task as failed. */ export declare function ltFailTask(input: { taskId: string; error: string; }): Promise; /** * Append milestones to a task (used by activity interceptor). */ export declare function ltAppendMilestones(input: { taskId: string; milestones: LTMilestone[]; }): Promise; /** * Look up a task by workflow ID. Used by the interceptor to detect * whether a task was already created by executeLT (orchestrated mode) * or needs to be created by the interceptor (standalone mode). */ export declare function ltGetTaskByWorkflowId(workflowId: string): Promise; /** * Look up a task by its primary ID. * Used by the interceptor on re-runs to find the original task. */ export declare function ltGetTask(taskId: string): Promise;