import { type CSSProperties } from 'react'; import { type TooltipPlacement } from '../Tooltip.types'; /** * The props for the usePopoverController hook. */ type UsePopoverControllerProps = { /** * The position of the tooltip. * - Single value: Fixed positioning * - Array: Priority-based positioning * - Undefined: Automatic positioning */ placement?: TooltipPlacement | TooltipPlacement[]; /** * The open state of the tooltip. */ open?: boolean; /** * The ref of the arrow element. * This is used to position the arrow. */ arrowRef: React.RefObject; }; /** * A hook to control the popover positioning. * * @param options - The options to control the popover. * * @returns The data to map with elements. */ export declare const usePopoverController: ({ placement, open, arrowRef }: UsePopoverControllerProps) => { tooltip: { setReference: (node: HTMLElement | null) => void; style: CSSProperties; }; trigger: { setReference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void; }; arrow: { style: CSSProperties; }; calculatedPlacement: TooltipPlacement; }; export {};