/** * @fileoverview moyan-api 适配器配置 * @description 配置 ApiCall 的请求适配器和事件处理 */ import { AxiosInstance } from 'axios'; import { ApiEntity } from 'moyan-api'; import type { App } from 'vue'; declare const AXIOS: unique symbol; /** API 配置 */ interface ApiConfig { baseURL: string; } /** * moyan-api Axios 适配器 */ export declare class MoAxios { static app: App | null; static [AXIOS]: AxiosInstance; options: Partial; constructor(options?: Partial); /** 获取当前路由 */ static get $route(): import("vue-router").RouteLocationNormalizedLoadedGeneric | undefined; /** * Vue 插件安装 */ static install(app: App): void; /** 获取 Axios 实例 */ get $axios(): AxiosInstance; /** 初始化拦截器 */ initInterceptors(): void; /** 用新 Token 重试所有排队请求 */ retryPendingRequests(newToken: string): void; /** 拒绝所有排队请求 */ rejectPendingRequests(error: Error): void; /** * 执行 API 请求 */ request(apiEntity: ApiEntity): Promise; /** 构建请求头 */ buildHeaders(apiEntity: ApiEntity): Record; /** 获取访问令牌 */ getAccessToken(): string; /** 获取当前选中的应用 ID */ getCurrentAppId(): string; } export {}; //# sourceMappingURL=api.d.ts.map