import type { IEventData, PGMBEventBatcherOpts } from './types.ts'; export declare class PGMBEventBatcher { #private; constructor({ shouldLog, publish, flushIntervalMs, maxBatchSize, logger }: PGMBEventBatcherOpts); end(): Promise; /** * Enqueue a message to be published, will be flushed to the database * when flush() is called (either manually or via interval) */ enqueue(msg: T): void; flush(): Promise; }