import React, { type ReactNode } from 'react'; /** * Context for tracking nested Popover components */ type PopoverContextValue = { /** * Whether this component is nested inside another Popover */ isNested: boolean; /** * The depth of nesting (0 for root level, 1 for first nested level, etc.) */ nestingDepth: number; }; /** * Hook to access the popover nesting context * * @returns PopoverContextValue containing nesting information */ export declare function usePopoverContext(): PopoverContextValue; /** * Provider component that tracks nesting depth for Popover components * This replaces the inefficient DOM traversal approach with React Context */ export declare const PopoverContextProvider: React.MemoExoticComponent<({ children }: { children: ReactNode; }) => import("react/jsx-runtime").JSX.Element>; export {};