type LWWRegisterState = { timestamp: bigint; value: T; }; /** a CRDT implementation. Uses timestamps to resolve conflicts when updating the value (last write wins) * mostly based on https://jakelazaroff.com/words/an-interactive-intro-to-crdts/ * * @param T the type of the value stored in the register */ export declare class LWWRegister { state: LWWRegisterState; constructor(state: LWWRegisterState); get value(): T; get timestamp(): bigint; set(value: T): void; merge(incoming: LWWRegisterState): LWWRegisterState; } export {};