import Vnmf from '../../index' declare module '../../index' { namespace chooseAddress { 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 { /** Second level of receipt address, country */ cityName: string /** Third stage of receipt goods by national tender */ countyName: string /** Detailed receipt address information */ detailInfo: string /** Cannot initialise Evolution's mail component. */ errMsg: string /** Country number of receiving address */ nationalCode: string /** Postage */ postalCode: string /** First-level address of receipt goods by national tender */ provinceName: string /** The consignee's cell phone number. */ telNumber: string /** Name of consignee */ userName: string } } interface VnmfStatic { /** Retrieving the user's receipt address。Move user to edit the receiving address original interface,Returns the address selected by user after editing has been completed。 * @supported weapp, tt * @example * ```tsx * Vnmf.chooseAddress({ * success: function (res) { * console.log(res.userName) * console.log(res.postalCode) * console.log(res.provinceName) * console.log(res.cityName) * console.log(res.countyName) * console.log(res.detailInfo) * console.log(res.nationalCode) * console.log(res.telNumber) * } * }) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/open-api/address/wx.chooseAddress.html */ chooseAddress(option?: chooseAddress.Option): Promise } }