export = TemplateCache; /** * TemplateCache. * * @class TemplateCache * @abstract */ declare class TemplateCache { /** * Returns the template source instance to be used to get templates. * * @param {?ScafflaterOptions} options - Scafflater configuration. If null, will get the default configuration. * @returns {TemplateCache} An specialized instance of TemplateStorage. */ static getTemplateCache(options?: ScafflaterOptions | null): TemplateCache; /** * Template Source constructor should not been called. * * @param {ScafflaterOptions} options The Scafflater Options */ constructor(options: ScafflaterOptions); options: ScafflaterOptions; /** * Gets an template in cache * * @param {string} templateName The template name * @param {string} templateVersion The template version. If null, gets the latest available version. * @returns {Promise} The local template */ getTemplate(templateName: string, templateVersion?: string): Promise; /** * Stores the template. * * @param {string} path - Path of template * @returns {Promise} The cache template path */ storeTemplate(path: string): Promise; /** * List stored templates and their versions. * * @returns {LocalTemplate[]} All cached templates */ listCachedTemplates(): LocalTemplate[]; } import { ScafflaterOptions } from "../options"; import { LocalTemplate } from "../scafflater-config/local-template";