import { type Placement, type Coords } from '@floating-ui/dom'; import React from 'react'; import useFocusTrap from '../../utils/useFocusTrap'; declare const AnchoredOverlay: React.ForwardRefExoticComponent<{ /** A target element or ref to attach the overlay anchor element. */ target: HTMLElement | React.RefObject | React.MutableRefObject; /** Positional placement value to anchor the overlay element relative to its anchored target. */ placement?: "auto" | Placement | "auto-start" | "auto-end" | undefined; /** Determines if the overlay anchor is currently visible. */ open?: boolean | undefined; /** A callback function that is called when the overlay state changes. */ onOpenChange?: ((open: boolean) => void) | undefined; /** A callback function that is called when the placement of the overlay changes. */ onPlacementChange?: ((placement: Placement) => void) | undefined; /** A callback function that is called when the shift of the overlay changes. */ onShiftChange?: ((coords: Coords) => void) | undefined; /** An optional offset number to position the anchor element from its anchored target. */ offset?: number | undefined; /** When set, traps focus within the AnchoredOverlay. */ focusTrap?: boolean | undefined; /** When `focusTrap` is true, optional arguments to configure the focus trap. */ focusTrapOptions?: Parameters[1]; /** Render the anchored overlay in a different location in the dom. */ portal?: HTMLElement | React.RefObject | undefined; children?: React.ReactNode; } & React.HTMLAttributes & { as?: React.ElementType | undefined; } & React.RefAttributes>; export default AnchoredOverlay;