import React from "react"; type Options = { assertCtxFn?: (v: unknown, msg: string) => void; }; type ContextOf = React.Context; type UseCtxFn = () => T; /** * Creates and returns a Context and two hooks that return the context value. * The Context type is derived from the type passed in by the user. * The first hook returned guarantees that the context exists so the returned value is always CtxValue * The second hook makes no guarantees, so the returned value can be CtxValue | undefined */ export declare const createContextAndHook: (displayName: string, options?: Options) => [ContextOf, UseCtxFn, UseCtxFn>]; export {};