import { HttpClient, HttpHeaders, HttpResponse } from '@angular/common/http'; import { Observable } from 'rxjs'; import { LoaderService } from '../loader/loader.service'; import { Configurations } from '../../../Configuration'; export declare enum MessageServiceState { Running = 0, Success = 1, Failed = 2, Error = 3 } export declare class MessageService { private http; private loaderService; config: Configurations; constructor(http: HttpClient, loaderService: LoaderService, config?: Configurations); protected isJson(item?: any): boolean; protected getData(method?: string, params?: any, contentType?: string): any; getDefaultHeaders(contentType?: string): HttpHeaders; protected getHttpOptions(requestData: any, contentType?: string, responseType?: string, ignoreLoader?: boolean, isProgress?: boolean): any; protected onBegin(ignoreLoader?: boolean): void; protected onEnd(ignoreLoader?: boolean): void; text(requestUrl: string, params?: any, contentType?: string, responseType?: string, handleNoError?: boolean): Observable; query(requestUrl: string, params?: any, contentType?: string, responseType?: string, handleNoError?: boolean): Observable; file(requestUrl: string, params?: any, contentType?: string, responseType?: string, handleNoError?: boolean, isProgress?: boolean): Observable; put(requestUrl: string, body?: any, params?: any, contentType?: string, handleNoError?: boolean): Observable; post(requestUrl: string, body?: any, params?: any, contentType?: string, handleNoError?: boolean): Observable; postResponse(requestUrl: string, body?: any, params?: any, contentType?: string, handleNoError?: boolean): Observable>; postResponseBlob(requestUrl: string, body?: any, params?: any, contentType?: string, handleNoError?: boolean): Observable>; patch(requestUrl: string, body?: any, params?: any, contentType?: string, ignoreLoader?: boolean, handleNoError?: boolean): Observable; delete(requestUrl: string, params?: any, contentType?: string, handleNoError?: boolean): Observable; deleteWithBody(requestUrl: string, body?: any, params?: any, contentType?: string): Observable>; /** * Handle Http operation that failed. * Let the app continue. * @param operation - name of the operation that failed * @param result - optional value to return as the observable result */ private handleError; /** Log a HeroService message with the NotificationService */ private log; }