import React, { PropsWithChildren } from 'react'; import { PopoverContextType } from './PopoverContext.types'; export declare const PopoverContext: React.Context; /** * Access the popover context to read and write if a popover element is open in a modal */ export declare const usePopoverContext: () => PopoverContextType; /** * Creates a Popover context to read and write if a popover element is open in a modal * Call `usePopoverContext` to access the popover state * This is defined separately from `PopoverPropsContext` to avoid incorrectly resetting `isPopoverOpen` value * We avoid renaming this provider because it will trigger major changes in all packages because * `@leafygreen-ui/leafygreen-provider` is a peer dependency to all LG packages */ export declare const PopoverProvider: { ({ children }: PropsWithChildren<{}>): React.JSX.Element; displayName: string; }; //# sourceMappingURL=PopoverContext.d.ts.map