import React__default from 'react'; declare function assertContextExists(contextVal: unknown, msgOrCtx: string | React__default.Context): asserts contextVal; type Options = { assertCtxFn?: (v: unknown, msg: string) => void; }; type ContextOf = React__default.Context<{ value: T; } | undefined>; 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 */ declare const createContextAndHook: (displayName: string, options?: Options) => [ContextOf, UseCtxFn, UseCtxFn>]; export { assertContextExists, createContextAndHook };