import { Tuple } from './codec.js'; import { CollectionName, DBChanges, Entity, KVStoreTransaction, KVStoreOrTransaction, EntityStore, ApplyChangesOptions } from './types.js'; export declare class EntityDataStore implements EntityStore { storagePrefix: string[]; changeListeners: Set<(changes: DBChanges) => void>; constructor(storagePrefix?: string[]); onChange(callback: (changes: DBChanges) => void): () => void; getEntity(storage: KVStoreOrTransaction, collection: string, id: string): Promise; getCollectionStats(storage: KVStoreOrTransaction, knownCollections: CollectionName[] | undefined): Promise>; applyChanges(tx: KVStoreTransaction, changes: DBChanges, options: ApplyChangesOptions): Promise; private broadcastChanges; getChanges(storage: KVStoreOrTransaction): Promise; getEntitiesInCollection(storage: KVStoreOrTransaction, collection: CollectionName): AsyncIterable<[Tuple, Entity]>; }