/** * Workflow hook handler: detects /run-workflow commands, parses arguments, * manages workflow instances, and drives step transitions on session.idle. */ /** * Marker embedded in workflow continuation prompts so the auto-pause guard * in plugin-interface.ts can recognize them and NOT pause coexisting WorkState plans. */ export declare const WORKFLOW_CONTINUATION_MARKER = ""; export interface WorkflowHookResult { /** Context to inject into the prompt (step prompt with workflow context) */ contextInjection: string | null; /** Agent to switch to for the current step */ switchAgent: string | null; } /** * Parse /run-workflow arguments into workflow name and optional goal. * Argument format: ` "goal text"` or `` or empty. */ export declare function parseWorkflowArgs(args: string): { workflowName: string | null; goal: string | null; }; /** * Handle the /run-workflow command. * Detects the command via tag, parses arguments, * and either creates a new instance, resumes an existing one, or lists available definitions. */ export declare function handleRunWorkflow(input: { promptText: string; sessionId: string; directory: string; workflowDirs?: string[]; }): WorkflowHookResult; /** * Check workflow continuation on session.idle. * If an active workflow instance exists and the current step's completion condition is met, * advance to the next step and return a continuation prompt. */ export declare function checkWorkflowContinuation(input: { sessionId: string; directory: string; lastAssistantMessage?: string; lastUserMessage?: string; workflowDirs?: string[]; }): { continuationPrompt: string | null; switchAgent: string | null; };