import { type Placement } from '@floating-ui/react';
import { type CSSProperties, type RefCallback } from 'react';
export type AnchorRect = {
    x: number;
    y: number;
    width: number;
    height: number;
};
export interface UseFloatingPositionOptions {
    open?: boolean;
    nodeId?: string;
    anchorRect?: AnchorRect;
    placement?: Placement;
    offset?: number;
    fallbackPlacement?: 'none' | 'start' | 'end';
}
export interface UseFloatingPositionReturn {
    computedAnchor: AnchorRect | null;
    floatingStyles: CSSProperties;
    availableHeight: number | null;
    refs: {
        setReference: RefCallback<Element>;
        setFloating: RefCallback<HTMLElement>;
    };
    mergedReferenceRef: ((instance: Element | null) => void) | null;
}
export declare function useFloatingPosition({ open, nodeId, anchorRect, placement, offset: offsetValue, fallbackPlacement, }: UseFloatingPositionOptions): UseFloatingPositionReturn;
//# sourceMappingURL=useFloatingPosition.d.ts.map