import type { LTApiResult, LTApiAuth } from '../../types/sdk'; /** * Deploy a YAML workflow and all sibling workflows sharing its app_id namespace. * * Merges and deploys the full app_id YAML, registers HotMesh workers for every * non-archived sibling, transitions draft/deployed siblings to active, and marks * the app_id content as deployed. Uses the app_version declared in the workflow record. * * @param input.id — UUID of the workflow to deploy * @returns `{ status: 200, data: YamlWorkflow }` the refreshed workflow record after deployment */ export declare function deployYamlWorkflow(input: { id: string; }): Promise; /** * Activate a previously deployed YAML workflow and its app_id siblings. * * Calls the deployer to activate the app_id at its current version, then registers * HotMesh workers for all sibling workflows. Siblings in "deployed" status are * transitioned to "active". The workflow must already be in deployed or active status. * * @param input.id — UUID of the workflow to activate * @returns `{ status: 200, data: YamlWorkflow }` the refreshed workflow record after activation */ export declare function activateYamlWorkflow(input: { id: string; }): Promise; /** * Invoke an active YAML workflow, executing its DAG pipeline. * * The workflow must be in "active" status. Delegates to the invoke service which * starts the HotMesh execution. Supports both synchronous (wait for result) and * asynchronous (fire-and-forget) invocation modes. * * @param input.id — UUID of the workflow to invoke * @param input.data — input payload passed to the workflow's entry point * @param input.sync — when true, block until the workflow completes and return its output * @param input.timeout — max milliseconds to wait when sync is true * @param input.execute_as — override identity for the execution context * @param auth — authenticated user context; userId is forwarded to the invoke service * @returns `{ status: 200, data: ... }` workflow execution result (sync) or job metadata (async) */ export declare function invokeYamlWorkflow(input: { id: string; data?: any; sync?: boolean; timeout?: number; execute_as?: string; }, auth?: LTApiAuth): Promise; /** * Archive a YAML workflow, removing it from active service. * * If the workflow is currently active, its HotMesh engine is stopped before * transitioning the status to "archived". Archived workflows cannot be invoked * or regenerated but can still be viewed or deleted. * * @param input.id — UUID of the workflow to archive * @returns `{ status: 200, data: YamlWorkflow }` the updated record with status "archived" */ export declare function archiveYamlWorkflow(input: { id: string; }): Promise; /** * Restore an archived YAML workflow back to draft status. * * Transitions the workflow from "archived" to "draft" so it can be * redeployed. The workflow must be in "archived" status. */ export declare function restoreYamlWorkflow(input: { id: string; }): Promise;