import { Plugin } from "vite"; //#region packages/vite/index.d.ts type IconReplacement = (iconName: string, attributes: ComponentAttributes, alias?: string) => { text: string; imptext: string; }; interface PluginOptions { /** * 组件名称 */ name?: string; /** * 图标默认类型 */ type?: string; /** * 图标目录 */ directory?: string; customReplacement?: IconReplacement; /** * 是否创建虚拟组件 */ virtual?: boolean; /** * 是否替换组件 */ replaced?: boolean; /** * 是否加载图片到本地public' */ mobile?: boolean; /** * 是否动态更新 */ dynamic?: boolean; /** * 别名 */ alias?: string; } interface ComponentAttributes { name: string; [key: string]: string | boolean | number; } interface ComponentMatchInfo { componentName: string; fullMatch: string; start: number; end: number; attributes: ComponentAttributes; isSelfClosing: boolean; } declare function simpleFangIcon(options?: PluginOptions): Plugin; //#endregion export { ComponentAttributes, ComponentMatchInfo, IconReplacement, PluginOptions, simpleFangIcon };