/** * SSR Context State * @module rendering/ssr-globals/context * * These are process-wide globals set ONCE at server startup. * They are NOT per-request state. Do not call setters from request handlers. * In production, each pod runs a single server instance, so setters are * naturally called once. In tests, multiple servers may share a process — * call {@link resetSSRGlobalsState} between tests to avoid stale state. */ export declare const originalFetch: typeof fetch; export declare function isSSRGlobalsActive(): boolean; export declare function markSSRGlobalsInitialized(): void; export declare function getSSRServerPort(): number | null; /** * Set the SSR server port. Intended to be called once at server startup. * In production each pod has one server, so this is naturally called once. * In tests multiple servers may start in the same process with different * ports — the last value wins, which is correct for test isolation. */ export declare function setSSRServerPort(port: number): void; export declare function getSSRProjectDomain(): string | null; export declare function isSSRClientOnlyFetching(): boolean; /** * Enable client-only fetching mode. Intended to be called once at server startup. * Idempotent — subsequent calls are no-ops (safe for test restarts). */ export declare function enableSSRClientOnlyFetching(): void; export declare function disableSSRClientOnlyFetching(): void; /** * Reset all SSR globals state. Used in tests only. * @internal */ export declare function resetSSRGlobalsState(): void; //# sourceMappingURL=context.d.ts.map