import Vnmf from '../../index' declare module '../../index' { namespace setWindowSize { interface Option { /** Window Width,Pixels */ width: string /** Window height,Pixels */ height: 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 onWindowResize { /** A echo function for window size change events */ type Callback = (result: CallbackResult) => void interface CallbackResult { size: Size } interface Size { /** Changing window height,Units px */ windowHeight: number /** Changed Window Width,Units px */ windowWidth: number } } namespace offWindowResize { /** A echo function for window size change events */ type Callback = (res: VnmfGeneral.CallbackResult) => void } interface VnmfStatic { /** Set window size,The interface only applies. PC Platform,Please refer to the guidelines for use of rules. * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/window/wx.setWindowSize.html */ setWindowSize(option: setWindowSize.Option): Promise /** Listen to window size change events * @supported weapp, h5, rn * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/window/wx.onWindowResize.html */ onWindowResize( /** A echo function for window size change events */ callback: onWindowResize.Callback, ): void /** Disable listening window size change event * @supported weapp, h5, rn * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/window/wx.offWindowResize.html */ offWindowResize( /** A echo function for window size change events */ callback: offWindowResize.Callback, ): void } }