export interface UseBatteryReturns { /** * Whether the battery is charging */ charging: boolean; /** * The battery level as a floating point number between 0 and 1 */ level: number; /** * The time remaining to charge the battery fully */ chargingTime: number; /** * The time remaining to discharge the battery fully */ dischargingTime: number; /** * Whether the battery API is supported */ isSupported: boolean; /** * Update the battery state */ update(): void; } /** * A React Hook that get [Battery](https://developer.mozilla.org/zh-CN/docs/Web/API/Battery_Status_API) state with ease. * * @returns {UseBatteryReturns} `UseBatteryReturns`, see {@link UseBatteryReturns} * @see {@link https://developer.mozilla.org/zh-CN/docs/Web/API/Battery_Status_API | Battery Status API - MDN} */ export declare function useBattery(): UseBatteryReturns;