import { Injector } from "@angular/core"; import { HttpHeaders, HttpParams } from "@angular/common/http"; import { CacheExpireMode, ExpressRequest, HttpClientRequestOptions, HttpRequestHeaders, HttpRequestOptions, HttpRequestQuery, IConfigService, IHttpService, IIssueContext, ILanguageService, IPaginationData, IToasterService, ProgressListener, UploadData } from "../common-types"; import { BaseHttpClient } from "./base-http.client"; import { UniversalService } from "./universal.service"; import { StorageService } from "./storage.service"; import { Observable } from "rxjs"; import { CacheService } from "./cache.service"; import { RequestBag } from "./request-bag"; import * as i0 from "@angular/core"; export declare class BaseHttpService implements IHttpService { readonly injector: Injector; readonly client: BaseHttpClient; readonly storage: StorageService; readonly caches: CacheService; readonly language: ILanguageService; readonly toaster: IToasterService; readonly configs: IConfigService; readonly request: ExpressRequest; get name(): string; get requestHeaders(): Readonly; get requestParams(): Readonly; protected get withCredentials(): boolean; get universal(): UniversalService; protected static failedRequests: Array<() => void>; protected readonly bag: RequestBag; protected static retryFailedRequests(): void; constructor(injector: Injector, client: BaseHttpClient, storage: StorageService, caches: CacheService, language: ILanguageService, toaster: IToasterService, configs: IConfigService, request?: ExpressRequest); protected initService(): void; setHeader(name: string, value?: string | string[]): void; setParam(name: string, value?: any): void; cached(mode: CacheExpireMode): Observable; url(url: string): string; createUrl(url: string, params: HttpRequestQuery): string; makeListParams(page: number, itemsPerPage: number, orderBy?: string, orderDescending?: boolean, filter?: string): HttpRequestQuery; protected getPromise(url: string, options?: HttpRequestOptions, body?: any): Promise; protected deletePromise(url: string, options?: HttpRequestOptions, body?: any): Promise; protected postPromise(url: string, body?: any, options?: HttpRequestOptions): Promise; protected putPromise(url: string, body?: any, options?: HttpRequestOptions): Promise; protected patchPromise(url: string, body?: any, options?: HttpRequestOptions): Promise; protected uploadPromise(url: string, body: UploadData, listener?: ProgressListener, options?: HttpRequestOptions): Promise; protected listPromise(url: string, options?: HttpClientRequestOptions): Promise; protected handleUnauthorizedError(absoluteUrl: string, options: HttpClientRequestOptions, reject: () => void): void; protected toastWarning(message: string, issueContext: IIssueContext, reason: any, options: HttpClientRequestOptions): void; protected toastError(message: string, issueContext: IIssueContext, reason: any, options: HttpClientRequestOptions): void; protected makeCacheKey(url: string, read: string, options: HttpRequestOptions): string; protected toPromise(url: string, requestOptions: HttpRequestOptions, listener?: ProgressListener): Promise; protected getUserTokenTime(): number; protected pushFailedRequest(url: string, options: HttpClientRequestOptions, req: () => void): boolean; protected checkHeaders(headers: any): boolean; protected makeOptions(options?: HttpRequestOptions, method?: string, body?: any, cache?: Observable): HttpClientRequestOptions; protected makeHeaders(options: HttpClientRequestOptions): HttpHeaders; protected makeParams(options: HttpClientRequestOptions): HttpParams; protected parseResponse(response: any, url: string, options: HttpClientRequestOptions, read: string): any; protected parseUrl(url: string): string; protected absoluteUrl(url: string, options: HttpClientRequestOptions): string; protected expressRequestUrl(url: string): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }