/// import React from 'react'; import { AbstractSelectProps, SelectValue, OptionProps, OptGroupProps } from '../select'; export interface DataSourceItemObject { value: string; text: string; } export declare type DataSourceItemType = string | DataSourceItemObject; export interface InputProps { onChange?: React.FormEventHandler; value: any; } export declare type ValidInputElement = HTMLInputElement | HTMLTextAreaElement | React.ReactElement; export interface AutoCompleteProps extends AbstractSelectProps { value?: SelectValue; defaultValue?: SelectValue; dataSource: DataSourceItemType[]; optionLabelProp?: string; filterOption?: boolean | ((inputValue: string, option: Object) => any); onChange?: (value: SelectValue) => void; onSelect?: (value: SelectValue, option: Object) => any; children?: ValidInputElement | React.ReactElement | Array>; } export default class AutoComplete extends React.Component { static Option: React.ClassicComponentClass; static OptGroup: React.ClassicComponentClass; static defaultProps: { prefixCls: string; transitionName: string; optionLabelProp: string; choiceTransitionName: string; showSearch: boolean; filterOption: boolean; }; getInputElement: () => JSX.Element; render(): JSX.Element; }