/** * Type definitions for micro-template.js * Project: https://github.com/cho45/micro-template.js */ export interface TemplateFunction { (id: string, data: Array): (stash: Record) => string; (id: string, data: Record): string; cache: Map; get: (id: string) => string; escapeHTML: (str: string) => string; variable?: string; } export declare const template: TemplateFunction; export interface ExtendedHelpers { include: (name: string, args?: Record) => void; wrapper: (name: string, fun: () => void) => void; } export declare function extended( id: string, data: Array ): (stash: Record) => string; export declare function extended( id: string, data: Record & Partial ): string;