import { InjectionToken } from '@angular/core'; import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http'; import { Observable } from 'rxjs/Observable'; import { NotificationsService } from '../../notifications/notifications.service'; import { TranslateService } from '../../translate/translate.service'; export declare const DEFAULT_TIMEOUT: InjectionToken; /** * HTTP请求超时 * * @export * @class HttpTimeoutInterceptor * @implements {HttpInterceptor} */ export declare class HttpTimeoutInterceptor implements HttpInterceptor { protected defaultTimeout: number | Date; private notifications; private translate; constructor(defaultTimeout: number | Date, notifications: NotificationsService, translate: TranslateService); intercept(req: HttpRequest, next: HttpHandler): Observable>; }