import { Collection } from 'mongodb'; import { KeyValue } from '../../../../client'; declare class MongoDBConnection { private readonly _option; private readonly _uri; private readonly _dBName; private client; constructor(uri: string, config: Record); isConnected(): boolean; connect(): Promise; find(tableName: string, query_?: Record, sort?: { [key: string]: 1 | -1; }, { limit, skip }?: { limit?: number; skip?: number; }): Promise>>; findOne(tableName: string, filter_?: KeyValue): Promise; collection(tableName: string): Collection; dropDatabase(): Promise; insert(collectionName: string, item_: KeyValue & { id?: string; _id?: string; }): Promise; update(collectionName: string, documentId: string, document: Record, dbOperations?: { increment?: Record; }): Promise; deleteOne(collectionName: string, filter: Record): Promise; count(collectionName: string, filter: Record): Promise; deleteMany(collectionName: string, filter: Record): Promise; private getDB; } export { MongoDBConnection };