import { ApiResponse, Entity, Pagination } from '@cervotech/types/api'; import { BehaviorSubject, Observable } from 'rxjs'; import { ApiService } from '../services/api.service'; export declare class CrudService { protected apiService: ApiService; protected endpoint: string; private newEntity; private responseTransformer; selected: BehaviorSubject; list: BehaviorSubject; protected lastQuery?: string; private listLoading; private itemLoading; private pagination; constructor(apiService: ApiService, endpoint: string, newEntity: T, responseTransformer?: (response: any) => ApiResponse); get listLoading$(): Observable; get itemLoading$(): Observable; get selected$(): Observable; get pagination$(): Observable; getMany(query?: string): Observable; getById(id: T['id'], query?: string): Observable; save(item: Partial): Observable; delete(id: T['id']): Observable; getNextItemId(): string | number | null | undefined; clone(): this; protected execute(endPoint: string, method?: 'POST' | 'GET' | 'PATCH' | 'DELETE', body?: Q): Observable

; }