export type HydrationMode = "none" | "load"; export type RenderMode = "csr" | "ssr" | "ssg"; export interface ClientRuntime { version: 1; buildId: string; runtime: { server?: { rsc?: string; }; transport?: ClientRuntimeTransport; }; app?: ClientRuntimeApp; routing: ClientRuntimeRouting; } export interface ClientAssetGroup { js: string[]; css: string[]; } export interface ClientRuntimeModule { type: "entry" | "lifecycle" | "react-component"; href?: string; } export interface ClientRuntimeTransport { baseUrl?: string; credentials?: RequestCredentials; headers?: HeadersInit; } export type RuntimeTransportOptions = ClientRuntimeTransport; declare global { /** * Dynamic transport configuration injected by hosting runtimes before evjs * framework server requests start. Endpoint paths still come from framework * runtime metadata. */ var __EVJS_TRANSPORT__: RuntimeTransportOptions | undefined; } export interface ClientRuntimeApp { basepath?: string; mount?: string; module?: ClientRuntimeModule; } export interface ClientRuntimePage { mount?: string; module?: ClientRuntimeModule; path?: string; routeId?: string; } export interface ClientRuntimeRoute { id: string; path: string; pageId?: string; } export type ClientRuntimeRouting = { kind: "spa"; routes: ClientRuntimeRoute[]; } | { kind: "mpa"; pages: Record; }; export declare function assertClientRuntime(value: unknown, source: string): asserts value is ClientRuntime; export declare function getClientRuntimePages(runtime: ClientRuntime): Record; export declare function getClientRuntimeRoutes(runtime: ClientRuntime): ClientRuntimeRoute[]; export declare function getClientRuntimeServer(runtime: Pick): ClientRuntime["runtime"]["server"]; export declare function getClientRuntimeTransport(runtime: Pick): ClientRuntimeTransport | undefined; export declare function assertClientRuntimeTransport(value: unknown, source: string): asserts value is ClientRuntimeTransport; export declare function getGlobalRuntimeTransport(): RuntimeTransportOptions | undefined; /** * Resolve defaults for framework-managed browser requests to evjs server * endpoints using the legacy Server Function/RSC bootstrap. The application * HTTP client uses its own application/build-scoped transport binding. */ export declare function resolveClientRuntimeTransport(runtime: Pick): ClientRuntimeTransport | undefined; export declare function hasClientRuntimeTransport(transport: ClientRuntimeTransport): boolean; //# sourceMappingURL=runtime-config.d.ts.map