/** * AST to TypeScript Generator * * Generates TypeScript code from AST representation */ import { WorkflowAST, JsonToTypeScriptOptions } from '../types.js'; /** * Generate TypeScript code from AST */ export declare class AstToTypeScriptGenerator { /** * Generate TypeScript code */ generate(ast: WorkflowAST, options?: JsonToTypeScriptOptions): Promise; /** * Generate the workflow-map comment block. * This block is ignored by TypeScriptParser (it is a plain comment) but * provides a fast orientation index for AI agents and human developers: * 1. NODE INDEX — property name, line hint (approximate), short node type * 2. ROUTING MAP — ASCII flow of main + AI connections * * Agents should read this block first (between tags) before * opening the full file, to quickly locate the sections they need to edit. */ private generateWorkflowMap; /** * Generate imports */ private generateImports; /** * Generate class header with @workflow decorator */ private generateClassHeader; /** * Format @workflow decorator content */ private formatWorkflowDecorator; /** * Generate node declarations */ private generateNodes; /** * Generate single node declaration */ private generateNodeDeclaration; /** * Format @node decorator content */ private formatNodeDecorator; private formatValue; private formatPropertyKey; private formatString; /** * Generate routing section (@links) */ private generateRouting; } //# sourceMappingURL=ast-to-typescript.d.ts.map