import { ACLCRUD } from '../acl/secureAny'; import { CRUD } from './../connector'; export declare type ACLCheck = (context: any, obj: { source?: any; payload?: any; }) => object; export declare type SecurityContext = { [key: string]: any; acls: ACLCRUD<(context: SecurityContext, obj: { source?: any; payload?: object; }) => object | Promise>; group: string; }; export default class ConnectorsApiBase { name: string; protected securityContext: SecurityContext; schema: any; model: any; connectors: Connectors; loaders: any; updaters: any; loaderKeys: any; storeToCache: any; constructor({ name, connectors, securityContext, }: { name: string; connectors: Connectors; securityContext: SecurityContext; }); toJSON(obj: any): Payload; secure(action: CRUD, obj: { source?: any; payload?: Payload; }): Payload; protected _defaultAccess(context: ConnectorsApiBase, obj: { source?: any; payload?: Payload; }): object; protected _defaultCreate(context: ConnectorsApiBase, obj: { source?: any; payload?: Payload; }): object; protected _getList(args: any, checkExtraCriteria?: any): Promise; getList(args: any, checkExtraCriteria?: any): Promise; readSecure(source?: Payload): Promise; createSecure(payload?: Payload): Promise; protected _create(payload: Payload): Promise; updateSecure(source?: any, payload?: Payload): Promise; protected _update(source: any, payload: Payload): Promise; removeSecure(source?: any): Promise; protected _remove(record: any): Promise; getPayload(args: any): Payload; protected initSchema(name: any, schema: any): void; updateLoaders(name: string): (items: any) => any; getCount(args: any): Promise; ensureId(obj: Payload): Payload; findOneById(id: any): Promise; sync({ force }: { force?: boolean; }): Promise; } //# sourceMappingURL=api.d.ts.map