import { IMongoConnectionConfig } from "./interfaces"; /** * Function to create connection and return it. It fetches the configs from the global config which are set during initialization of application * @stable * @async * @param mongoInstance : since single service can have multiple mongo db connections * @param instanceKey */ export declare const createConnection: (mongoInstance?: string, instanceKey?: string) => Promise; /** * Function to be consumed by the internally for building the connection, please use this if you want to pass custom config only * @internal * @stable * @async * @param config * @param secretName */ export declare const createCustomConnection: (config: IMongoConnectionConfig) => Promise; /** * Function to disconnect from mongodb * @stable * @async * @param connection */ export declare const destroyConnection: (connection: any) => Promise;