import type { PowerState } from '../DeviceInfo.nitro'; /** * Monitor comprehensive power state including battery level, charging status, and low power mode. * * Returns a Partial object containing: * - batteryLevel?: Battery charge level (0.0 to 1.0, or -1 when unavailable) * - batteryState?: Current charging state ('unknown', 'unplugged', 'charging', 'full') * - lowPowerMode?: Whether low power mode is enabled (iOS only) * * @returns Partial object, or empty object during initial load * * @example * ```tsx * import { usePowerState } from 'react-native-nitro-device-info'; * * function PowerStatus() { * const powerState = usePowerState(); * * return ( * * Level: {(powerState.batteryLevel ?? -1) >= 0 * ? `${Math.round(powerState.batteryLevel! * 100)}%` * : 'unavailable'} * Status: {powerState.batteryState ?? 'unknown'} * Low Power: {powerState.lowPowerMode ? 'Yes' : 'No'} * * ); * } * ``` * * @platform iOS, Android */ export declare function usePowerState(): Partial; //# sourceMappingURL=usePowerState.d.ts.map