//#region src/GlobalContext/getContext.d.ts
/**
* Reads one key from the active {@link GlobalContext} and re-renders when that
* key changes.
*
* The value is backed by the reactive context object from `@pastweb/tools`.
*
* @typeParam T - Expected value type.
* @param key - Context key to read.
* @returns The current value for `key`.
*
* @example
* ```tsx
* function UserName() {
* const user = getContext<{ name: string }>('user');
* return {user.name};
* }
* ```
*/
declare function getContext(key: string): T;
//#endregion
export { getContext };
//# sourceMappingURL=getContext.d.ts.map