import * as React from 'react'; import { AbstractSelectProps, SelectValue, OptionProps, OptGroupProps } from '../select'; export interface DataSourceItemObject { value: string; text: string; } export declare type DataSourceItemType = string | DataSourceItemObject | React.ReactElement | React.ReactElement; export interface AutoCompleteInputProps { onChange?: React.FormEventHandler; value: any; } export declare type ValidInputElement = HTMLInputElement | HTMLTextAreaElement | React.ReactElement; export interface AutoCompleteProps extends AbstractSelectProps { value?: SelectValue; defaultValue?: SelectValue; dataSource?: DataSourceItemType[]; autoFocus?: boolean; backfill?: boolean; optionLabelProp?: string; onChange?: (value: SelectValue) => void; onSelect?: (value: SelectValue, option: Object) => any; onBlur?: () => any; onFocus?: () => 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; }; private select; getInputElement: () => JSX.Element; focus(): void; blur(): void; saveSelect: (node: any) => void; render(): JSX.Element; }