import { Change, CollectionChanges, CollectionName, DBChanges, EntityId, KVStoreOrTransaction, KVStoreTransaction, WriteBuffer } from './types.js'; export declare class DurableWriteBuffer implements WriteBuffer { private readonly storagePrefix; constructor(storagePrefix?: string[]); clear(tx: KVStoreTransaction): Promise; write(tx: KVStoreTransaction, changes: DBChanges): Promise; getChanges(storage: KVStoreOrTransaction): Promise; getChangesForCollection(storage: KVStoreOrTransaction, collectionName: CollectionName): Promise; getChangesForEntity(storage: KVStoreOrTransaction, collectionName: CollectionName, id: EntityId): Promise<{ update: Change; delete: boolean; } | undefined>; isEmpty(storage: KVStoreOrTransaction): Promise; clearChangesForEntity(tx: KVStoreTransaction, collection: CollectionName, id: EntityId): Promise; }