import { compile, Template, TemplateFunction } from "../compiler"; import { Portal } from "./portal"; import type { customDirectives } from "../common/types"; export interface TemplateSetConfig { dev?: boolean; translatableAttributes?: string[]; translateFn?: (s: string, translationCtx: string) => string; templates?: string | Document | Record; getTemplate?: (s: string) => Element | Function | string | void; customDirectives?: customDirectives; globalValues?: object; } export declare class TemplateSet { static registerTemplate(name: string, fn: TemplateFunction): void; dev: boolean; rawTemplates: typeof globalTemplates; templates: { [name: string]: Template; }; getRawTemplate?: (s: string) => Element | Function | string | void; translateFn?: (s: string, translationCtx: string) => string; translatableAttributes?: string[]; Portal: typeof Portal; customDirectives: customDirectives; runtimeUtils: object; hasGlobalValues: boolean; constructor(config?: TemplateSetConfig); addTemplate(name: string, template: string | Element): void; addTemplates(xml: string | Document): void; getTemplate(name: string): Template; _compileTemplate(name: string, template: string | Element): ReturnType; callTemplate(owner: any, subTemplate: string, ctx: any, parent: any, key: any): any; } export declare const globalTemplates: { [key: string]: string | Element | TemplateFunction; }; export declare function xml(...args: Parameters): string; export declare namespace xml { var nextId: number; }