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 DEFAULT_MAX_HEIGHT = 275; type SelectBoxProps = Omit, 'size' | 'onChange'> & { children?: ReactNode; placeholder?: string; disabledPlaceholder?: boolean; hintText?: string; destructive?: boolean; size?: Extract; autoWidth?: boolean; type?: 'default' | 'simple'; optionItems?: OptionType[]; value?: OptionValue; onChange?: OptionChangeHandler; disabled?: boolean; readOnly?: boolean; register?: UseFormRegisterReturn; maxHeight?: number; multiple?: boolean; /** * 최대 선택 가능 개수 (multiple=true에서만 유효). * - `0` 이상의 정수: 제한 활성 → footer "전체선택" Link 미노출. * - `0`은 모든 새 선택을 차단한다. * - 양수는 도달 후 추가 선택을 무시한다 (이미 선택된 항목 해제는 정상). * - 음수 / 비정수 / `null` / `undefined`: 제한 없음. */ maxSelection?: number | null; onEdit?: () => void; /** * 완료 버튼 클릭 시 호출되는 콜백 — 현재 선택된 값을 인자로 받음 (multiple 모드에서만 트리거) */ onComplete?: OptionChangeHandler; align?: 'left' | 'right'; /** * 옵션 패널을 React Portal로 body에 렌더한다. * 미지정 시 FloatingContext.preferPortal 값을 따른다 (DataGrid.Table horizontalScroll 내부에서는 자동 true). */ usePortal?: boolean; }; declare const SelectBox: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; export type { SelectBoxProps }; export { DEFAULT_MAX_HEIGHT, SelectBox };