import { Collection, MongoClient, ObjectId } from 'mongodb'; import * as valleyed from 'valleyed'; import { PipeInput } from 'valleyed'; import { M as Model, E as Entity, D as DbChange, a as DbChangeConfig, b as DbChangeCallbacks, c as DbConfig, C as Config, T as Table } from '../../../core-tNlIMH9Y.js'; import { Db } from '../../index.js'; import '../../../events/adapters/kafka/index.js'; import '../../../overrides-6Hxg764S.js'; import '../../../events/index.js'; declare const mongoDbConfigPipe: () => valleyed.Pipe<{ uri: string; }, { uri: string; }>; type MongoDbConfig = PipeInput>; declare class MongoDbChange, Entity extends Entity> extends DbChange { #private; constructor(config: MongoDbConfig, change: DbChangeConfig, collection: Collection, callbacks: DbChangeCallbacks, mapper: (model: Model) => Entity); } type IdType = { _id: string; }; declare class MongoDb extends Db<{ _id: string; }> { #private; private mongoConfig; client: MongoClient; constructor(mongoConfig: MongoDbConfig, dbConfig: DbConfig); session(callback: () => Promise): Promise; id(): ObjectId; use, Entity extends Entity>(config: Config): Table; }>; } export { MongoDb, MongoDbChange, type MongoDbConfig, mongoDbConfigPipe };