import { HttpClient, HttpResponse } from '@angular/common/http'; import { IRdfServiceResponseError, Method } from "./response-interfaces"; import { Observable } from "rxjs"; import * as i0 from "@angular/core"; export declare class ApiService { private http; constructor(http: HttpClient); get(url: string, headers: object, params?: object): Observable; getString(url: string, headers: object, params?: object): Observable>; post(url: string, headers: object, body: string, params?: object): Observable; put(url: string, headers: object, body: any, params?: object): Observable; patch(url: string, headers: object, body: string, params?: object): Observable; delete(url: string, headers: object, body: string, params?: object): Observable; getAsString(url: string, headers?: object, params?: object): Observable; /** * Конвертирует http error в структуру IRdfServiceResponseError * @param method метод - GET PUT POST DELETE * @param error ошибка из http * @param url url запроса * @param headerRequest header запроса * @param body тело запроса. Применимо для PUT POST */ mapHttpErrorToRdfError(method: Method, error: any, url?: string, headerRequest?: object, body?: object): IRdfServiceResponseError; saveCsv(fileName: string, body: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }