/****************************************************************** MIT License http://www.opensource.org/licenses/mit-license.php Author Mora (https://github.com/qiu8310) *******************************************************************/ import { ComponentAttr, Component } from './Component'; export declare const JSON_REGEXP: RegExp; export interface CustomAttr extends ComponentAttr { addBrace?: boolean; boolean?: boolean; } export interface LanguageConfig { id: string; /** 基本属性 */ baseAttrs: CustomAttr[]; /** 事件相关配置 */ event: { prefixes: string[]; modifiers: string[]; attrs: CustomAttr[]; }; /** 语言相关的 trigger */ custom: { [prefix: string]: { attrs: CustomAttr[]; modifiers: string[]; }; }; /** 自定义的组件 */ components: Component[]; /** 在自动补全时,不需要 baseAttrs 和 event 的组件名称 */ noBasicAttrsComponents?: string[]; }