import type { FlowNode } from "../types.js"; /** The `forEach` node shape (its `FlowNode` variant). */ interface ForEachNode { kind: "forEach"; /** FEEL expression evaluating to the list to fan out over. */ collection: string; /** Variable each item is bound to in the child's scope (`inputElement`). */ itemVar: string; body: FlowNode[]; /** Run children one at a time (sequential MI) instead of all at once. */ sequential?: boolean; /** List variable that each child's `outputElement` is collected into. */ outputCollection?: string; /** FEEL expression producing each child's contribution to `outputCollection`. */ outputElement?: string; /** FEEL boolean that, once true, completes the body early. */ completionCondition?: string; } declare module "../types.js" { interface FlowNodeRegistry { forEach: ForEachNode; } } export {};