import { TableDragAndDropContext } from './TableDragAndDropContext';
import { TableDragAndDrop as WDSTableDragAndDrop } from '@wix/wix-style-react-incubator/drag-and-drop';
import { minimalRequiredWdsRuntimeCheck } from '../minimalRequiredWdsRuntimeCheck';
import { TableDragAndDropState } from './DragAndDrop/TableDragAndDropState';
if (process.env.NODE_ENV !== 'production') {
    minimalRequiredWdsRuntimeCheck({
        required: '^1.64.1',
        requiredBy: 'WixPatterns/TableDragAndDrop',
    });
}
export function setStateObject({ state, modalsContainerRef, }) {
    state.tableDragAndDropState ??= new TableDragAndDropState({
        tableState: state,
        modalsContainerRef,
    });
    state.toolbar._dnd = state.tableDragAndDropState.dnd;
}
export const TableDragAndDrop = {
    ...WDSTableDragAndDrop,
    TableDragAndDropContext,
    setStateObject,
};
//# sourceMappingURL=TableDragAndDrop.js.map