import { type Plugin, type UserConfig } from "vite"; import { type AgentNativeConfigInput } from "../config.js"; import { type McpIntegrationsConfigInput } from "../shared/mcp-integration-config.js"; import { type AgentNativeRouteWarmupConfigInput } from "../shared/route-warmup-config.js"; declare function debounceNitroFullReloadHotUpdate(plugin: Plugin): Plugin; declare function mirrorReactRouterVirtualInvalidation(server: any, now?: () => number): string[]; declare function installReactRouterVirtualInvalidationMirror(server: any, { debounceMs, now, warn, }?: { debounceMs?: number; now?: () => number; warn?: (message: string) => void; }): boolean; declare function getClientDedupe(cwd: string): string[]; declare function findCorePackageRoot(cwd: string): string | null; declare function getReactRouterAliases(cwd: string): Array<{ find: RegExp; replacement: string; }>; declare function getDefaultOptimizeDeps(cwd: string): string[]; export interface NitroOptions { preset?: string; srcDir?: string; routesDir?: string; [key: string]: unknown; } export interface ClientConfigOptions { port?: number; allowedHosts?: NonNullable["allowedHosts"]>; logLevel?: UserConfig["logLevel"]; plugins?: any[]; designSystemTheme?: DesignSystemTheme; nitro?: NitroOptions; aliases?: Record; outDir?: string; fsAllow?: string[]; fsDeny?: string[]; optimizeDeps?: NonNullable; define?: UserConfig["define"]; agentNativeConfig?: AgentNativeConfigInput; clientCompatibilityVersion?: string; routeWarmup?: AgentNativeRouteWarmupConfigInput; mcpIntegrations?: McpIntegrationsConfigInput; tailwind?: boolean; ssrStubs?: string[]; /** * @deprecated Pass `reactRouter()` directly in the `plugins` array instead. * Previously used to auto-load the React Router Vite plugin via require(), * but this fails in ESM contexts. Templates should now do: * ```ts * import { reactRouter } from "@react-router/dev/vite"; * defineConfig({ plugins: [reactRouter()] }) * ``` */ reactRouter?: boolean | Record; } export interface DesignSystemTheme { colors: { light: Record; dark?: Record; }; radius?: string; typography?: { fontFamily?: string; monoFontFamily?: string; baseFontSize?: string; }; elevation?: { low?: string; medium?: string; high?: string; }; } export interface AgentNativeVitePluginOptions extends Omit { legacySpa?: boolean; } export declare function stripMountedDevApiPath(reqUrl: string | undefined, base: string | undefined): string | undefined; export declare function isFrameworkDevPath(reqUrl: string, base: string | undefined): boolean; export declare function isFrameworkDynamicDevPath(reqUrl: string, base: string | undefined): boolean; declare function clientOptionalPeerStubPlugin(cwd: string): Plugin | null; declare function devActionBridgePlugin(): Plugin; export declare function _devServerStartupBanner(): Plugin; declare function devActionBridgeOrigin(resolvedUrls: { local?: string[]; } | null | undefined): string | undefined; declare function nitroModuleGraphSignature(environment: unknown): string | null; declare function nitroStartupGate(options?: { now?: () => number; settleMs?: number; timeoutMs?: number; }): Plugin; declare function nitroStartupRecovery(): Plugin; declare function persistent5xxRecovery(options?: { enabled?: boolean; now?: () => number; exit?: (code: number) => void; }): Plugin; declare function resolveNitroSsrServiceEntry(rootDir: string): string | undefined; export declare function defaultViteWatchIgnored(root: string): (file: string) => boolean; export declare function agentNative(options?: AgentNativeVitePluginOptions): Plugin[]; /** * Create the client Vite config with sensible agent-native defaults. * * @deprecated Prefer `defineConfig` from `vite` plus the `agentNative()` plugin * preset. This compatibility wrapper remains for existing templates. */ export declare function defineConfig(options?: ClientConfigOptions): UserConfig; export { clientOptionalPeerStubPlugin as _clientOptionalPeerStubPlugin, devActionBridgePlugin as _devActionBridgePlugin, devActionBridgeOrigin as _devActionBridgeOrigin, getClientDedupe as _getClientDedupe, getDefaultOptimizeDeps as _getDefaultOptimizeDeps, findCorePackageRoot as _findCorePackageRoot, getReactRouterAliases as _getReactRouterAliases, nitroStartupGate as _nitroStartupGate, nitroStartupRecovery as _nitroStartupRecovery, persistent5xxRecovery as _persistent5xxRecovery, nitroModuleGraphSignature as _nitroModuleGraphSignature, resolveNitroSsrServiceEntry as _resolveNitroSsrServiceEntry, debounceNitroFullReloadHotUpdate as _debounceNitroFullReloadHotUpdate, installReactRouterVirtualInvalidationMirror as _installReactRouterVirtualInvalidationMirror, mirrorReactRouterVirtualInvalidation as _mirrorReactRouterVirtualInvalidation, };