import * as React from 'react'; import { Option, OptGroup } from './src/index.js'; export interface AbstractSelectProps { prefixCls?: string; className?: string; size?: 'default' | 'large' | 'small'; notFoundContent?: React.ReactNode | null; transitionName?: string; choiceTransitionName?: string; showSearch?: boolean; allowClear?: boolean; disabled?: boolean; showArrow?: boolean; style?: React.CSSProperties; tabIndex?: number; placeholder?: string | React.ReactNode; defaultActiveFirstOption?: boolean; dropdownClassName?: string; dropdownStyle?: React.CSSProperties; dropdownMenuStyle?: React.CSSProperties; dropdownMatchSelectWidth?: boolean; onSearch?: (value: string) => any; filterOption?: boolean | ((inputValue: string, option: React.ReactElement) => any); id?: string; } export interface LabeledValue { key: string; label: React.ReactNode; } export declare type SelectValue = string | string[] | number | number[] | LabeledValue | LabeledValue[]; export interface SelectProps extends AbstractSelectProps { value?: SelectValue; defaultValue?: SelectValue; mode?: 'default' | 'multiple' | 'tags' | 'combobox' | string; optionLabelProp?: string; firstActiveValue?: string | string[]; onChange?: (value: SelectValue, option: React.ReactElement | React.ReactElement[]) => void; onSelect?: (value: SelectValue, option: React.ReactElement) => any; onDeselect?: (value: SelectValue) => any; onBlur?: () => any; onFocus?: () => any; onPopupScroll?: () => any; onInputKeyDown?: (e: React.KeyboardEvent) => void; onMouseEnter?: (e: React.MouseEvent) => any; onMouseLeave?: (e: React.MouseEvent) => any; maxTagCount?: number; maxTagPlaceholder?: React.ReactNode | ((omittedValues: SelectValue[]) => React.ReactNode); optionFilterProp?: string; labelInValue?: boolean; getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement; tokenSeparators?: string[]; getInputElement?: () => React.ReactElement; autoFocus?: boolean; children?: React.ReactNode; } export interface OptionProps { disabled?: boolean; value?: string | number; title?: string; children?: React.ReactNode; } export interface OptGroupProps { label?: React.ReactNode; } export interface SelectLocale { notFoundContent?: string; } declare const SelectRef: React.ForwardRefExoticComponent>; declare type InternalSelectType = typeof SelectRef; export interface SelectInterface extends InternalSelectType { SECRET_COMBOBOX_MODE_DO_NOT_USE: string; Option: typeof Option; OptGroup: typeof OptGroup; } declare const Select: SelectInterface; export default Select;