/** * Vite plugins: server-side build pipeline. * * Uses the Vite Environment API (`builder.buildApp()`) to coordinate * client and SSR builds instead of a nested `build()` call. * * Includes: * - Client asset filename collector (client env writeBundle) * - Virtual entrypoint codegen (SSR env only) * - Server-to-client asset mover (SSR env only) * * @internal */ import type { PluginOption } from 'vite'; import type { PluginSharedState } from './plugin-shared-state.js'; /** * Tracks client bundle assets so the server build can reference them * with their hashed filenames. */ export declare function gracileCollectClientAssetsPlugin({ state, }: { state: PluginSharedState; }): PluginOption; /** * Generates the virtual `entrypoint.js` module for the server build. * This is the server's main entry: it imports routes and creates the * Gracile handler. * * When `server.entry` is configured, this virtual module is no longer * the build's Rollup input (the user's server file is instead) — but * the handler creation code is still used by the `gracile:handler` * virtual module, so this plugin remains active for backward compat. * * Scoped to the SSR environment via `applyToEnvironment`. */ export declare function gracileEntrypointPlugin({ state, }: { state: PluginSharedState; }): PluginOption; /** * After the server build writes its bundle, move any assets from * `dist/server/assets/` into `dist/client/assets/` so the client * can serve them. * * Scoped to the SSR environment via `applyToEnvironment`. */ export declare function gracileMoveServerAssetsPlugin({ state, }: { state: PluginSharedState; }): PluginOption; //# sourceMappingURL=plugin-server-build.d.ts.map