import { ToastrService } from 'ngx-toastr'; import { CrudService } from '../components/crud/crud.service'; import { BlockerManager } from '../helpers/navigate'; import { IDataService } from './data.interface'; import { ConfigService } from '../services/config.service'; import { IErrorResult } from '../services/error-handler'; import { ResponseData } from '../helpers/response'; export interface IServiceBase extends IDataService { busy: boolean; configService: ConfigService; toastr: ToastrService; crudService: CrudService; blocker: BlockerManager | undefined; skipBlockerOnce: boolean; getRequest(controllerWithAction: string, params?: any, callback?: (response: Partial>) => void): void; postRequest(controllerWithAction: string, body?: any, callback?: (response: Partial>) => void | any): void; putRequest(controllerWithAction: string, body?: any, callback?: (response: Partial>) => void | any): void; patchRequest(controllerWithAction: string, body?: any, callback?: (response: Partial>) => void | any): void; deleteRequest(controllerWithAction: string, body?: any, callback?: (response: Partial>) => void | any): void; getMethod(controllerMethod: string, params?: any, callback?: (response: Partial>) => void): void; postMethod(controllerMethod: string, body?: any, callback?: (response: Partial>) => void | any): void; putMethod(controllerMethod: string, body?: any, callback?: (response: Partial>) => void | any): void; patchMethod(controllerMethod: string, body?: any, callback?: (response: Partial>) => void | any): void; deleteMethod(controllerMethod: string, body?: any, callback?: (response: Partial>) => void | any): void; error(error: IErrorResult): void; request(): void; response(method: string): void; hasSubscriptions(): boolean; subscribe(): void; unsubscribe(): void; validateSubscriptions(): void; }