import React from 'react'; import AutoCompleteItem from './auto-complete-item'; import AutoCompleteSearching from './auto-complete-searching'; import AutoCompleteEmpty from './auto-complete-empty'; import { NormalSizes, NormalTypes } from '../utils/prop-types'; export type AutoCompleteOption = { label: string; value: string; }; export type AutoCompleteOptions = Array; interface Props { options: AutoCompleteOptions; size?: NormalSizes; status?: NormalTypes; initialValue?: string; value?: string; width?: string; onChange?: (value: string) => void; onSearch?: (value: string) => void; onSelect?: (value: string) => void; searching?: boolean; clearable?: boolean; dropdownClassName?: string; dropdownStyle?: Record; disableMatchWidth?: boolean; disableFreeSolo?: boolean; className?: string; } declare const defaultProps: { options: AutoCompleteOptions; initialValue: string; disabled: boolean; clearable: boolean; size: "mini" | "small" | "medium" | "large"; disableMatchWidth: boolean; disableFreeSolo: boolean; className: string; }; type NativeAttrs = Omit, keyof Props>; export type AutoCompleteProps = Props & typeof defaultProps & NativeAttrs; type AutoCompleteComponent

= React.FC

& { Item: typeof AutoCompleteItem; Option: typeof AutoCompleteItem; Searching: typeof AutoCompleteSearching; Empty: typeof AutoCompleteEmpty; }; type ComponentProps = Partial & Omit & NativeAttrs; declare const _default: AutoCompleteComponent; export default _default;