import { type PluginOption } from "vite"; /** Options shared by Vite framework integrations. */ export interface McpUseOptions { /** Server entry relative to the project root. Defaults to `src/mcp/server.ts`. */ entry?: string; /** View source directory. Defaults to `src/mcp/views`. */ viewsDir?: string; /** MCP endpoint; must match the authored server. Defaults to `/mcp`. */ basePath?: string; } /** * Run MCP in a dedicated Vite environment and serve live browser view modules. * Pair with a framework route adapter that imports the generated MCP handler. * The host supplies its React and CSS plugins. Production builds embed view * assets and skills into the MCP output and validate the compiled server using * the host's production configuration; runtime imports never load Vite. * @param options - Source directories and MCP endpoint. * @returns Plugins placed before the host framework plugins. */ export declare function mcpUse(options?: McpUseOptions): PluginOption[];