import { Context } from "react"; /** * Ensure that context exists or an error is thrown. * * @param context requested context * @param name name of context - used when an error should be thrown * @param hint optional hint in the error */ export declare const useContext: (context: Context, name: string, hint?: string) => TContext; export declare const useOptionalContext: (context: Context) => TContext | null;