import mongoose, { ObjectId, Model as SchemaModel } from 'mongoose'; import { NextFunction } from 'express'; export declare function exists(Model: SchemaModel, query: {}, next: NextFunction, throwErr: boolean, message?: string): Promise, "_id"> | null>; declare function deleteOne(Model: SchemaModel, id: string | ObjectId, next: NextFunction, message?: string): Promise>; declare function deleteMany(Model: SchemaModel, ids: mongoose.Types.ObjectId[]): Promise; declare function updateOne(Model: SchemaModel, id: string | ObjectId, dto: {}, next: NextFunction, message?: string): Promise>; declare function updateSingle(Model: SchemaModel, queryObj: {}, dto: {}, next: NextFunction, message?: string): Promise>; declare function updateMany(Model: SchemaModel, queryObj: {}, dto: {}, next: NextFunction, message?: string): Promise; declare function createOne(Model: SchemaModel, dto: {}): Promise>; declare function createMany(Model: SchemaModel, dto: Array<{}>): Promise[]>; declare function getOne(Model: SchemaModel, id: string | ObjectId, next: NextFunction, popOptions?: any, select?: {} | string, message?: string): Promise; declare function single(Model: SchemaModel, queryObj: {}, next: NextFunction, message?: string, select?: {} | string, popOptions?: any): Promise; declare function deleteSingle(Model: SchemaModel, queryObj: {}, next: NextFunction, message?: string): Promise<{ doc: import("mongodb").DeleteResult; total: number; }>; declare function getAll(Model: SchemaModel, query?: any, filter?: {} | string, select?: {} | string): Promise<{ doc: mongoose.HydratedDocument[]; total: number; }>; declare const _default: { deleteOne: typeof deleteOne; deleteMany: typeof deleteMany; deleteSingle: typeof deleteSingle; updateSingle: typeof updateSingle; updateOne: typeof updateOne; updateMany: typeof updateMany; createOne: typeof createOne; createMany: typeof createMany; getOne: typeof getOne; getAll: typeof getAll; single: typeof single; count: (Model: mongoose.Model, query?: {} | undefined) => Promise; }; export default _default;