/** * Typed wrapper for the host CRDT extension (`window.host.ext.crdt`). */ import type { HostEventMap } from "./types.js"; import type { CrdtJoinResult } from "../events.js"; type Unsub = () => void; export declare function join(roomId: string, opts?: { transport?: string; }): Promise; export declare function applyUpdate(roomId: string, dataBase64: string): Promise; export declare function getStateVector(roomId: string): Promise; export declare function getFullState(roomId: string): Promise; export declare function setAwareness(roomId: string, state: Record): Promise; export declare function destroy(roomId: string): Promise; export declare function onRemoteUpdate(cb: (p: HostEventMap["crdtRemoteUpdate"]) => void): Unsub; export declare function onAwareness(cb: (p: HostEventMap["crdtAwareness"]) => void): Unsub; export declare function onPeerChange(cb: (p: HostEventMap["crdtPeerChange"]) => void): Unsub; export {}; //# sourceMappingURL=crdt.d.ts.map