import { SetStateAction, Dispatch } from 'react'; import { usePopoverLegacy } from './usePopoverLegacy'; import { ThemeProviderContextProps } from '../../providers'; export type PopoverLegacyContextType = (ReturnType & { setLabelId: Dispatch>; setDescriptionId: Dispatch>; theme?: ThemeProviderContextProps["theme"]; mode?: ThemeProviderContextProps["mode"]; }) | null; export declare const PopoverLegacyContext: import('react').Context; export declare const usePopoverLegacyContext: () => { modal: boolean | undefined; labelId: string | undefined; descriptionId: string | undefined; setLabelId: Dispatch>; setDescriptionId: Dispatch>; arrowRef: import('react').MutableRefObject; disableCaret: boolean | undefined; noPadding: boolean | undefined; fillAvailableHeight: boolean | undefined; maxHeight: string | number | undefined; matchReferenceWidth: boolean | undefined; fixedWidth: boolean | undefined; disableFlipFallback: boolean | undefined; disableAutoUpdate: boolean | undefined; disableFocusLock: boolean | undefined; disableTriggerFocus: boolean | undefined; root: HTMLElement | import('react').MutableRefObject | null | undefined; placement: import('@floating-ui/react-dom').Placement; strategy: import('@floating-ui/react-dom').Strategy; middlewareData: import('@floating-ui/react-dom').MiddlewareData; x: number; y: number; isPositioned: boolean; update: () => void; floatingStyles: React.CSSProperties; refs: { reference: import('react').MutableRefObject; floating: React.MutableRefObject; setReference: (node: import('@floating-ui/react-dom').ReferenceType | null) => void; setFloating: (node: HTMLElement | null) => void; } & import('@floating-ui/react').ExtendedRefs; elements: { reference: import('@floating-ui/react-dom').ReferenceType | null; floating: HTMLElement | null; } & import('@floating-ui/react').ExtendedElements; context: { x: number; y: number; placement: import('@floating-ui/react-dom').Placement; strategy: import('@floating-ui/react-dom').Strategy; middlewareData: import('@floating-ui/react-dom').MiddlewareData; isPositioned: boolean; update: () => void; floatingStyles: React.CSSProperties; open: boolean; onOpenChange: (open: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void; events: import('@floating-ui/react').FloatingEvents; dataRef: React.MutableRefObject; nodeId: string | undefined; floatingId: string; refs: import('@floating-ui/react').ExtendedRefs; elements: import('@floating-ui/react').ExtendedElements; }; getReferenceProps: (userProps?: React.HTMLProps) => Record; getFloatingProps: (userProps?: React.HTMLProps) => Record; getItemProps: (userProps?: Omit, "selected" | "active"> & { active?: boolean; selected?: boolean; }) => Record; open: boolean | undefined; setOpen: (open: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void; onClose: (() => void) | undefined; } & { setLabelId: Dispatch>; setDescriptionId: Dispatch>; theme?: ThemeProviderContextProps["theme"]; mode?: ThemeProviderContextProps["mode"]; };