import * as React from 'react'; export declare const getReactVersion: () => { major: number; minor: number; patch: number; }; type NonNullableValue = object | number | string | boolean | bigint | symbol; type NonStrictContextValue = NonNullableValue | undefined; type StrictContextValue = NonNullableValue | null; /** * A function that makes it easy to use the React `createContext` function. * @param defaultValue The default value of the context. * @param providerName The name of the provider component. * **Required if `defaultValue` is `null`able. (not `undefined`!)** Used to make the error message human-readable if contextValue is `null`. */ export declare function createContext(defaultValue: ContextValue): [React.Provider, () => ContextValue]; export declare function createContext(defaultValue: ContextValue, providerName: string): [ React.Provider, (consumerName: string) => NonNullable ]; export {}; //# sourceMappingURL=react.d.ts.map