import { Type, Injector } from '@angular/core'; import { Http, RequestOptionsArgs, Response, Request } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import { IHttpInterceptorMatcher } from './http-interceptor-matcher.interface'; export interface IHttpInterceptorConfig { interceptor: Type; paths: string[]; } export declare class HttpInterceptorService { private _http; private _injector; private _httpInterceptorMatcher; private _requestInterceptors; constructor(_http: Http, _injector: Injector, _httpInterceptorMatcher: IHttpInterceptorMatcher, requestInterceptorConfigs: IHttpInterceptorConfig[]); delete(url: string, requestOptions?: RequestOptionsArgs): Observable; get(url: string, requestOptions?: RequestOptionsArgs): Observable; head(url: string, requestOptions?: RequestOptionsArgs): Observable; patch(url: string, data: any, requestOptions?: RequestOptionsArgs): Observable; post(url: string, data: any, requestOptions?: RequestOptionsArgs): Observable; put(url: string, data: any, requestOptions?: RequestOptionsArgs): Observable; request(url: string | Request, requestOptions?: RequestOptionsArgs): Observable; private _setupRequest(url, requestOptions, interceptors); private _requestResolve(requestOptions, interceptors); private _responseResolve(response, interceptors); private _responseErrorResolve(error, interceptors); }