import Vnmf from '../../index' declare module '../../index' { namespace showTabBarRedDot { interface Option { /** tabBar Which one?,From the left. */ index: number /** 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 showTabBar { interface Option { /** Whether animated effects are required */ animation?: boolean /** 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 setTabBarStyle { interface Option { /** tab Background Colour,HexColor */ backgroundColor?: string /** tabBarColour of the upper border, Support only black/white */ borderStyle?: string /** tab The default colour for text on top,HexColor */ color?: 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 /** tab Colour for selection of text on top,HexColor */ selectedColor?: string /** Interface calls a successful echo function */ success?: (res: VnmfGeneral.CallbackResult) => void } } namespace setTabBarItem { interface Option { /** tabBar Which one?,From the left. */ index: number /** 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 /** Picture Path,icon Size Limit to 40kb,Suggested Dimensions 81px * 81px,♪ When postion Yes. top Hour,This parameter is invalid */ iconPath?: string /** Can not delete folder: %s: No such folder,icon Size Limit to 40kb,Suggested Dimensions 81px * 81px ,♪ When postion Yes. top Hour,This parameter is invalid */ selectedIconPath?: string /** Interface calls a successful echo function */ success?: (res: VnmfGeneral.CallbackResult) => void /** tab Button Text Up */ text?: string } } namespace setTabBarBadge { interface Option { /** tabBar Which one?,From the left. */ index: number /** displayed text,More than 4 A character is shown as ... */ text: 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 removeTabBarBadge { interface Option { /** tabBar Which one?,From the left. */ index: number /** 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 hideTabBarRedDot { interface Option { /** tabBar Which one?,From the left. */ index: number /** 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 hideTabBar { interface Option { /** Whether animated effects are required */ animation?: boolean /** 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 { /** Display tabBar The red dot on the upper right corner of an item * @supported weapp, h5, rn, tt * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.showTabBarRedDot.html */ showTabBarRedDot(option: showTabBarRedDot.Option): Promise /** Display tabBar * @supported weapp, h5, rn, tt * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.showTabBar.html */ showTabBar(option?: showTabBar.Option): Promise /** Dynamic Settings tabBar Overall Styles * @supported weapp, h5, rn, tt * @example * ```tsx * Vnmf.setTabBarStyle({ * color: '#FF0000', * selectedColor: '#00FF00', * backgroundColor: '#0000FF', * borderStyle: 'white' * }) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.setTabBarStyle.html */ setTabBarStyle(option?: setTabBarStyle.Option): Promise /** Dynamic Settings tabBar Content of an item,`2.7.0` Pictures to support temporary and web files。 * @supported weapp, h5, rn, tt * @example * ```tsx * Vnmf.setTabBarItem({ * index: 0, * text: 'text', * iconPath: '/path/to/iconPath', * selectedIconPath: '/path/to/selectedIconPath' * }) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.setTabBarItem.html */ setTabBarItem(option: setTabBarItem.Option): Promise /** Yes. tabBar Add text to the upper right corner of an item * @supported weapp, h5, rn, tt * @example * ```tsx * Vnmf.setTabBarBadge({ * index: 0, * text: '1' * }) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.setTabBarBadge.html */ setTabBarBadge(option: setTabBarBadge.Option): Promise /** Remove tabBar Text of the upper right corner a given item * @supported weapp, h5, rn, tt * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.removeTabBarBadge.html */ removeTabBarBadge(option: removeTabBarBadge.Option): Promise /** Hide tabBar The red dot on the upper right corner of an item * @supported weapp, h5, rn, tt * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.hideTabBarRedDot.html */ hideTabBarRedDot(option: hideTabBarRedDot.Option): Promise /** Hide tabBar * @supported weapp, h5, rn, tt * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.hideTabBar.html */ hideTabBar(option?: hideTabBar.Option): Promise } }