/** * @fileoverview ExecutionPlan Builder (SPEC Section 5.3) * * Builds ExecutionPlan from IntentGraph using topological sort. * * Per SPEC Section 11.4 (E-INV-*): * - E-INV-1: steps contains no abstract nodes * - E-INV-2: dependencyEdges references only nodes in steps * - E-INV-3: from is dependency (executes first), to is dependent (executes after) * * @module helpers/build-execution-plan */ import type { IntentGraph } from "../core/types/intent-graph.js"; import type { ExecutionPlan } from "../core/types/execution-plan.js"; /** * Build ExecutionPlan from IntentGraph. * * Uses Kahn's algorithm for topological sort. * * Per SPEC Section 5.3: * - Excludes abstract nodes from steps * - Includes only edges between non-abstract nodes * - Topologically sorted for execution order * * @param graph - The Intent Graph to build plan from * @returns ExecutionPlan with steps, edges, and abstract nodes * @throws Error if graph contains cycles */ export declare function buildExecutionPlan(graph: IntentGraph): ExecutionPlan; //# sourceMappingURL=build-execution-plan.d.ts.map