import Vnmf from '../../index' declare module '../../index' { // Periodic update namespace setBackgroundFetchToken { interface Option { /** Custom Login */ token: string /** 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?: (res: VnmfGeneral.CallbackResult) => void } } namespace onBackgroundFetchData { 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?: (res: VnmfGeneral.CallbackResult) => void } } namespace getBackgroundFetchToken { 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?: (res: VnmfGeneral.CallbackResult) => void } } namespace getBackgroundFetchData { interface Option { /** Value As periodic */ fetchType: string /** 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?: (res: VnmfGeneral.CallbackResult) => void } } interface VnmfStatic { /** Set Custom Login,Bring data on cyclical pull,Facilitating third-party server validation of the legitimacy request * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/storage/background-fetch/wx.setBackgroundFetchToken.html */ setBackgroundFetchToken(option: setBackgroundFetchToken.Option): void /** Copy that. backgroundFetch Backbacks on Data * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/storage/background-fetch/wx.onBackgroundFetchData.html */ onBackgroundFetchData(option?: onBackgroundFetchData.Option): void /** Retrieve the custom login of setup。If nothing,returns fail。 * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/storage/background-fetch/wx.getBackgroundFetchToken.html */ getBackgroundFetchToken(option?: getBackgroundFetchToken.Option): void /** Pull backgroundFetch Client Cache Data * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/storage/background-fetch/wx.getBackgroundFetchData.html */ getBackgroundFetchData(option: getBackgroundFetchData.Option): void } }