import { SyncGeneratedModules } from "./webPluginGenerate.mjs"; import { Alias, Plugin } from "vite"; //#region src/builders/web/webPluginVite.d.ts /** * The modules the cockpit supplies page-wide, rather than each plugin * carrying its own copy. * * Build-time metadata, and it stays here rather than in a browser-facing * barrel on purpose: exporting it from doompi-core/web put the literal list * into the shipped cockpit bundle, where a plugin's own specifier strings * would then appear as data. */ export declare const WEB_PLUGIN_RUNTIME_SPECIFIERS: readonly ['react', 'react/jsx-runtime', 'react/jsx-dev-runtime', 'react-dom', 'react-dom/client', '@tanstack/store', '@tanstack/react-store', '@agimon-ai/doompi-core/web', '@agimon-ai/doompi-web-components', '@agimon-ai/doompi-web-security/browser', '@codemirror/state', '@codemirror/view']; /** Rollup expression for a shared module supplied by the session shell. */ export declare function webPluginRuntimeGlobal(specifier: (typeof WEB_PLUGIN_RUNTIME_SPECIFIERS)[number]): string; /** Resolves generated JSX imports from the host instead of a plugin's optional React peer tree. */ export declare function webPluginRuntimeAliases(clientRoot: string): Alias[]; /** * Swaps the committed builtin registry modules for generated ones. A * resolveId hook rather than resolve.alias because aliases match raw import * specifiers while these two are known by their resolved paths. Both the * sync-time build and the dev server use it, so a plugin edit in dev is the * same module the bundle would carry. */ export declare function webPluginOverridePlugin(clientRoot: string, generated: SyncGeneratedModules): Plugin; /** * The CSS sources module cannot ride the resolveId hook: Vite and Tailwind * resolve CSS @import through Vite's own id resolver, which consults aliases * but no plugin hooks. Without this the builtin (empty) @source list ships * and every plugin-only utility class is missing. */ export declare function webPluginCssAlias(generated: SyncGeneratedModules): Alias; /** The plugin package roots the dev server should serve, from an explicit override or DOOMPI_ROOT. */ export declare function readDevPluginRoots(environment: NodeJS.ProcessEnv, homeDirectory: string): string[]; //#endregion //# sourceMappingURL=webPluginVite.d.mts.map