import { HttpClient, HttpEvent } from '@angular/common/http'; import { Message } from '../../../../common/entities/Message'; import { LoadingBarService } from '@ngx-loading-bar/core'; import { ErrorDTO } from '../../../../common/entities/Error'; import { VersionService } from '../version.service'; import { Observable } from 'rxjs'; export declare class NetworkService { private http; private loadingBarService; private versionService; readonly apiBaseUrl: string; private globalErrorHandlers; constructor(http: HttpClient, loadingBarService: LoadingBarService, versionService: VersionService); static buildUrl(url: string, data?: { [key: string]: unknown; }): string; getXML(url: string): Promise; getText(url: string): Promise; postJson(url: string, data?: {}): Promise; postFormData(url: string, data: FormData): Observable>>; putJson(url: string, data?: {}): Promise; getJson(url: string, query?: { [key: string]: any; }): Promise; deleteJson(url: string): Promise; addGlobalErrorHandler(fn: (error: ErrorDTO) => boolean): void; private callJson; private handleError; }