import Vnmf from '../../index' declare module '../../index' { namespace stopPullDownRefresh { 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 startPullDownRefresh { 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 } } interface VnmfStatic { /** Stop refreshing under the current page。 * @supported weapp, h5, rn, tt * @example * ```tsx * onPullDownRefresh: function (){ * Vnmf.stopPullDownRefresh() * } * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/pull-down-refresh/wx.stopPullDownRefresh.html */ stopPullDownRefresh(option?: stopPullDownRefresh.Option): void /** Start pulling and refreshing。Trigger a new animation after calling,The effect is the same as user's hand-drawn update.。 * @supported weapp, h5, rn, tt * @rn No Animation Effect * @example * ```tsx * Vnmf.startPullDownRefresh() * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/pull-down-refresh/wx.startPullDownRefresh.html */ startPullDownRefresh(option?: startPullDownRefresh.Option): Promise } }