import * as React from 'react'; import { Option, OptGroup } from './src/index.js'; import { AbstractSelectProps, SelectValue, OptionProps, OptGroupProps } from './Select'; import './style/index.less'; 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; highlightSelected?: boolean; optionLabelProp?: string; getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement; onChange?: (value: SelectValue) => void; onSelect?: (value: SelectValue, option: Object) => any; children?: ValidInputElement | React.ReactElement | Array>; } export interface AutoCompleteRefInterface { focus: () => void; blur: () => void; } declare const AutoCompleteRef: React.ForwardRefExoticComponent>; declare type AutoCompleteRefType = typeof AutoCompleteRef; export interface AutoCompleteInterface extends AutoCompleteRefType { Option: typeof Option; OptGroup: typeof OptGroup; } declare const AutoComplete: AutoCompleteInterface; export default AutoComplete;