import Vnmf from '../../index' declare module '../../index' { namespace setVisualEffectOnCapture { interface Option { /** Screenshot/Performance during the recording,Support only none / hidden,Organisation hidden It means it's blocking the screen./Hide the screen while recording * @default "none" */ visualEffect?: 'none' | 'hidden' /** 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 setScreenBrightness { interface Option { /** Screen Brightness Value,Scope 0 ~ 1。0 Darkest,1 Lightest */ value: 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 setKeepScreenOn { interface Promised extends VnmfGeneral.CallbackResult { /** Call Results */ errMsg: string } interface Option { /** Whether to keep the screen bright */ keepScreenOn: 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 onUserCaptureScreen { /** The user 's active screenshot event echo function */ type Callback = ( result: VnmfGeneral.CallbackResult, ) => void } namespace getScreenBrightness { 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?: (option: SuccessCallbackOption) => void } interface SuccessCallbackOption { /** Screen Brightness Value,Scope 0 ~ 1,0 Darkest,1 Lightest */ value: number } } interface VnmfStatic { /** Set Screen/Screen performance during recording,_Other Organiser Android End Call * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.setVisualEffectOnCapture.html */ setVisualEffectOnCapture(option: setVisualEffectOnCapture.Option): Promise /** Set screen brightness。 * @supported weapp, rn, tt * @example * ```tsx * Vnmf.setScreenBrightness(params).then(...) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.setScreenBrightness.html */ setScreenBrightness(option: setScreenBrightness.Option): Promise /** * Set whether to keep a constant light state。Only current applets are effective,Cannot initialise Evolution's mail component.。 * @supported weapp, rn, tt * @example * ```tsx * // Keep the screen on bright. * Vnmf.setKeepScreenOn({ * keepScreenOn: true * }) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.setKeepScreenOn.html */ setKeepScreenOn(option: setKeepScreenOn.Option): Promise /** * Listen to user active screen intercept events,Trigger this event when the user uses system screen button to intercept * @supported weapp, tt * @example * ```tsx * Vnmf.onUserCaptureScreen(function (res) { * console.log('User's on the screen.') * }) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.onUserCaptureScreen.html */ onUserCaptureScreen( /** The user 's active screenshot event echo function */ callback: onUserCaptureScreen.Callback, ): void /** User active screenshot event。Disable the bug.。 * @supported weapp, tt * @see https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.offUserCaptureScreen.html */ offUserCaptureScreen( /** The user 's active screenshot event echo function */ callback: onUserCaptureScreen.Callback, ): void /** * Get Screen Brightness。 * * **Annotations** * - If auto-regulating brightness is enabled in Andre's system settings,,The screen brightness adjusts automatically to the light.,This interface only captures values before the auto-regulating brightness,Instead of real-time brightness.。 * @supported weapp, rn, tt * @see https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.getScreenBrightness.html */ getScreenBrightness( option?: getScreenBrightness.Option ): Promise } }