declare const wx ; declare const my ; declare const tt ; declare const dd ; declare const qq ; declare const swan ; /**
 * 小程序平台 SDK 接口
 */ interface SDK { request : Function ; httpRequest ? : Function ; getSystemInfoSync : Function ; onError ? : Function ; onUnhandledRejection ? : Function ; onPageNotFound ? : Function ; onMemoryWarning ? : Function ; getLaunchOptionsSync ? : Function ; } /**
 * 小程序平台 接口
 */ type AppName = "wechat" | "alipay" | "bytedance" | "dingtalk" | "qq" | "swan" | "unknown" ; /**
 * 获取跨平台的 SDK
 */ const getSDK = ( ) => { let currentSdk = { request : ( ) => { } , httpRequest : ( ) => { } , getSystemInfoSync : ( ) => { } , } ; if ( typeof wx === "object" ) { currentSdk = wx ; } else if ( typeof my === "object" ) { currentSdk = my ; } else if ( typeof tt === "object" ) { currentSdk = tt ; } else if ( typeof dd === "object" ) { currentSdk = dd ; } else if ( typeof qq === "object" ) { currentSdk = qq ; } else if ( typeof swan === "object" ) { currentSdk = swan ; } else { throw new Error ( "sentry-miniapp 暂不支持此平台" ) ; } return currentSdk ; } ; /**
 * 获取平台名称
 */ const getAppName = ( ) => { let currentAppName = "unknown" ; if ( typeof wx === "object" ) { currentAppName = "wechat" ; } else if ( typeof my === "object" ) { currentAppName = "alipay" ; } else if ( typeof tt === "object" ) { currentAppName = "bytedance" ; } else if ( typeof dd === "object" ) { currentAppName = "dingtalk" ; } else if ( typeof qq === "object" ) { currentAppName = "qq" ; } else if ( typeof swan === "object" ) { currentAppName = "swan" ; } return currentAppName ; } ; const sdk = getSDK ( ) ; const appName = getAppName ( ) ; export { sdk , appName } ;