import type { BatchedEvent } from './types'; export declare const replayBatchedEvents: (mapping: unknown, events: BatchedEvent[]) => void; export declare class EventAccumulator { private readonly flush; private keyPath; static forEntity(flush: (events: BatchedEvent[]) => void): EventAccumulator; constructor(flush: (events: BatchedEvent[]) => void, keyPath: string[]); refineByKey(key: string): EventAccumulator; batch(fn: (acc: EventAccumulator) => void): void; capture(mapping: T): T; private push; }