import { Observable } from 'rxjs'; import { Injector } from "@angular/core"; import { Router } from "@angular/router"; import { HttpRequest, HttpInterceptor, HttpHandler, HttpEvent } from '@angular/common/http'; /** * 默认HTTP拦截器,其注册细节见 `app.module.ts` */ export declare class DefaultInterceptor implements HttpInterceptor { private injector; private router; constructor(injector: Injector, router: Router); private get notification(); private goTo; private checkStatus; private handleData; intercept(req: HttpRequest, next: HttpHandler): Observable>; }