//#region src/codegen/template.d.ts /** * Lightweight string template engine. * * Syntax: * - `{{var}}` — interpolation * - `{{#arr}}...{{/arr}}` — iteration (`.` refers to current item) * - `{{#bool}}...{{/bool}}` — conditional blocks * - `{{>partial}}` — include a named sub-template */ type TemplateRenderer = (data: Record, partials?: Record) => string; /** * Compile a template string into a reusable render function. */ declare function template(text: string): TemplateRenderer; //#endregion export { template }; //# sourceMappingURL=template.d.mts.map