/** * RSC endpoint router and orchestrator * @module rsc-endpoints/endpoint-router */ import { bundleBrowserModuleWithMetadata } from "../../../shared/browser-module-bundler.js"; import { type BrowserModuleBuildCoordinatorOptions } from "../../../shared/browser-module-availability.js"; import type { RSCEndpointParams } from "./types.js"; export declare function resetBrowserModuleEndpointStateForTesting(options?: BrowserModuleBuildCoordinatorOptions): void; /** Override the browser module builder for focused endpoint tests. */ export declare function setBrowserModuleBuilderForTesting(builder?: typeof bundleBrowserModuleWithMetadata): void; export declare function getBrowserModuleEndpointStatsForTesting(): { cacheEntries: number; cacheBytes: number; inFlight: number; activeGlobal: number; }; /** * Handle RSC endpoints * @param params - RSC endpoint parameters * @returns Response or null if not an RSC endpoint */ export declare function handleRSCEndpoint({ req, pathname, projectDir, projectId, projectSlug, contentSourceId, releaseId, branch, dependencyPinningSource: providedDependencyPinningSource, adapter, config, isLocalProject, allowHostProjectCodeExecution, mode, nonce, applicationIdentityHeaderNames, applicationIdentity, }: RSCEndpointParams): Promise; interface BrowserModuleCacheKeyOptions { adapterId: number; projectKey: string; contentSourceId?: string; releaseId?: string; branch?: string | null; configHash: string; moduleServerOrigin?: string; dependencyPinningCacheKey?: string; modulePath: string; } export declare function buildBrowserModuleCacheKey(options: BrowserModuleCacheKeyOptions): string; export {}; //# sourceMappingURL=endpoint-router.d.ts.map