import { AxiosInstance } from 'axios'; import { AuthenticationManager } from "../security/AuthenticationManager"; export declare abstract class DefaultTokenInterceptor { axios: AxiosInstance; authService: AuthenticationManager; static readonly AUTHORIZATION = "Authorization"; constructor(axios: AxiosInstance, authService: AuthenticationManager); /** * 初始化拦截器 */ private initInterceptors; /** * http握手错误 * @param error 响应回调,根据不同响应进行不同操作 */ private handleError; /** * 处理请求失败事件 * @ param type * @ param msg */ /** * 处理请求失败事件 * @ param type * @ param msg */ abstract showMessage(type: string, msg: string, status: string): void; }