export interface WorkflowStepDef { type: 'bash' | 'prompt'; command?: string; prompt?: string; label?: string; } export interface WorkflowExecutorOptions { cwd?: string; model?: string; provider?: string; /** Skip LLM prompt steps (useful in tests) */ skipPromptSteps?: boolean; } export interface WorkflowRunResult { success: boolean; stepsCompleted: number; stepsTotal: number; error?: string; } /** * Normalize workflow steps from DB JSON, YAML-ish text, or markdown lines. */ export declare function parseWorkflowSteps(steps: unknown, fileContent?: string): WorkflowStepDef[]; /** * Execute a workflow stored in PostgreSQL by id. */ export declare function executeWorkflowById(workflowId: string, options?: WorkflowExecutorOptions): Promise; /** Fire-and-forget workflow run (API / daemon). */ export declare function scheduleWorkflowExecution(workflowId: string, options?: WorkflowExecutorOptions): void; /** Mark workflow queued and schedule execution. */ export declare function queueWorkflowRun(workflowId: string, options?: WorkflowExecutorOptions): Promise; //# sourceMappingURL=workflow-executor.d.ts.map