import Vnmf from '../../index' declare module '../../index' { namespace getAccountInfoSync { /** Could not close temporary folder: %s */ interface AccountInfo { /** Could not close temporary folder: %s */ miniProgram: MiniProgram /** Plugin Account Information(Include this item only when called in plugins) */ plugin: Plugin } /** Could not close temporary folder: %s */ interface MiniProgram { /** Applet appId */ appId: string /** * Applet Version * @since 2.10.0 */ envVersion: 'develop' | 'trial' | 'release' /** * Online Applet Version Number * @since 2.10.2 */ version: string } /** Plugin Account Information(Include this item only when called in plugins) */ interface Plugin { /** Plugins appId */ appId: string /** Plugin Version Number */ version: string } } interface VnmfStatic { /** Could not close temporary folder: %s * @supported weapp * @example * ```tsx * const accountInfo = Vnmf.getAccountInfoSync(); * * console.log(accountInfo.miniProgram.appId) // Applet appId * console.log(accountInfo.plugin.appId) // Plugins appId * console.log(accountInfo.plugin.version) // Plugin Version Number, 'a.b.c' That's the way it is. * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/open-api/account-info/wx.getAccountInfoSync.html */ getAccountInfoSync(): getAccountInfoSync.AccountInfo } }