import { Type } from "@tsed/core"; import mongoose, { Connection } from "mongoose"; export declare function getModelToken(target: Type, options: any): { token: symbol; collectionName: any; }; /** * Create an instance of mongoose.model from a class. * * @param {Type} target Class attached to the schema and model. * @param {"mongoose".Schema} schema Schema that will be attached to the model. * @param name model name * @param collection (optional, induced from model name) * @param overwriteModels * @param connection * @returns {Model} */ export declare function createModel(target: any, schema: mongoose.Schema, name?: string, collection?: string, overwriteModels?: boolean, connection?: Connection): any;