/** * @celsian/vura-vite-plugin * * Vite plugin for Vura that: * 1. Adds dev middleware for API routes via CelsianApp.handle (A1.3) * 2. Adds dev middleware for ALL four page modes (static, server, hybrid, client), * matching the production build and the standalone dev server: * - static — SSR'd fresh per request (live reload; zero client JS) * - server — SSR'd per request with getServerData * - hybrid — SSR'd + client bundle for hydration * - client — SPA shell + client bundle (boots in the browser) * 3. Serves on-demand client/hybrid browser bundles at /_then/pages/*.js * (esbuild, mirroring the `vura build` output layout) * 4. Adds dev middleware for task management (/__tasks/*) * 5. Runs app middleware and server actions with browser fetch stubs * 6. Watches src/ for file changes and hot-reloads routes and browser bundles * 7. Scans file-based routes on startup */ import type { Plugin } from 'vite'; export interface ThenPluginOptions { /** Project root (default: process.cwd()) */ root?: string; } type TaskAdminHeaders = { authorization?: string | string[]; }; export declare function isTaskAdminRequestAuthorized(headers: TaskAdminHeaders, remoteAddress: string | undefined, env?: { THEN_TASK_SECRET?: string; NODE_ENV?: string; }): boolean; export declare function thenPlugin(options?: ThenPluginOptions): Plugin; export default thenPlugin; //# sourceMappingURL=index.d.ts.map