import { BaseDriver } from 'wix-ui-test-utils/driver-factory';

interface ReorderIds {
  removedId: number | string;
  addedId: number | string;
}

interface ReorderDataHooks{
  from: string;
  to: string;
}

interface DraggableItemDetails {
  dataHook: string
}

export interface SortableListDriver extends BaseDriver {
  /**
   * @deprecated use reorderByDataHook
   */
  reorder: (ids: ReorderIds) => void;
  reorderByDataHook: (dataHooks: ReorderDataHooks) => void;
  getItemCurrentPosition: (itemDetails: DraggableItemDetails) => number
}
