"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.setCellSelection = setCellSelection;
var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
function setCellSelection(view, anchor, head) {
  var state = view.state,
    dispatch = view.dispatch;
  // Ignored via go/ees005
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
  dispatch(state.tr.setSelection(_cellSelection.CellSelection.create(state.doc, anchor, head)));
}