import { ConnectOptions } from "mongoose"; import { Logger } from "@tsed/logger"; import Mongoose from "mongoose"; export declare class MongooseService { readonly connections: Map; private defaultConnection; logger: Logger; /** * * @returns {Promise<"mongoose".Connection>} */ connect(id: string, url: string, connectionOptions: ConnectOptions, isDefault?: boolean): Promise; /** * * @returns {"mongoose".Connection} */ get(id?: string): Mongoose.Connection | undefined; /** * * @param {string} id * @returns {boolean} */ has(id?: string): boolean; closeConnections(): Promise; }