import Vnmf from '../../index' declare module '../../index' { namespace getExtConfigSync { interface ExtInfo { /** Third-party platform custom-defined data */ extConfig: VnmfGeneral.IAnyObject } } namespace getExtConfig { interface Option { /** Interface call to the end of echo function(Call successfully、Any failure will be enforced.) */ complete?: (res: VnmfGeneral.CallbackResult) => void /** Interface call failed echo function */ fail?: (res: VnmfGeneral.CallbackResult) => void /** Interface calls a successful echo function */ success?: (result: SuccessCallbackResult) => void } interface SuccessCallbackResult extends VnmfGeneral.CallbackResult { /** Third-party platform custom-defined data */ extConfig: VnmfGeneral.IAnyObject /** Call Results */ errMsg: string } } interface VnmfStatic { /** Vnmf.getExtConfig Synchronized version of the。 * * **Tips** * 1. This interface cannot be accessed for the time being. Vnmf.canIUse Determining compatibility,Developers need to make their own decisions. Vnmf.getExtConfigSync Existence of compatibility * @supported weapp, tt * @example * ```tsx * let extConfig = Vnmf.getExtConfigSync? Vnmf.getExtConfigSync(): {} * * console.log(extConfig) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/ext/wx.getExtConfigSync.html */ getExtConfigSync(): VnmfGeneral.IAnyObject /** Fetch[Third-party platform](https://developers.weixin.qq.com/miniprogram/dev/devtools/ext.html)Custom Data Fields。 * * **Tips** * 1. This interface cannot be accessed for the time being. Vnmf.canIUse Determining compatibility,Developers need to make their own decisions. Vnmf.getExtConfig Existence of compatibility * @supported weapp, tt * @example * ```tsx * if(Vnmf.getExtConfig) { * Vnmf.getExtConfig({ * success: function (res) { * console.log(res.extConfig) * } * }) * } * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/ext/wx.getExtConfig.html */ getExtConfig(option?: getExtConfig.Option): Promise } }