/** * Multi-Engine Support * Unified interface for multiple template engines */ import * as handlebars from './handlebars'; import * as liquid from './liquid'; import * as twig from './twig'; export { handlebars, liquid, twig }; /** * Engine interface */ export interface TemplateEngine { name: string; extensions: string[]; parse: (source: string) => any; compile: (source: string) => (context: Record) => Promise; render: (source: string, context?: Record) => Promise; } /** * Registry of all available engines */ export declare const engines: Record; /** * Get engine by name or file extension */ export declare function getEngine(nameOrExt: string): TemplateEngine | undefined; /** * Detect engine from file path */ export declare function detectEngine(filePath: string): TemplateEngine | undefined; /** * Render a template with auto-detected engine */ export declare function render(source: string, context?: Record, engineName?: string): Promise; /** * Multi-engine environment for API service */ export declare class MultiEngine { private defaultEngine; constructor(defaultEngine?: string); /** * Render with specified engine */ render(source: string, context?: Record, engineName?: string): Promise; /** * Compile template with specified engine */ compile(source: string, engineName?: string): (context: Record) => Promise; /** * List all available engines */ listEngines(): string[]; } //# sourceMappingURL=index.d.ts.map