import * as react_jsx_runtime from 'react/jsx-runtime'; import React__default from 'react'; /** * Creates a safe context that can be used to provide and consume values in the React component tree. * * @param {string} errorMessage - The error message to throw if the context value is null. * @template ContextValue - The type of the context value. * @return {[(props: { value: ContextValue; children: React.ReactNode }) => JSX.Element, () => ContextValue]} - An array containing the Provider component and the useSafeContext hook. */ declare function createSafeContext(errorMessage: string): readonly [({ children, value }: { value: ContextValue; children: React__default.ReactNode; }) => react_jsx_runtime.JSX.Element, () => ContextValue & ({} | undefined)]; export { createSafeContext };