import { YMap } from 'yjs/dist/src/types/YMap'; import { CacheAdapter } from "../adapters/cache.adapter"; export declare class SyncChangesController { private readonly projectId; private readonly treeName; private readonly cacheAdapter; private readonly yMap; private readonly destroy; constructor(projectId: string, treeName: string, cacheAdapter: CacheAdapter, yMap: () => YMap, destroy: () => void); get size(): number; get(key: string): any; set(value: { id: string; [key: string]: any; }): any; delete(key: string): void; has(key: string): boolean; toJSON(): { [key: string]: any; }; entries(): IterableIterator; values(): IterableIterator; keys(): IterableIterator; observe(listener: (response: { name: "create" | "update" | "delete"; snapshot: any; }) => void): { unobserve: () => void; }; stop(): void; close(): void; unobserve(fn: (...args: any) => void): void; }