import { type ComponentPropsWithRef, type ReactNode } from 'react'; import type { UseFormRegisterReturn } from 'react-hook-form'; import type { Size } from '../../../../constant/size'; import type { OptionChangeHandler, OptionType, OptionValue } from '../../../types/dropdown'; declare const defaultMaxHeight = 275; interface ComboBoxProps extends Omit, 'size' | 'onChange'> { children?: ReactNode; placeholder?: string; hintText?: string; destructive?: boolean; size?: Extract; optionItems?: OptionType[]; value?: OptionValue | null; onChange?: OptionChangeHandler; onSearch?: (searchValue: string) => void; disabled?: boolean; register?: UseFormRegisterReturn; maxHeight?: number; searchValue?: string; label?: string; required?: boolean; multiple?: boolean; showFooterButtons?: boolean; /** * 최대 선택 가능 개수 (multiple=true에서만 유효). * - `0` 이상의 정수: 제한 활성 → footer의 "전체선택" Link 미노출 (DES-SPEC-009 §3.10.1). * - `0`은 모든 새 선택을 차단한다. * - 양수는 도달 후 추가 선택을 무시한다 (이미 선택된 항목 해제는 정상). * - 음수 / 비정수 / `null` / `undefined`: 제한 없음. */ maxSelection?: number | null; onEdit?: () => void; /** * 완료 버튼 클릭 시 호출되는 콜백 — 현재 선택된 값을 인자로 받음 (multiple 모드에서만 트리거) */ onComplete?: OptionChangeHandler; /** * 옵션 패널을 React Portal로 body에 렌더한다. 기본값 false — 명시적으로 켠 경우에만 동작한다. * SelectBox·Dropdown 과 달리 FloatingContext.preferPortal 을 따르지 않는다. 컨텍스트를 따르면 * Table horizontalScroll 안의 기존 ComboBox 가 옵션 지정 없이 Portal 로 전환되기 때문이다. */ usePortal?: boolean; } declare const ComboBox: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; export { defaultMaxHeight, ComboBox }; export type { ComboBoxProps };