/** The slice of a Vite/Rollup plugin this returns. Structural, so `vite` stays an optional peer. */ export interface ServerFnStubPlugin { readonly name: string; readonly enforce: "pre"; /** Applied only to the CLIENT build; the server build keeps the real module. */ readonly applyToEnvironment?: (environment: { readonly name: string; }) => boolean; transform(code: string, id: string, options?: { readonly ssr?: boolean; }): { code: string; map: null; } | null; } /** * Replace every `*.fn` module with its client stubs. * * Client-only by construction: nifra passes this to the client build and the dev server, never to the * SSR build, because the server is what actually runs these functions. */ export declare function viteServerFnStub(): ServerFnStubPlugin; //# sourceMappingURL=vite-server-fn.d.ts.map