import { default as React } from 'react'; import { IconType } from '../icon/index.cjs'; import { DropPlacementsType, ShapeType, SizeType, ThemeType } from '../const/types.cjs'; export interface SelectOption { label: string | number; value: string | number; disabled?: boolean; } export type SelectValue = string | number | (string | number)[] | undefined; export interface SelectProps extends Omit, "onChange" | "onSelect" | "defaultValue" | "defaultChecked"> { placeholder?: string; size?: SizeType; placement?: DropPlacementsType; /** 关闭后是否销毁面板内容。默认销毁(重开时重新挂载);设为 false 可保留面板内的表单状态,代价是每个打开过的实例留一份隐藏 DOM。 */ destroyOnClose?: boolean; width?: number; maxTagCount?: number; value?: SelectValue; open?: boolean; clearable?: boolean; filterable?: boolean; /** Allow creating a new option from the search text in multiple mode. */ allowCreate?: boolean; block?: boolean; disabled?: boolean; readOnly?: boolean; multiple?: boolean; loading?: boolean; bordered?: boolean; extendWidth?: boolean; showArrow?: boolean; options?: SelectOption[]; theme?: ThemeType; emptyText?: string; loadingText?: string; icon?: IconType[]; shape?: ShapeType; virtual?: boolean; itemHeight?: number; overscan?: number; arrowIcon?: IconType[]; onSearch?: (e: React.ChangeEvent) => void; onChange?: (value: SelectValue) => void; onSelect?: (option: SelectOption & { selected: boolean; }) => void; onClear?: () => void; onOpenChange?: (opened: boolean) => void; children?: React.ReactNode; } declare const _default: React.FC; export default _default;