export declare type CRUD = 'create' | 'read' | 'update' | 'remove'; export interface Connector { create: (org: T) => Promise; findOneById: (id: any) => Promise; findOneByIdAndUpdate: (id: any, payload: T) => Promise; findOneByIdAndRemove: (id: any) => Promise; secure: (action: CRUD, obj: { payload: T; source: any; }) => T; getPayload: (obj: any, update?: boolean) => T; getCount: (args: any) => Promise; getList: (args: any, checkExtraCriteria?: any) => Promise; sync: (args: { force?: boolean; }) => Promise; ensureId(obj: T): T; } export declare class RegisterConnectorsBase { mongoose: any; sequelize: any; transaction: { commit: () => Promise; abort: () => Promise; session: { mongoose: any; sequelize: any; }; }; ensureTransaction(options?: any): Promise; } //# sourceMappingURL=connector.d.ts.map