/** * Creates a new datastore for a given server context. * Attempts to closely mimic the `createContext` API. * * @example * const IntlayerServer = createServerContext(null); * * * {children} * */ import { FC, PropsWithChildren, ReactNode } from "react"; export declare const createServerContext: (defaultValue?: T) => ServerContext; /** * Fetches a value present in a given server context. * Attempts to closely mimic the `useContext` API. * * @example * getServerContext(IntlayerServer); */ export declare const getServerContext: ({ _storage, _defaultValue }: ServerContext) => T; export type ServerContext = FC> & { Provider: FC>; Consumer: FC ReactNode; }>>; _storage: () => { value: T | undefined; }; _defaultValue: T | undefined; }; //# sourceMappingURL=serverContext.d.ts.map