import { EAuthEnv } from '../utils/const'; export type MessageType = "warn" | "info" | "error" | "success"; interface IAuthConfig { /** * 提示方法 * @param message 提示内容 * @param type 提示类型 * @returns */ toast: (message: string, type: MessageType) => void; /** * 用主系统的登陆凭证换取子系统 access_token 的方法,每个子系统的实现可能不一样,这里抽离出来 * @returns 子系统登陆凭证,jwt token */ getAccessToken: (mainSysAk: string) => Promise; /** * 是否是world3平台接入 */ isWorld3?: boolean; env?: EAuthEnv; /** * 请求的code map */ errorCodeMap?: Record; tonconnectConfig?: { manifestUrl?: string; twaReturnUrl?: string; }; turnstileSiteKey: string; } export declare let authConfig: IAuthConfig; /** * 初始化 auth config * @param params 用户系统相关参数 */ export declare function initAuthConfig(params: IAuthConfig): void; export {};