/** * Workflow Builder * * Builds n8n workflow JSON from extracted TypeScript metadata */ import { WorkflowAST, N8nWorkflow } from '../types.js'; /** * Build n8n workflow JSON from AST */ export declare class WorkflowBuilder { /** * Build workflow JSON from AST */ build(ast: WorkflowAST, options?: { deterministicIds?: boolean; }): N8nWorkflow; /** * Build nodes array */ private buildNodes; /** * Build connections object * * Converts from AST format to n8n format: * * AST: [{ from: {node, output}, to: {node, input} }] * * n8n: { * "NodeA": { * "main": [ * [{ node: "NodeB", type: "main", index: 0 }] * ], * "ai_languageModel": [ * [{ node: "Agent", type: "ai_languageModel", index: 0 }] * ] * } * } */ private buildConnections; /** * Generate deterministic UUID based on property name and position * * This creates a consistent UUID for the same node across transformations * Useful for testing and ensuring stable IDs */ private generateDeterministicId; } //# sourceMappingURL=workflow-builder.d.ts.map