import { Clock } from './types'; import A from 'automerge'; /** * A vector clock is a map, where the keys are the actorIds of all actors that have been active on a * particular document, and the values are the most recent sequence number for that actor. The * sequence number starts at 1 and increments every time an actor makes a change. */ export declare const EMPTY_CLOCK: Clock; /** Merges the clocks, keeping the maximum sequence number for each node */ export declare function mergeClocks(oldClock: Clock, newClock: Clock): Clock; /** Returns true if there are any actors in clock1 that have more recent updates than in clock2 */ export declare const isMoreRecent: (clock1: Clock, clock2: Clock | undefined) => boolean; export declare const getMissingChanges: (ourDoc: A.Doc, theirClock: Clock) => A.Change[]; export declare const getClock: (doc: A.Doc) => Clock;