import Vnmf from '../../index' declare module '../../index' { namespace setBackgroundTextStyle { interface Option { /** Drop background font、loading Styles of the diagram。 * * Optional value: * - 'dark': dark Styles; * - 'light': light Styles; */ textStyle: 'dark' | '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 setBackgroundColor { interface Option { /** The background color of the window,Hexadecimal colours are required */ backgroundColor?: string /** Background color of the bottom window,Hexadecimal colours are required,Only iOS Support */ backgroundColorBottom?: string /** Background color of the top window,Hexadecimal colours are required,Only iOS Support */ backgroundColorTop?: 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 } } interface VnmfStatic { /** Dynamic Settings Drop-down Background Fonts、loading Styles of the diagram * @supported weapp, rn * @rn Only iOS * @example * ```tsx * Vnmf.setBackgroundTextStyle({ * textStyle: 'dark' // Drop background font、loading The style of the figure isdark * }) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/background/wx.setBackgroundTextStyle.html */ setBackgroundTextStyle(option: setBackgroundTextStyle.Option): Promise /** Dynamic set window background color * @supported weapp, rn * @rn Only Android * @example * ```tsx * Vnmf.setBackgroundColor({ * backgroundColor: '#ffffff', // The background of the window is white * }) * Vnmf.setBackgroundColor({ * backgroundColorTop: '#ffffff', // The background of the top window is white. * backgroundColorBottom: '#ffffff', // The background of the bottom window is white. * }) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/background/wx.setBackgroundColor.html */ setBackgroundColor(option: setBackgroundColor.Option): Promise } }