import { HttpClient, HttpContext, HttpHeaders, HttpParams } from "@angular/common/http"; import * as i0 from "@angular/core"; export type FetchOptions = { headers?: HttpHeaders | { [header: string]: string | string[]; }; context?: HttpContext; params?: HttpParams | { [param: string]: string | number | boolean | ReadonlyArray; }; body?: any; observe?: 'body' | 'events' | 'response'; reportProgress?: boolean; responseType?: 'arraybuffer' | 'blob' | 'json' | 'text'; withCredentials?: boolean; }; export declare class Fetch { private http; constructor(http: HttpClient); get(url: string, options?: FetchOptions, returnError?: boolean): Promise; put(url: string, body: any, options?: FetchOptions, returnError?: boolean): Promise; post(url: string, body: any, options?: FetchOptions, returnError?: boolean): Promise; patch(url: string, body: any, options?: FetchOptions, returnError?: boolean): Promise; delete(url: string, options?: FetchOptions, returnError?: boolean): Promise; private request; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }