/** * Template Engine * * Motor de templates baseado em Handlebars para gerar * prompts Ralph e planos de execução. */ import Handlebars from 'handlebars'; /** * Carrega um template do sistema de arquivos */ export declare function loadTemplate(templatePath: string, basePath?: string): Handlebars.TemplateDelegate; /** * Compila um template a partir de uma string */ export declare function compileTemplate(templateString: string): Handlebars.TemplateDelegate; /** * Renderiza um template com as variáveis fornecidas */ export declare function render(template: Handlebars.TemplateDelegate | string, variables: Record): string; /** * Carrega e renderiza um template em uma única operação */ export declare function renderTemplate(templatePath: string, variables: Record, basePath?: string): string; /** * Registra um helper customizado */ export declare function registerHelper(name: string, helper: Handlebars.HelperDelegate): void; /** * Remove um helper registrado */ export declare function unregisterHelper(name: string): void; /** * Registra um partial (template reutilizável) */ export declare function registerPartial(name: string, partial: string): void; /** * Remove um partial registrado */ export declare function unregisterPartial(name: string): void; /** * Limpa o cache de templates */ export declare function clearTemplateCache(): void; /** * Retorna o caminho do diretório de templates */ export declare function getTemplatesDir(): string; /** * Verifica se um template existe */ export declare function templateExists(templatePath: string, basePath?: string): boolean; /** * Lista de templates disponíveis por categoria */ export declare const AVAILABLE_TEMPLATES: { readonly prompts: { readonly standard: "prompts/ralph-standard.hbs"; }; readonly plans: { readonly executionPlan: "plans/execution-plan.hbs"; }; readonly reports: { readonly executionReport: "reports/execution-report.hbs"; }; }; //# sourceMappingURL=template-engine.d.ts.map