import { canUseDOM } from "../../../utils";
export var clearSelection = function clearSelection() {
    if (!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();
    }
};
