UNPKG

mute-structs

Version:

NodeJS module providing an implementation of the LogootSplit CRDT algorithm

12 lines (11 loc) 427 B
import { IdentifierInterval } from "./identifierinterval"; export declare class LogootSBlock { static fromPlain(o: unknown): LogootSBlock | null; idInterval: IdentifierInterval; nbElement: number; constructor(idInterval: IdentifierInterval, nbElt: number); isMine(replicaNumber: number): boolean; addBlock(pos: number, length: number): void; delBlock(nbElt: number): void; toString(): string; }