/** * Confirm whether there are valid mustache tags remaining in the template string. * @param template * @returns */ declare function hasValidMustacheTags(template: string): boolean; declare function hasDuplicates(arr: any[]): boolean; type MustacheIterationOptions = { maxPasses?: number; detectCycles?: boolean; }; /** * Replaces all mustache tokens recursively until there are none left that can be replaced. * @param template * @param param1 * @returns */ declare function replaceAllMustaches(template: string, { maxPasses, detectCycles }?: MustacheIterationOptions): string; type MustacheValue = string | string[] | Function | Object; /** * A key-value pair for a variable name and its value. */ declare class Variable { key: string; value: MustacheValue; constructor(key: string, value: MustacheValue); } /** * A generic class to create a view (the context for a Mustache.render() call). This class's _collection property holds all the names in any subsequently created variable registry via the allKeys getter. * @todo Prevent duplicates */ declare class VariableView { private static _collection; static get all(): Record; static get allNames(): string[]; [key: string]: MustacheValue; constructor(...variableValuePairs: Variable[]); add(...variableValuePair: Variable[]): void; replace(variableKey: string, value: string | Function): void; } export { type MustacheValue, Variable, VariableView, hasDuplicates, hasValidMustacheTags, replaceAllMustaches };