type Range = [number, number]; declare class DragUtils { /** * Re-orders the provided item lists in place based on the selectedRanges and destinationIndex provided * @param sourceList Array of the source items * @param selectedRanges Array of the selected ranges in the source list * @param destinationList Destination items. If dragging within the same list, set it to sourceItems * @param destinationIndex The index items are being dropped in the destinationList, adjusted for the removed items * @returns The items that were dragged */ static reorder(sourceList: T[], selectedRanges: readonly Range[], destinationList: T[], destinationIndex: number): T[]; /** * Removes the provided ranges from the list in place * @param list Array of items to remove the ranges. * @param ranges Array of the ranges to remove. * @returns The removed items, in the order of the ranges removed. */ static removeItems(list: T[], ranges: readonly Range[]): T[]; /** * Adjusts the destination index for when dropping into the same list you're dragging from. * @param destinationIndex The original destination index * @param ranges The ranges that are moving * @returns Index where item should be inserted after all ranges are removed */ static adjustDestinationIndex(destinationIndex: number, ranges: readonly Range[]): number; static startDragging(): void; static stopDragging(): void; } export default DragUtils; //# sourceMappingURL=DragUtils.d.ts.map