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