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<string, any>;
    traceId?: string;
    spanId?: string;
    initiatedBy?: string;
    principalType?: string;
    executingAs?: string;
    status?: string;
}): Promise<string>;
/**
 * Mark a task as in_progress.
 */
export declare function ltStartTask(taskId: string): Promise<void>;
/**
 * 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<void>;
/**
 * Mark a task as needing intervention (escalated).
 */
export declare function ltEscalateTask(taskId: string): Promise<void>;
/**
 * Mark a task as failed.
 */
export declare function ltFailTask(input: {
    taskId: string;
    error: string;
}): Promise<void>;
/**
 * Append milestones to a task (used by activity interceptor).
 */
export declare function ltAppendMilestones(input: {
    taskId: string;
    milestones: LTMilestone[];
}): Promise<void>;
/**
 * 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<LTTaskRecord | null>;
/**
 * 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<LTTaskRecord | null>;
