///
import React from 'react';
import { AbstractSelectProps, SelectValue, OptionProps, OptGroupProps } from '../select/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;
onChange?: (value: SelectValue) => void;
onSelect?: (value: SelectValue, option: Object) => any;
children?: ValidInputElement | React.ReactElement | Array>;
filterOption?: (value: SelectValue, option: { key: string }) => boolean
}
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;
}