import { Collection, CreateCollectionOptions, CollectionOptions, Document } from 'mongodb'; import { DbChangeData, IChangePublisher, PublishEventOptions, DbChangeType } from '../types'; declare class OutboxService implements IChangePublisher { private getOrCreateCollection; private connectionPromise; private connectionPromiseResolve?; private collectionsMap; constructor(getOrCreateCollection: (name: string, opt: { collectionCreateOptions: CreateCollectionOptions; collectionOptions: CollectionOptions; }) => Promise | null>, waitForConnection: () => Promise); private waitForConnection; private getCollection; private createEvent; private createManyEvents; publishDbChange(collectionName: string, changeType: DbChangeType, eventData: DbChangeData, options?: PublishEventOptions): Promise; publishDbChanges(collectionName: string, changeType: DbChangeType, eventsData: DbChangeData[], options?: PublishEventOptions): Promise; } export default OutboxService; //# sourceMappingURL=outbox.d.ts.map