import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/do'; import { LoadingService } from '../../loading/loading.service'; /** * HTTP请求访问耗时拦截器 * * @export * @class TimingInterceptor * @implements {HttpInterceptor} */ export declare class TimingInterceptor implements HttpInterceptor { private loadingService; constructor(loadingService: LoadingService); intercept(req: HttpRequest, next: HttpHandler): Observable>; }