import type { Plugin } from 'vite'; export interface YhUIVitePluginOptions { /** * 是否自动预构建 dayjs 及其插件(推荐保持开启)。 * 解决 pnpm + Vite 6 下 dayjs CJS 插件无 default export 的问题。 * @default true */ optimizeDayjs?: boolean; } /** * YH-UI Vite 插件。 * * 自动处理 pnpm + Vite 6 环境下的 CJS/ESM 互操作问题, * 无需手动配置 `optimizeDeps`。 * * @example * ```ts * // vite.config.ts * import { defineConfig } from 'vite' * import vue from '@vitejs/plugin-vue' * import { YhUIVitePlugin } from '@yh-ui/components/vite-plugin' * * export default defineConfig({ * plugins: [vue(), YhUIVitePlugin()] * }) * ``` */ export declare function YhUIVitePlugin(options?: YhUIVitePluginOptions): Plugin; export default YhUIVitePlugin;