import type { OEMBatteryInfo } from './types'; /** * OEM Battery Manager — handles per-manufacturer battery optimization settings. * * Problem: Android OEMs (Xiaomi, Huawei, Oppo, Vivo, OnePlus, Samsung) each * have their own battery management systems that aggressively kill foreground * services. The generic `REQUEST_IGNORE_BATTERY_OPTIMIZATIONS` intent doesn't * work on most Chinese OEMs — they require manufacturer-specific settings intents. * * This module provides: * 1. Request battery optimization exemption (stock Android) * 2. OEM-specific settings intents (per manufacturer) * 3. Detection of whether the app is already exempt */ export declare const OEMBatteryManager: { /** * Request battery optimization exemption (stock Android). * Shows system dialog to allow the app to ignore battery optimizations. * This is the first line of defense against Doze mode. */ requestExemption(): Promise; /** * Open the manufacturer-specific battery settings screen. * On stock Android, opens the battery optimization settings. * On OEM devices, opens the manufacturer's battery management app. */ openOemBatterySettings(): Promise; /** * Open generic battery optimization settings. */ openBatterySettings(): Promise; /** * Open the app's system settings page. * On Android, this is where the user can manually disable battery optimization. */ openAppSettings(): Promise; /** * Check if the app is currently exempt from battery optimization. */ isExempt(): Promise; /** * Get information about the device's battery optimization state. */ getInfo(): Promise; /** * Get the OEM-specific battery settings app name for the given manufacturer. */ getOemSettingsAppName(manufacturer: string): string | null; /** * Show a user-friendly message explaining why battery optimization exemption is needed. * This should be called before requestExemption() to set context. */ getRationale(manufacturer?: string): string; }; export default OEMBatteryManager; //# sourceMappingURL=OEMBatteryManager.d.ts.map