/** * Lossless compilers from Fred's supported workflow dialects into the * unified `WorkflowIR` representation. * * Compilation is deliberately pure: registration, dependency lookup, and * execution remain service concerns. Control flow is always emitted as edges; * compiler-generated function nodes only adapt source-level result contracts. */ import type { PipelineConfigV2 } from '../pipeline/pipeline'; import type { GraphWorkflowConfig } from '../pipeline/graph'; import type { WorkflowIR } from './ir'; /** Compile a V2 typed-step pipeline, lowering nested conditions to guarded edges. */ export declare function compilePipelineV2(config: PipelineConfigV2): WorkflowIR; /** Compile a graph workflow. Fork/join semantics become edges plus node metadata. */ export declare function compileGraphWorkflow(config: GraphWorkflowConfig): WorkflowIR; /** Structural guard for already-native workflow definitions. */ export declare function isWorkflowIR(value: unknown): value is WorkflowIR; export type CompilableWorkflow = PipelineConfigV2 | GraphWorkflowConfig | WorkflowIR; export declare const UNSUPPORTED_WORKFLOW_DEFINITION_MESSAGE = "Unsupported workflow definition. Expected a V2 workflow with a steps array, a graph workflow, or native WorkflowIR. Legacy agent-list pipelines are no longer supported."; /** Runtime guard for unchecked callers crossing the workflow compilation boundary. */ export declare function isPipelineV2Definition(value: unknown): value is PipelineConfigV2; /** Compile any supported workflow definition, validating native IR unchanged. */ export declare function compileWorkflow(config: CompilableWorkflow): WorkflowIR; /** Define a native workflow with validation and an explicit native source tag. */ export declare function defineWorkflow(workflow: WorkflowIR): WorkflowIR; //# sourceMappingURL=compile.d.ts.map