import { DownshiftTypedProps, ListBoxBaseItemType } from "../../../typings/shared"; interface SharedOptions { locale: string; } interface SortItemsOptions extends SharedOptions, DownshiftTypedProps { compareItems(item1: ItemType, item2: ItemType, options: SharedOptions): number; selectedItems: ItemType[]; } export interface MultiSelectSortingProps { compareItems?(item1: ItemType, item2: ItemType, options: SharedOptions): number; // required but has default value sortItems?(items: readonly ItemType[], options: SortItemsOptions): ItemType[]; // required but has default value }