import * as crypto from './crypto'; import * as utils from './utils'; import * as exception from './exception'; import * as authority from './authority'; import * as constants from './constants'; import type { TKeyValue } from './core'; export { request, get, post, put, del, patch, head, options, configRefreshToken, commonRequestInterceptor, commonResponseInterceptor, commonResponseWithRefreshTokenInterceptor, addRequestInterceptor, addResponseInterceptor, ejectRequestInterceptor, ejectResponseInterceptor, configGlobalHeader, } from './request'; export { default as store } from './store'; export { crypto, utils, exception as Exception, authority as tokener, constants }; export type { TWithFalse, TKeyValue } from './core'; export { CryptoType } from './core'; interface IWetrialCoreProps { /** * crypto中RSA加解密使用的Key */ RSAKey?: string; /** * crypto中base64使用的map */ Base64MAP?: string; /** * 动态追加的路由前缀 */ routeProfix?: string; /** * 自定义全局的ajax请求头 */ getGlobalHeader?: () => TKeyValue; /** * 配置置换token的请求 */ configRefreshToken?: () => Promise; } /** * 初始化wetrial core库的配置 * @param props */ export declare function initWetrialCore(props: IWetrialCoreProps): void;