mute-structs
Version:
NodeJS module providing an implementation of the LogootSplit CRDT algorithm
17 lines (16 loc) • 572 B
TypeScript
import { Epoch } from "../epoch/epoch";
import { EpochId } from "../epoch/epochid";
import { RenamingMap } from "./renamingmap";
export interface RenamingMapStoreJSON {
readonly renamingMaps: Array<[string, RenamingMap]>;
}
export declare class RenamingMapStore {
static fromPlain(o: unknown): RenamingMapStore | null;
private renamingMaps;
constructor();
add(epoch: Epoch, renamingMap: RenamingMap): void;
getRenamingMap(epochId: EpochId): RenamingMap | undefined;
toJSON(): RenamingMapStoreJSON;
purge(): void;
private internalAdd;
}