/// declare class Compiler { options: ArtDefaults; stacks: string[]; context: OType[]; scripts: OType[]; CONTEXT_MAP: OType; ignore: any[]; internal: OType; dependencies: OType; source: any; static CONSTS: OType; /** * 模板编译器 */ constructor(options: ArtDefaults); /** * 将模板代码转换成 tplToken 数组 */ getTplTokens(source: string, rules: any, context: OType): any[]; /** * 将模板表达式转换成 esToken 数组 */ getEsTokens(source: any): any[] | undefined; /** * 获取变量列表 */ getVariables(esTokens: any): any; /** * 导入模板上下文 */ importContext(name: string): void; /** * 解析字符串(HTML)直接输出语句 */ parseString(tplToken: any): void; /** * 解析逻辑表达式语句 */ parseExpression(tplToken: any): void; /** * 检查解析后的模板语句是否存在语法错误 */ checkExpression(script: string): boolean; /** * 编译 */ build(id_or_url: string): any; } export default Compiler;