"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "clearSelection", {
    enumerable: true,
    get: function() {
        return clearSelection;
    }
});
var _utils = require("../../../utils");
var clearSelection = function clearSelection() {
    if (!_utils.canUseDOM) {
        return;
    }
    var doc = document;
    if (window.getSelection) {
        var _window_getSelection;
        (_window_getSelection = window.getSelection()) === null || _window_getSelection === void 0 ? void 0 : _window_getSelection.removeAllRanges();
    } else if (doc.selection) {
        doc.selection.empty();
    }
};
