interface CreateContextOptions { /** * If `true`, React will throw if context is `null` or `undefined` * In some cases, you might want to support nested context, so you can set it to `false` */ strict?: boolean; /** * Error message to throw if the context is `undefined` */ errorMessage?: string; /** * The display name of the context */ name?: string; } declare type CreateContextReturn = [ React.Provider, () => T, React.Context ]; /** * Creates a named context, provider, and hook. * * @param options create context options */ declare function createContext(options?: CreateContextOptions): CreateContextReturn; export { CreateContextOptions, CreateContextReturn, createContext };