import Vnmf from '../../index' declare module '../../index' { namespace showNavigationBarLoading { 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 setNavigationBarTitle { interface Option { /** Page Title */ title: 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 setNavigationBarColor { interface Option { /** Background Colour Value,The valid value is a hexadecimal colour */ backgroundColor: string /** Foreground colour values,Including buttons、Title、Colour of the status bar,Support only #ffffff and #000000 */ frontColor: string /** Animation Effects */ animation?: AnimationOption /** 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 } /** Animation Effects */ interface AnimationOption { /** Animation Change Time,Units ms */ duration?: number /** Animation Changes * * Optional value: * - 'linear': Animated at the same speed from beginning to end.; * - 'easeIn': Animation begins at low speed.; * - 'easeOut': Animation ends at low speed.; * - 'easeInOut': Animation begins and ends at low speed.; */ timingFunc?: 'linear' | 'easeIn' | 'easeOut' | 'easeInOut' } } namespace hideNavigationBarLoading { 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 hideHomeButton { 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 { /** Show Navigator Add Animation on the current page * @supported weapp, rn, tt * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/navigation-bar/wx.showNavigationBarLoading.html */ showNavigationBarLoading(option?: showNavigationBarLoading.Option): void /** Dynamic setting the title of current page * @supported weapp, h5, rn, tt * @example * ```tsx * Vnmf.setNavigationBarTitle({ * title: 'Current Page' * }) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/navigation-bar/wx.setNavigationBarTitle.html */ setNavigationBarTitle(option: setNavigationBarTitle.Option): Promise /** Set Page Navigator Colors * @supported weapp, h5, rn, tt * @h5 Not supported animation Parameters * @rn Not supported animation Parameters * @example * ```tsx * Vnmf.setNavigationBarColor({ * frontColor: '#ffffff', * backgroundColor: '#ff0000', * animation: { * duration: 400, * timingFunc: 'easeIn' * } * }) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/navigation-bar/wx.setNavigationBarColor.html */ setNavigationBarColor(option: setNavigationBarColor.Option): Promise /** Hide Navigator Add Animation on Current Page * @supported weapp, rn, tt * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/navigation-bar/wx.hideNavigationBarLoading.html */ hideNavigationBarLoading(option?: hideNavigationBarLoading.Option): void /** Hide Return to First Page Button。Can not open message7.0.7Version From,When the bottom of applet opened by user is not first page,Default Presentation“Return to Home Page”Button,Developer can use the page onShow Call in hideHomeButton Hide。 * @supported weapp, tt * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/navigation-bar/wx.hideHomeButton.html */ hideHomeButton(option?: hideHomeButton.Option): Promise } }