/****************************************************************** MIT License http://www.opensource.org/licenses/mit-license.php Author Mora (https://github.com/qiu8310) *******************************************************************/ import { CustomOptions } from './custom'; import { Component, CustomAttr, LanguageConfig } from './dev/'; export interface TagItem { component: Component; markdown: string; } export interface TagAttrItem { attr: CustomAttr; markdown: string; } /** * 自动补全支持的所有的 tag * @param {CustomOptions} co 用于解析自定义组件的配置 */ export declare function autocompleteTagName(lc: LanguageConfig, co?: CustomOptions): Promise<{ customs: TagItem[]; natives: TagItem[]; }>; /** * 自动补全 tag 上的属性 * * @export * @param {string} tagName 当前 tag 的名称 * @param {{[key: string]: string}} attrs 当前已经写了的属性的集合 * @param {CustomOptions} co 用于解析自定义组件的配置 */ export declare function autocompleteTagAttr(tagName: string, tagAttrs: { [key: string]: string | boolean; }, lc: LanguageConfig, co?: CustomOptions): Promise<{ basics: TagAttrItem[]; natives: TagAttrItem[]; }>; /** * 自动补全指定的属性的值 */ export declare function autocompleteTagAttrValue(tagName: string, tagAttrName: string, lc: LanguageConfig, co?: CustomOptions): Promise<{ value: string; markdown: string; }[]>; export declare function autocompleteSpecialTagAttr(prefix: string, tagName: string, tagAttrs: { [key: string]: string | boolean; }, lc: LanguageConfig, co?: CustomOptions): Promise<{ customs: TagAttrItem[]; natives: TagAttrItem[]; }>;