///
export interface IDropdownHookProps {
options: T[];
defaultValue?: T | T[];
value?: T | T[];
onChange?: (option: T | T[], value: ReturnType<(option: T) => string | number> | ReturnType<(option: T) => string | number>[]) => void;
getOptionValue?: (option: T) => string | number;
getBadgeLabel?: (option: T) => string;
isOptionDisabled?: (option: T) => boolean;
getBadgeOptions?: (option: T) => Record;
multiple?: boolean;
}
declare const useDropdown: ({ options, defaultValue, getOptionValue, isOptionDisabled, multiple, onChange, value, }: IDropdownHookProps) => {
anchorEl: any;
setAnchorEl: import("react").Dispatch;
boxRef: import("react").MutableRefObject;
isOptionSelected: (option: any) => boolean;
listBoxRef: import("react").MutableRefObject;
handleSelectAll: () => void;
handleClearAll: () => void;
getOptionProps: (option: any) => {
onClick: () => void;
};
selectedOptions: T[];
allOptionsSelected: boolean;
};
export default useDropdown;