import { IOption } from "../Menu";
export declare const useAsyncAutocomplete: ({ options, formatOptions, setOptions, formatTotal, setTotal, }: {
    options: IOption[];
    formatOptions: (data: Record<string, unknown>) => IOption[];
    setOptions: (options: IOption[]) => void;
    formatTotal: (option: Record<string, unknown>) => number;
    setTotal?: ((amount: number) => void) | undefined;
}) => {
    asyncCallback: ({ value, promise, url, isLoadNext, }: {
        value: string;
        url?: string | undefined;
        promise?: Promise<any> | undefined;
        isLoadNext?: boolean | undefined;
    }) => void;
    loadNext: (callback: VoidFunction) => void;
};
