import { Type, Injector } from '@angular/core'; import { HttpClient, HttpHandler, HttpRequest, HttpHeaders, HttpParams } from '@angular/common/http'; import { Observable } from 'rxjs'; import { IBgxHttpInterceptorMatcher } from './http-interceptor-matcher.interface'; import { IBgxHttpInterceptorMapping } from './http-interceptor-mapping.interface'; export interface IBgxHttpInterceptorConfig { interceptor: Type; paths: string[]; } export declare class BgxInterceptorBehaviorService { private _injector; private _httpInterceptorMatcher; private _requestInterceptors; readonly requestInterceptors: IBgxHttpInterceptorMapping[]; readonly httpInterceptorMatcher: IBgxHttpInterceptorMatcher; constructor(_injector: Injector, _httpInterceptorMatcher: IBgxHttpInterceptorMatcher, requestInterceptorConfigs: IBgxHttpInterceptorConfig[]); } export declare class BgxHttpService extends HttpClient { private _handler; private _interceptorBehavior; constructor(_handler: HttpHandler, _interceptorBehavior: BgxInterceptorBehaviorService); request(first: string | HttpRequest, url?: string, options?: { body?: any; headers?: HttpHeaders | { [header: string]: string | string[]; }; observe?: 'body' | 'events' | 'response'; params?: HttpParams | { [param: string]: string | string[]; }; reportProgress?: boolean; responseType?: 'arraybuffer' | 'blob' | 'json' | 'text'; withCredentials?: boolean; }): Observable; private _setupRequest; private _requestResolve; private _handleResponseResolve; }