import { VitePluginOptions } from '@unhead/bundler/vite'; import { StreamingPluginOptions } from 'unhead/stream/vite'; import { Plugin } from 'vite'; interface UnheadVueViteOptions extends VitePluginOptions { /** * Enable streaming SSR support. * Set to `true` or a config object to enable. * @default false */ streaming?: true | Pick | false; } /** * Unified Vite plugin for `@unhead/vue`. * * Combines build optimizations (tree-shaking, useSeoMeta transform, minification) * with streaming SSR support into a single plugin. * * @example * ```ts * // vite.config.ts * import vue from '@vitejs/plugin-vue' * import { Unhead } from '@unhead/vue/vite' * * export default defineConfig({ * plugins: [vue(), Unhead()], * }) * ``` */ declare function Unhead(options?: UnheadVueViteOptions): Plugin[]; export { Unhead }; export type { UnheadVueViteOptions };