/**
 * Computes a position for a floating element relative to a target, with smart fallback
 * if it overflows the top or sides of the screen.
 *
 * @param originRect - The bounding rect of the origin element.
 * @param panelRect - The bounding rect of the panel to position.
 * @returns The top-left position for the panel.
 */
export declare function computeFloatingPosition(originRect: DOMRect, panelRect: DOMRect): {
    top: number;
    left: number;
};
/**
 * Tracks and computes the screen position of a floating panel relative to a given anchor element.
 *
 * @param panelRef - Ref to the panel element to position
 * @param anchorElement - The element the panel should be positioned relative to
 * @param enabled - Whether the positioning logic is active
 * @returns The top-left screen position for the panel
 */
export declare function useFloatingPanelPosition(panelRef: React.RefObject<HTMLElement>, anchorElement: HTMLElement | null, enabled: boolean): {
    top: number;
    left: number;
};
