UNPKG

mute-structs

Version:

NodeJS module providing an implementation of the LogootSplit CRDT algorithm

12 lines (11 loc) 397 B
import { IdentifierInterval } from "./identifierinterval"; export declare const enum IdentifierIteratorResults { B1_AFTER_B2 = 0, B1_BEFORE_B2 = 1, B1_INSIDE_B2 = 2, B2_INSIDE_B1 = 3, B1_CONCAT_B2 = 4, B2_CONCAT_B1 = 5, B1_EQUALS_B2 = 6 } export declare function compareBase(idInterval1: IdentifierInterval, idInterval2: IdentifierInterval): IdentifierIteratorResults;