import Vnmf from '../../index' declare module '../../index' { namespace vibrateShort { interface Option { /** Vibration intensity type,Valid value is:heavy、medium、light */ type: 'heavy' | 'medium' | 'light' /** 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 vibrateLong { 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 { /** It's a short-term vibration of the cell phone.(15 ms)。Just... iPhone `7 / 7 Plus` above and Android Type of aircraft in effect * @h5 Not supported type Parameters * @rn Not supported type Parameters * @supported weapp, h5, rn, tt * @example * ```tsx * Vnmf.vibrateShort(params).then(...) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/device/vibrate/wx.vibrateShort.html */ vibrateShort(option?: vibrateShort.Option): Promise /** It's a long-term vibration of the cell phone.(400ms) * @supported weapp, h5, rn, tt * @example * ```tsx * Vnmf.vibrateLong(params).then(...) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/device/vibrate/wx.vibrateLong.html */ vibrateLong(option?: vibrateLong.Option): Promise } }