import * as packageInfo from '../package.json' ; export const SDK_VERISON = packageInfo . version ; export interface AppSecret { appAccessKeyId : string ; appAccessKey : string ; } export interface Config { env ? : string ; token ? : string ; timeout ? : number ; proxy ? : string ; persistence ? : string ; appSecret ? : AppSecret ; appSign ? : string ; } export type KV < T > = { [ key ] : T ; } ; interface MetaData { url : string ; token : string ; authorization : string ; fileId : string ; cosFileId : string ; } export interface MetaDataRes { data : MetaData ; requestId : string ; } export type LOGIN_TYPE = 'WECHAT-OPEN' | 'WECHAT-PUBLIC' | 'ANONYMOUS' | 'CUSTOM' ; export const ACCESS_TOKEN = 'access_token' ; export const ACCESS_TOKEN_Expire = 'access_token_expire' ; export const REFRESH_TOKEN = 'refresh_token' ; export const ANONYMOUS_UUID = 'anonymous_uuid' ; export const LOGIN_TYPE_KEY = 'login_type' ; export const USER_INFO_KEY = 'user_info' ; export const protocol = typeof location !== 'undefined' && location . protocol === 'http:' ? 'http:' : 'https:' ; export const BASE_URL = typeof process !== 'undefined' && process . env . NODE_ENV === 'e2e' && process . env . END_POINT === 'pre' ? '//tcb-pre.tencentcloudapi.com/web' : '//tcb-api.tencentcloudapi.com/web' ;