import React, { CSSProperties, ReactElement } from 'react';
import AutoCompleteItem, { AutoCompleteItemProps } from './auto-complete-item';
import { NormalTypes } from '../utils/prop-types';
export type AutoCompleteTypes = NormalTypes;
export type AutoCompleteOption = {
    label: string;
    value: string;
};
export type AutoCompleteOptions = Array<typeof AutoCompleteItem | AutoCompleteOption | React.ReactElement<AutoCompleteItemProps>>;
interface Props {
    options?: Array<AutoCompleteOption>;
    type?: AutoCompleteTypes;
    initialValue?: string;
    value?: 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;
    getPopupContainer?: () => HTMLElement | null;
}
type NativeAttrs = Omit<React.InputHTMLAttributes<any>, keyof Props>;
export type AutoCompleteProps = Props & NativeAttrs & ReactElement;
declare const AutoCompleteComponent: React.ForwardRefExoticComponent<Props & NativeAttrs & React.ReactElement<any, string | React.JSXElementConstructor<any>> & {
    children?: React.ReactNode | undefined;
} & React.RefAttributes<HTMLInputElement>>;
export default AutoCompleteComponent;
