import mongoose from "mongoose"; import { ServiceType } from "../../"; export default abstract class ServiceBase implements ServiceType { private _entity; private keyField; constructor(_entity: mongoose.Model, keyField?: string); GetCount(): Promise; Get(): Promise; GetFirst(params: Partial): Promise; GetByQuery(params?: any, fields?: string, options?: any): Promise; GetById(_id: string): Promise; Create(payload: Partial, checkKeyField?: boolean): Promise; Delete(_id: string): Promise; Update(_id: string, payload: Partial): Promise; GetByKeyword(value: any): Promise; }