# WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.2

import enum
import sys
import types
import typing
import uuid

import winsdk._winrt as _winrt

try:
    import winsdk.windows.foundation
except Exception:
    pass

class BatteryStatus(enum.IntEnum):
    NOT_PRESENT = 0
    DISCHARGING = 1
    IDLE = 2
    CHARGING = 3

class EnergySaverStatus(enum.IntEnum):
    DISABLED = 0
    OFF = 1
    ON = 2

class PowerSupplyStatus(enum.IntEnum):
    NOT_PRESENT = 0
    INADEQUATE = 1
    ADEQUATE = 2

class BackgroundEnergyManager(_winrt.Object):
    excessive_usage_level: _winrt.UInt32
    low_usage_level: _winrt.UInt32
    max_acceptable_usage_level: _winrt.UInt32
    near_max_acceptable_usage_level: _winrt.UInt32
    near_termination_usage_level: _winrt.UInt32
    recent_energy_usage: _winrt.UInt32
    recent_energy_usage_level: _winrt.UInt32
    termination_usage_level: _winrt.UInt32
    @staticmethod
    def _from(obj: _winrt.Object) -> BackgroundEnergyManager: ...
    @typing.overload
    @staticmethod
    def add_recent_energy_usage_increased(handler: winsdk.windows.foundation.EventHandler[_winrt.Object]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    @staticmethod
    def remove_recent_energy_usage_increased(token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...
    @typing.overload
    @staticmethod
    def add_recent_energy_usage_returned_to_low(handler: winsdk.windows.foundation.EventHandler[_winrt.Object]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    @staticmethod
    def remove_recent_energy_usage_returned_to_low(token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...

class ForegroundEnergyManager(_winrt.Object):
    excessive_usage_level: _winrt.UInt32
    low_usage_level: _winrt.UInt32
    max_acceptable_usage_level: _winrt.UInt32
    near_max_acceptable_usage_level: _winrt.UInt32
    recent_energy_usage: _winrt.UInt32
    recent_energy_usage_level: _winrt.UInt32
    @staticmethod
    def _from(obj: _winrt.Object) -> ForegroundEnergyManager: ...
    @typing.overload
    @staticmethod
    def add_recent_energy_usage_increased(handler: winsdk.windows.foundation.EventHandler[_winrt.Object]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    @staticmethod
    def remove_recent_energy_usage_increased(token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...
    @typing.overload
    @staticmethod
    def add_recent_energy_usage_returned_to_low(handler: winsdk.windows.foundation.EventHandler[_winrt.Object]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    @staticmethod
    def remove_recent_energy_usage_returned_to_low(token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...

class PowerManager(_winrt.Object):
    battery_status: BatteryStatus
    energy_saver_status: EnergySaverStatus
    power_supply_status: PowerSupplyStatus
    remaining_charge_percent: _winrt.Int32
    remaining_discharge_time: winsdk.windows.foundation.TimeSpan
    @staticmethod
    def _from(obj: _winrt.Object) -> PowerManager: ...
    @typing.overload
    @staticmethod
    def add_battery_status_changed(handler: winsdk.windows.foundation.EventHandler[_winrt.Object]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    @staticmethod
    def remove_battery_status_changed(token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...
    @typing.overload
    @staticmethod
    def add_energy_saver_status_changed(handler: winsdk.windows.foundation.EventHandler[_winrt.Object]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    @staticmethod
    def remove_energy_saver_status_changed(token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...
    @typing.overload
    @staticmethod
    def add_power_supply_status_changed(handler: winsdk.windows.foundation.EventHandler[_winrt.Object]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    @staticmethod
    def remove_power_supply_status_changed(token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...
    @typing.overload
    @staticmethod
    def add_remaining_charge_percent_changed(handler: winsdk.windows.foundation.EventHandler[_winrt.Object]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    @staticmethod
    def remove_remaining_charge_percent_changed(token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...
    @typing.overload
    @staticmethod
    def add_remaining_discharge_time_changed(handler: winsdk.windows.foundation.EventHandler[_winrt.Object]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    @staticmethod
    def remove_remaining_discharge_time_changed(token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...

