import Sortable, { SortableEvent, Options, MoveEvent } from "sortablejs"; import { ForwardRefExoticComponent, RefAttributes, ReactHTML, CSSProperties } from "react"; import { ReactSortable } from "./react-sortable"; export interface ItemInterface { id: string | number; selected?: boolean; chosen?: boolean; filtered?: boolean; [property: string]: any; } export interface ReactSortableProps extends ReactSortableOptions { /** * The list of items to use. */ list: T[]; /** * Sets the state for your list of items. */ setList: (newState: T[], sortable: Sortable | null, store: Store) => void; /** * If parsing in a component WITHOUT a ref, an error will be thrown. * * To fix this, use the `forwardRef` component. * * @example * forwardRef((props, ref) =>