import type { ReactNode, Ref } from 'react';
export interface Option<T> {
    label: string;
    value: T;
}
export type AutocompleteChangeEventHandler<T> = (value: T | T[]) => void;
export interface AutocompleteProps<T> {
    label: ReactNode | ReactNode[];
    value: T | T[] | null;
    options: T[] | Option<T>[];
    disabled?: boolean;
    required?: boolean;
    displayValue: (item: T | T[] | null) => string;
    onQuery: (query: string) => void;
    onChange: (value: T | T[] | undefined) => void;
}
declare const _default: <T>(props: AutocompleteProps<T> & {
    ref: Ref<HTMLButtonElement>;
}) => JSX.Element;
export default _default;
