import type { Placement, PositionResult } from '../types'; interface UsePositionOptions { targetElement: HTMLElement | null; placement: Placement; enabled: boolean; /** Extra padding around the highlight box — added to the tooltip offset */ highlightPadding?: number; } /** * Hook that computes and tracks tooltip position relative to a target element. * Re-computes on scroll, resize, and when the target changes. * Retains the previous position during step transitions to avoid flicker. */ export declare function usePosition({ targetElement, placement, enabled, highlightPadding }: UsePositionOptions): { position: PositionResult | null; tooltipRef: import("react").RefObject; updatePosition: () => void; }; export {};