export interface KeepAwakePlugin { /** * Prevent the device from dimming the screen. */ keepAwake(): Promise; /** * Allow the device to dim the screen. */ allowSleep(): Promise; /** * Whether keep awake is supported or not. */ isSupported(): Promise; /** * Check if the device is kept awake. */ isKeptAwake(): Promise; } export interface IsSupportedResult { isSupported: boolean; } export interface IsKeptAwakeResult { isKeptAwake: boolean; }