/** * Vite plugin: `gracile:handler` virtual module. * * Provides the Gracile request handler via a virtual import so that * the user's server entry can `import { handler } from 'gracile:handler'`. * * - **Dev**: resolves to a thin wrapper that delegates to the live * development handler stored in shared state. * - **Build (SSR env)**: resolves to the route manifest + handler creation * code (the same content that `gracileEntrypointPlugin` emits for * `entrypoint.js`). * * When `server.entry` is **not** configured this plugin is inert — the * virtual module is never imported by anything. * * @internal */ import type { Plugin } from 'vite'; import type { GracileHandler } from '../server/request.js'; import type { PluginSharedState } from './plugin-shared-state.js'; /** Called by `plugin-serve.ts` once the development handler is ready. */ export declare function setDevelopmentHandler(handler: GracileHandler): void; /** Used by the dev-time virtual module code (imported by the SSR runner). */ export declare function getDevelopmentHandler(): GracileHandler; export declare function gracileHandlerVirtualPlugin({ state, }: { state: PluginSharedState; }): Plugin[]; //# sourceMappingURL=plugin-handler-virtual.d.ts.map