///
import { SingleComboBoxOption, InternalComboBoxOption, FixedItems } from './';
export declare type TrailingItem = {
onSelect: (fieldValue: string) => any;
render: (fieldValue: string) => React.ReactNode;
isVisible?: (fieldValue: string, filteredOptions: SingleComboBoxOption[]) => boolean;
selectIfOnly?: boolean;
isMoreOption?: boolean;
};
export declare const useSingleComboBox: ({ fixedItems, onBlur, onChange, onFocus, onKeyDown, options, trailingItem, value, }: {
fixedItems?: FixedItems | undefined;
onBlur?: import("react").FormEventHandler | undefined;
onChange?: ((option?: SingleComboBoxOption | undefined) => void) | undefined;
onFocus?: import("react").FormEventHandler | undefined;
onKeyDown?: import("react").KeyboardEventHandler | undefined;
options: SingleComboBoxOption[];
trailingItem?: TrailingItem | undefined;
value?: SingleComboBoxOption | undefined;
}) => {
filteredOptions: InternalComboBoxOption[];
isOpen: boolean;
fieldValue: string;
onFieldBlur: (e: React.FormEvent) => void;
onFieldFocus: (e: React.FormEvent) => void;
onFieldChange: (e: React.ChangeEvent) => void;
onFieldKeyDown: (e: React.KeyboardEvent) => void;
selectedIndex: number;
listOptionsRef: import("react").RefObject;
onSelectOption: (option: InternalComboBoxOption) => void;
selectedOptionRef: import("react").RefObject;
};