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