import React, { CSSProperties } from 'react'; import AutoCompleteItem, { AutoCompleteItemProps } from "./auto-complete-item"; import AutoCompleteSearching from "./auto-complete-searching"; import AutoCompleteEmpty from "./auto-complete-empty"; import { NormalSizes, NormalTypes } from "../utils/prop-types"; export declare type AutoCompleteOption = { label: string; value: string; }; export declare 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 | undefined; clearable?: boolean; dropdownClassName?: string; dropdownStyle?: CSSProperties; disableMatchWidth?: boolean; disableFreeSolo?: boolean; className?: string; } declare const defaultProps: { options: AutoCompleteOptions; initialValue: string; disabled: boolean; clearable: boolean; size: "small" | "mini" | "medium" | "large"; disableMatchWidth: boolean; disableFreeSolo: boolean; className: string; }; declare type NativeAttrs = Omit, keyof Props>; export declare type AutoCompleteProps = Props & typeof defaultProps & NativeAttrs; declare type AutoCompleteComponent

= React.FC

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