import type { Collection, Document } from 'mongodb'; import { MongoDatabase } from './connection/database.js'; /** * Type for the MongoDB client that allows accessing collections via dot notation */ export type MongoDBClient = { [collectionName: string]: Collection; }; /** * Creates a MongoDB client that allows direct access to collections using dot notation * Example: db.users.find({}) */ export declare function createMongoDBClient(database: MongoDatabase, connectionName?: string): MongoDBClient; /** * Initialize the MongoDB client singleton with the provided database * This should be called once in your application bootstrap */ export declare function initMongoDBClient(database: MongoDatabase, connectionName?: string): MongoDBClient; /** * Get the MongoDB client singleton * Throws an error if the client hasn't been initialized */ export declare function getMongoDBClient(): MongoDBClient;