import * as React from 'react'; import { type Ref } from 'react'; import { type OnPlacementChange, type UseFloatingMiddlewaresBootstrapOptions, type UseFloatingWithInteractionsProps, type UseFloatingWithInteractionsReturn } from '../lib/floating'; import { type ReferenceProps } from '../lib/floating/useFloatingWithInteractions/types'; export type FloatingComponentProps = Pick & { floatingRef: React.Ref; setArrowRef: React.Dispatch>; }; export type RenderFloatingComponentFn = (props: FloatingComponentProps) => React.ReactNode | null; export type RemapReferencePropsFn = (props: ReferenceProps & { shown: boolean; }) => ReferenceProps; export type UseFloatingElementProps = Omit & Omit & { onPlacementChange?: OnPlacementChange; onReferenceHiddenChange?: (hidden: boolean) => void; renderFloatingComponent: RenderFloatingComponentFn; remapReferenceProps?: RemapReferencePropsFn; externalFloatingElementRef?: React.Ref; }; export type UseFloatingResult = { anchorRef: Ref; anchorProps: ReferenceProps; component: React.ReactNode | null; }; export declare const useFloatingElement: ({ placement, arrow, arrowHeight, arrowPadding, sameWidth, offsetByMainAxis, offsetByCrossAxis, customMiddlewares, hideWhenReferenceHidden, disableFlipMiddleware, disableShiftMiddleware, overflowPadding, trigger, hoverDelay, closeAfterClick, disabled, disableInteractive, disableCloseOnClickOutside, disableCloseOnEscKey, defaultShown, shown: shownProp, onShownChange, onShownChanged, strategy, onReferenceHiddenChange, onPlacementChange, renderFloatingComponent, externalFloatingElementRef, remapReferenceProps, }: UseFloatingElementProps) => UseFloatingResult; //# sourceMappingURL=useFloatingElement.d.ts.map