import { Ref } from 'react'; import { UseFloatingOptions, UseFloatingReturn, Placement, Strategy } from '@floating-ui/react-dom'; import { ElementGetter } from '../utils/getElement'; import { NativeElementPropsWithoutKeyAndRef } from '../utils/jsx-types'; import { PortalProps } from '../Portal'; export type PopperPlacement = Placement; export type PopperPositionStrategy = Strategy; export type PopperController = UseFloatingReturn; export interface PopperProps extends Pick, NativeElementPropsWithoutKeyAndRef<'div'> { /** * The ref of trigger Element. */ anchor?: ElementGetter; /** * Whether to show arrow element on the popper */ arrow?: { enabled: boolean; className: string; padding?: number; } | null; /** * Provide `controllerRef` if you need access to `useFloating` results. */ controllerRef?: Ref; /** * The portal element will show if open=true * @default false */ open?: boolean; /** * The options of useFloating hook from @floating-ui/react-dom. */ options?: UseFloatingOptions; } declare const Popper: import("react").ForwardRefExoticComponent>; export default Popper;