UNPKG

@databutton/liveblocks-client

Version:

**At [Liveblocks](https://liveblocks.io), we’re building tools to help companies create world-class collaborative products that attract, engage and retain users.** This repository is a set of open-source packages for building performant and reliable multi

10 lines (9 loc) 754 B
import { AbstractCrdt, Doc } from "./AbstractCrdt"; import { SerializedCrdtWithId, Op, SerializedCrdt } from "./live"; export declare function remove<T>(array: T[], item: T): void; export declare function isSameNodeOrChildOf(node: AbstractCrdt, parent: AbstractCrdt): boolean; export declare function deserialize(entry: SerializedCrdtWithId, parentToChildren: Map<string, SerializedCrdtWithId[]>, doc: Doc): AbstractCrdt; export declare function isCrdt(obj: any): obj is AbstractCrdt; export declare function selfOrRegisterValue(obj: AbstractCrdt): any; export declare function selfOrRegister(obj: any): AbstractCrdt; export declare function getTreesDiffOperations(currentItems: Map<string, SerializedCrdt>, newItems: Map<string, SerializedCrdt>): Op[];