import { Plugin } from 'vite'; interface ComponentUsageOptions { /** 组件库名称,如 'g-ui-web', 'element-plus' */ libraryName?: string; /** 后端接收数据的 URL */ reportUrl?: string; /** 缓存 key */ key?: string; /** 额外需要上报的数据 */ extraData?: Record; /** 是否在开发模式下启用,默认 false */ enableInDev?: boolean; } /** * Vite 插件:统计组件库组件的 import 次数,并在构建结束时发送给后端 */ export default function componentUsagePlugin(options?: ComponentUsageOptions): Plugin; export {};