import { EntityRelationType, ICrudService, IDataProvider, IdType } from '../../common'; import { Logger } from '../../helpers'; import { Filter, Where } from '@loopback/filter'; export interface ICrudServiceOptions { basePath: string; } export declare class BaseCrudService implements ICrudService { protected logger: Logger; protected dataProvider: IDataProvider; protected serviceOptions: ICrudServiceOptions; constructor(opts: { scope: string; dataProvider: IDataProvider; serviceOptions: ICrudServiceOptions; }); find(filter: Filter): Promise<(E & EntityRelationType)[]>; findById(id: IdType, filter: Filter): Promise; findOne(filter: Filter): Promise<(E & EntityRelationType) | null>; count(where: Where): Promise<{ count: number; }>; create(data: Omit): Promise; updateAll(data: Partial, where: Where): Promise<{ count: number; }>; updateById(id: IdType, data: Partial): Promise; replaceById(id: IdType, data: E): Promise; deleteById(id: IdType): Promise<{ id: IdType; }>; }