export var SplitType;
(function (SplitType) {
    SplitType["none"] = "none";
    SplitType["head"] = "head";
    SplitType["tail"] = "tail";
    SplitType["both"] = "both";
})(SplitType || (SplitType = {}));
export var ERROR;
(function (ERROR) {
    ERROR["DOM_TYPE_ERROR"] = "[DOM] Receive wrong node type.";
    ERROR["DOM_SELECTION_EMPTY"] = "[DOM] The selection contains no dom node, may be you except them.";
    ERROR["RANGE_INVALID"] = "[RANGE] Got invalid dom range, can't convert to a valid highlight range.";
    ERROR["RANGE_NODE_INVALID"] = "[RANGE] Start or end node isn't a text node, it may occur an error.";
    ERROR["DB_ID_DUPLICATE_ERROR"] = "[STORE] Unique id conflict.";
    ERROR["CACHE_SET_ERROR"] = "[CACHE] Cache.data can't be set manually, please use .save().";
    ERROR["SOURCE_TYPE_ERROR"] = "[SOURCE] Object isn't a highlight source instance.";
    ERROR["HIGHLIGHT_RANGE_FROZEN"] = "[HIGHLIGHT_RANGE] A highlight range must be frozen before render.";
    ERROR["HIGHLIGHT_SOURCE_RECREATE"] = "[HIGHLIGHT_SOURCE] Recreate highlights from sources error.";
    // eslint-disable-next-line max-len
    ERROR["HIGHLIGHT_SOURCE_NONE_RENDER"] = "[HIGHLIGHT_SOURCE] This highlight source isn't rendered. May be the exception skips it or the dom structure has changed.";
})(ERROR || (ERROR = {}));
export var EventType;
(function (EventType) {
    EventType["CREATE"] = "selection:create";
    EventType["REMOVE"] = "selection:remove";
    EventType["MODIFY"] = "selection:modify";
    EventType["HOVER"] = "selection:hover";
    EventType["HOVER_OUT"] = "selection:hover-out";
    EventType["CLICK"] = "selection:click";
})(EventType || (EventType = {}));
export var CreateFrom;
(function (CreateFrom) {
    CreateFrom["STORE"] = "from-store";
    CreateFrom["INPUT"] = "from-input";
})(CreateFrom || (CreateFrom = {}));
export var SelectedNodeType;
(function (SelectedNodeType) {
    SelectedNodeType["text"] = "text";
    SelectedNodeType["span"] = "span";
})(SelectedNodeType || (SelectedNodeType = {}));
export var UserInputEvent;
(function (UserInputEvent) {
    UserInputEvent["touchend"] = "touchend";
    UserInputEvent["mouseup"] = "mouseup";
    UserInputEvent["touchstart"] = "touchstart";
    UserInputEvent["click"] = "click";
    UserInputEvent["mouseover"] = "mouseover";
})(UserInputEvent || (UserInputEvent = {}));
//# sourceMappingURL=index.js.map