import { IConnectionOptions } from "./Utils"; import { Observable, BehaviorSubject } from "rxjs"; import { MongoClient, Db } from "mongodb"; export declare class MongoConnection { private options; protected _OnConnectedSubject: BehaviorSubject; protected _db: Db; protected _mongoClient: MongoClient; constructor(options: IConnectionOptions); OnConnect(): Observable; protected _connected(): Promise; connect(options?: IConnectionOptions): Promise; close(forceClose?: boolean): Promise; }