/** * AOT Compiler for binja templates * Generates optimized JavaScript functions from AST */ import type { TemplateNode } from '../parser/nodes'; export interface CompileOptions { /** Function name (default: 'render') */ functionName?: string; /** Include runtime helpers inline (default: true) */ inlineHelpers?: boolean; /** Minify output (default: false) */ minify?: boolean; /** Auto-escape HTML (default: true) */ autoescape?: boolean; } /** * Compile AST to JavaScript code string */ export declare function compileToString(ast: TemplateNode, options?: CompileOptions): string; /** * Compile AST to executable function */ export declare function compileToFunction(ast: TemplateNode, options?: CompileOptions): (ctx: Record) => string; declare const runtimeHelpers: { escape: (value: any) => string; isTruthy: (value: any) => boolean; toArray: (value: any) => any[]; applyFilter: (name: string, value: any, ...args: any[]) => any; applyTest: (name: string, value: any, ...args: any[]) => boolean; }; export { runtimeHelpers }; //# sourceMappingURL=index.d.ts.map