import * as React from "react"; /** * Request-owned capabilities made available to framework components while * React renders a server tree. Values live in a React provider, rather than a * process-global slot, so suspended work retains the request that created it. */ export interface ServerRenderContextValue { readonly nonce?: string; readonly registerHeadPayload: (payload: string) => string; } type ReactContextRuntime = Pick; /** * The shared object identity is deliberate: project bundles may evaluate * framework modules through different URLs, while a React context provider * and consumer must still agree on the same context object. No request value * is stored globally; request data is carried only by the provider stack. */ export declare function getServerRenderContext(react?: ReactContextRuntime): unknown; export declare function useServerRenderContext(): ServerRenderContextValue | null; export declare function wrapWithServerRenderContext(element: React.ReactNode, value: ServerRenderContextValue | undefined, react?: ReactContextRuntime): React.ReactNode; export {}; //# sourceMappingURL=server-render-context.d.ts.map