import type { PlatformClient } from "./client"; import type { TriggerConfig } from "./triggers-api"; import type { TaskDefinition, EdgeDefinition, WorkflowData, Trigger, Task, Edge, Agent } from "./types"; export declare class Workflow { readonly id: number; /** Workflow name. Also used as the agent name in ERC-8004. */ readonly name: string; readonly goal: string; status: string; triggers: Trigger[]; tasks: Task[]; edges: Edge[]; agents: Agent[]; private client; constructor(data: WorkflowData, client: PlatformClient); /** * Sync the workflow with a new configuration (declarative update) */ sync(config: { triggers?: TriggerConfig[]; tasks?: TaskDefinition[]; edges?: EdgeDefinition[]; }): Promise; /** * Add an agent to this workflow's workspace. * * Required before assigning tasks to agents not yet in the workspace. * Called automatically by sync() when tasks reference new agents. * * @param agentId - The agent ID to add */ addAgent(agentId: number): Promise; /** * Set the workflow to running state */ setRunning(): Promise; } //# sourceMappingURL=workflow.d.ts.map