/// import type { ModulesApiRegistry } from './build-module-registry.js'; import type { Module, RegistryOf } from './types.js'; /** * Modules API registry context. */ export declare const ModulesContext: import("react").Context; /** * Gives access to the API registry for a given module and field. * * @example * ```ts * const chartBuilders = useModuleApiRegistry(VisualizationsModule, 'chartBuilders'); * ``` * @throws if used outside a `ModuleProvider`. * @throws if `module` was not registered in the enclosing provider. * * @alpha */ export declare const useModuleApiRegistry: (module: Module, field: K) => RegistryOf;