import type { LTApiResult, LTApiAuth } from '../../types/sdk'; /** * Start a workflow — proxy for `Durable.Client.workflow.start()`. * * Resolves the task queue, enforces auth/role constraints, builds the * LTEnvelope with IAM context, and delegates to the Durable client. * Any WorkflowOptions field (workflowId, expire, entity, namespace, * search, signalIn, pending, etc.) can be passed via `options` and * flows through to the Durable client unchanged. * * @see https://docs.hotmesh.io/types/types_durable.WorkflowOptions.html */ export declare function invokeWorkflow(input: { type: string; data?: Record; metadata?: Record; execute_as?: string; /** Passthrough to Durable WorkflowOptions. */ options?: Record; }, auth: LTApiAuth): Promise; /** * Get the execution status of a workflow. * * Returns the HotMesh status code (0 = completed, 1 = running). * Resolves the workflow handle via task record or worker registry. * `appId` selects the namespace for the job-entity fallback so a child * running in another app resolves instead of 404ing against `durable`. * * @param input.workflowId — HotMesh workflow ID * @param input.appId — HotMesh namespace for resolution (default: durable) * @returns `{ status: 200, data: { workflowId, status } }` or 404 */ export declare function getWorkflowStatus(input: { workflowId: string; appId?: string; }): Promise; /** * Get the result of a completed workflow. * * Returns 202 if the workflow is still running, 200 with the result * payload when complete. Never blocks — always returns immediately. * * @param input.workflowId — HotMesh workflow ID * @param input.appId — HotMesh namespace for resolution (default: durable) * @returns `{ status: 200, data: { workflowId, result } }` or 202 if running */ export declare function getWorkflowResult(input: { workflowId: string; appId?: string; }): Promise; /** * Terminate a running workflow. * * Interrupts the workflow execution immediately via HotMesh. * * @param input.workflowId — HotMesh workflow ID * @returns `{ status: 200, data: { terminated: true, workflowId } }` or 404 */ export declare function terminateWorkflow(input: { workflowId: string; }): Promise; /** * Export the full state of a workflow. * * Returns the serialized workflow state including all activity * results, signals, and metadata. * * @param input.workflowId — HotMesh workflow ID * @returns `{ status: 200, data: }` or 404 */ export declare function exportWorkflow(input: { workflowId: string; }): Promise;