/** * Template Rendering Engine * * Uses Handlebars for template rendering with support for: * - Variable interpolation ({{ variable }}) * - Conditional sections ({{#if}}...) * - List iteration ({{#each}}...) * - Custom helpers for formatting */ import type { TemplateContext, TemplateConfig, RenderResult } from './types.js'; /** * Template Engine class */ export declare class TemplateEngine { private config; private handlebars; constructor(config: TemplateConfig); /** * Register custom Handlebars helpers */ private registerHelpers; /** * Load a template file */ private loadTemplate; /** * Get token limit for a specific template */ private getTokenLimit; /** * Render a template with the given context */ render(templateName: string, context: TemplateContext): Promise; /** * Render a template string directly (without loading from file) */ renderString(templateString: string, context: TemplateContext): string; /** * Render multiple templates in batch */ renderBatch(templates: Array<{ name: string; context: TemplateContext; }>): Promise>; /** * Validate context data structure */ validateContext(context: TemplateContext): { valid: boolean; errors: string[]; }; /** * Create a partial template that can be included in other templates */ registerPartial(name: string, templateString: string): void; /** * Register a partial from a file */ registerPartialFromFile(name: string, partialPath: string): Promise; } /** * Create a template engine instance with default configuration */ export declare function createTemplateEngine(config?: Partial): TemplateEngine; //# sourceMappingURL=template-engine.d.ts.map