import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http'; import { Observable } from 'rxjs'; import { TranslateService } from '@ngx-translate/core'; import { NaHttpService } from '../na-http.service'; import { NaMessageService } from '@ng-arthur/core'; import { NaHttpInterceptorPreparableHandler } from './na-http-interceptor-preparable'; /** * HTTP请求拦截处理 * * @export */ export declare class NaDefaultHttpClientInterceptor implements HttpInterceptor { protected translate: TranslateService; protected naHttpService: NaHttpService; private naMessageService; private preparableHandler; private httpConfig; constructor(translate: TranslateService, // 不能使用NaTranslateService,会产生循环引用 naHttpService: NaHttpService, naMessageService: NaMessageService, preparableHandler: NaHttpInterceptorPreparableHandler); intercept(req: HttpRequest, next: HttpHandler): Observable>; interceptAfter(req: HttpRequest, resq: Observable>): Observable>; private errorObj; } /** * Safely assert whether the given value is an ArrayBuffer. * * In some execution environments ArrayBuffer is not defined. */ export declare function isArrayBuffer(value: any): value is ArrayBuffer; /** * Safely assert whether the given value is a Blob. * * In some execution environments Blob is not defined. */ export declare function isBlob(value: any): value is Blob; /** * Safely assert whether the given value is a FormData instance. * * In some execution environments FormData is not defined. */ export declare function isFormData(value: any): value is FormData;