import type { DataRegistry } from '../../types';
/**
 * A custom React hook exposing the registry context for use.
 *
 * This exposes the `registry` value provided via the
 * <a href="#registryprovider">Registry Provider</a> to a component implementing
 * this hook.
 *
 * It acts similarly to the `useContext` React hook.
 *
 * Note: Generally speaking, `useRegistry` is a low level hook that in most cases
 * won't be needed for implementation. Most interactions with the `@wordpress/data`
 * API can be performed via the `useSelect` hook, or the `withSelect` and
 * `withDispatch` higher order components.
 *
 * @example
 * ```js
 * import {
 *   RegistryProvider,
 *   createRegistry,
 *   useRegistry,
 * } from '@wordpress/data';
 *
 * const registry = createRegistry( {} );
 *
 * const SomeChildUsingRegistry = ( props ) => {
 *   const registry = useRegistry();
 *   // ...logic implementing the registry in other react hooks.
 * };
 *
 *
 * const ParentProvidingRegistry = ( props ) => {
 *   return <RegistryProvider value={ registry }>
 *     <SomeChildUsingRegistry { ...props } />
 *   </RegistryProvider>
 * };
 * ```
 *
 * @return A custom React hook exposing the registry context value.
 */
export default function useRegistry(): DataRegistry;
//# sourceMappingURL=use-registry.d.ts.map