/** * WorkflowManager for registering and validating workflows */ import type { RoutingConfig } from '../routing/types'; import type { AgentInstance } from '../agent/agent'; interface AgentLookup { getAgent(id: string): AgentInstance | undefined; } /** Workflow definition — a named entry point that groups related agents. */ export interface Workflow { name: string; defaultAgent: string; agents: string[]; routing?: RoutingConfig; } /** * WorkflowManager stores and validates workflows. * * Workflows are validated at registration time - missing agents * trigger console warnings but do not throw errors. */ export declare class WorkflowManager { private workflows; private fred; constructor(fred: AgentLookup); /** * Add a workflow to the registry. * Validates that referenced agents exist (warns, doesn't throw). */ addWorkflow(name: string, config: Omit): void; /** * Get a workflow by name */ getWorkflow(name: string): Workflow | undefined; /** * List all workflow names */ listWorkflows(): string[]; /** * Check if a workflow exists */ hasWorkflow(name: string): boolean; /** * Validate workflow agents exist in Fred. * Warns about missing agents but does not throw. */ private validateWorkflow; } export {}; //# sourceMappingURL=manager.d.ts.map