import { ComboboxOption } from './types'; type AsyncOptions = Array> | ((inputValue: string) => Promise>>); export declare const DEBOUNCE_TIME_MS = 200; /** * Abstracts away sync/async options for combobox components. * It also filters options based on the user's input. * * Returns: * - options either filtered by user's input, or from async options fn * - function to call when user types (to filter, or call async fn) * - loading and error states */ export declare function useOptions(rawOptions: AsyncOptions, createCustomValue: boolean, customValueDescription?: string): { options: ComboboxOption[]; groupStartIndices: Map; updateOptions: (inputValue: string) => void; asyncLoading: boolean; asyncError: boolean; }; /** * Sorts options by group and returns the sorted options and the starting index of each group */ export declare function sortByGroup(options: Array>): { options: ComboboxOption[]; groupStartIndices: Map; }; export {};