import { type CSSProperties, type RefObject } from 'react'; import { type PortalAlign, type PortalDirection } from '../utils/portal-position'; type UseFloatingPositionParams = { enabled: boolean; isOpen: boolean; triggerRef: RefObject; floatingRef: RefObject; direction: PortalDirection; /** trigger 와 floating 요소 사이 간격. 미지정 시 4px */ offset?: number; /** 미지정 시 'left' */ align?: PortalAlign; /** * true면 floating 요소의 min-width를 trigger 너비로 보장한다 (width 고정이 아니다). * Portal 모드에서 부모가 body로 바뀌면서 min-width: 100% 같은 CSS가 viewport 너비로 * 폭주하는 것을 막는다 (예: SelectBox 옵션 패널). */ matchTriggerWidth?: boolean; }; export declare const useFloatingPosition: ({ enabled, isOpen, triggerRef, floatingRef, direction, offset, align, matchTriggerWidth, }: UseFloatingPositionParams) => CSSProperties | null; export {};