/** * Dev / Node server assets: /@nexus_js/runtime ESM mirror + aggregated scoped CSS from .nx files. */ export declare function bustAggregatedStylesCache(): void; export declare function bustGlobalStylesCache(): void; export declare function getGlobalCssETag(): string | null; export declare function buildGlobalStylesheet(appRoot: string, customEntry?: string): Promise; /** * Return the ETag for the most-recently compiled aggregated stylesheet, or * null when no compiled result is available yet. Called by the request * handler to implement conditional-GET / 304 responses. */ export declare function getAggregatedCssETag(): string | null; /** * Locate `@nexus_js/runtime/dist` without `require.resolve` (pnpm "exports" blocks package.json / bare resolve from apps). */ export declare function resolveRuntimeDistDir(appRoot: string): string | null; /** * Locate `@nexus_js/serialize/dist` — served to the browser at `/_nexus/rt/serialize.js`. */ export declare function resolveSerializeDistFile(appRoot: string): string | null; /** Safe basename-only files under runtime dist (no ..). Allows .js and .map (source maps). */ export declare function runtimeModulePath(runtimeDist: string, pathname: string): string | null; /** * Concatenate scoped CSS from every .nx under src/ (routes + components). * * Concurrent callers share a single in-flight build promise so a burst of * requests after `bustAggregatedStylesCache()` does not launch N parallel * compile sweeps. A generation counter prevents a stale in-flight build from * overwriting a cache that was reset while the build was running. */ export declare function buildAggregatedNxStylesheet(appRoot: string, cssEntry?: string): Promise; /** * Compiles a .nx file's client island bundle for dynamic import() during hydration. */ export declare function compileIslandClientBundle(appRoot: string, url: URL): Promise<{ body: string; status: number; }>; export declare function isIslandClientRequest(pathname: string): boolean; /** * Serves `$lib/…` files for client islands. * * Candidate order for JS files (first match wins): * 1. `.nexus/output/lib/` — minified static files written by `nexus build` (production) * 2. `.nexus/lib/` — plain-transpiled output of `compileLib` (build fallback) * 3. `src/lib/` — TypeScript source (dev, served with tsx/strip-types) * * Source maps (`.js.map`): served exclusively from `.nexus/output/lib/` — they * are only generated by the production build step and have no dev equivalent. * * Returns null when the path doesn't match `/_nexus/lib/`. */ export declare function tryServeLibAsset(pathname: string, appRoot: string, _dev?: boolean): Promise<{ body: Buffer; contentType: string; } | null>; export declare function tryServeRuntimeAsset(pathname: string, appRoot: string): Promise<{ body: Buffer; contentType: string; } | null>; //# sourceMappingURL=dev-assets.d.ts.map