import React from 'react'; import { AppRegistry } from './app-registry'; /** * @internal exported for the mock plugin helper implementation */ export declare const GlobalAppRegistryContext: React.Context>; type AppRegistryProviderProps = { localAppRegistry?: never; deactivateOnUnmount?: never; children?: React.ReactNode; scopeName?: string; } | { /** * localAppRegistry to be set in React context. By default will be created * when this component renders. Can be used to preserve appRegistry state even * if AppRegistryProvider is unmounted * * @example * function CollectionTab({ id }) { * return ( * * ... * * ) * } */ localAppRegistry: AppRegistry; /** * Deactivates all active plugins and remove all event listeners from the app * registry when provider unmounts. Default is `true` */ deactivateOnUnmount?: boolean; children: React.ReactNode; scopeName?: string; }; export declare function GlobalAppRegistryProvider({ value, children, }: { value?: AppRegistry; children?: React.ReactNode; }): React.JSX.Element; export declare function useIsTopLevelProvider(): boolean; export declare function AppRegistryProvider({ children, ...props }: AppRegistryProviderProps): React.JSX.Element; export declare function useGlobalAppRegistry(): AppRegistry; export declare function useLocalAppRegistry(): AppRegistry; export {}; //# sourceMappingURL=react-context.d.ts.map