import { WebPlugin, PluginListenerHandle } from '@capacitor/core'; import { BatteryChargingStateChangeListener, BatteryExtras, BatteryInfo, DeviceConfiguration, DeviceId, DeviceInfo, DevicePlugin, DisplayInfo, GetLanguageCodeResult, LanguageTag, MemoryInfo, PluginVersionResult, PowerState, StorageInfo, SystemUptime, AppVersion } from './definitions.js'; declare global { interface Navigator { getBattery: any; oscpu: any; } interface Window { InstallTrigger?: any; ApplePaySession?: any; chrome?: any; MSStream?: any; } } /** * Web implementation of the Device plugin. * * This implementation exists primarily to satisfy Capacitor's * multi-platform contract and to allow usage in browser-based * environments. Device data is derived from browser APIs such as * user agent parsing and the Battery Status API. * * Native-only features like hardware and OS identifiers are unavailable on Web. */ export declare class DeviceWeb extends WebPlugin implements DevicePlugin { private batteryApi; private batteryListenersAttached; private readonly uidCache; private readonly handleBatteryChargingChange; private attachBatteryListeners; private detachBatteryListeners; addListener(eventName: 'batteryChargingStateChange', listenerFunc: BatteryChargingStateChangeListener): Promise; removeAllListeners(): Promise; /** * Returns the plugin version. * * On the Web, this value represents the JavaScript package version * rather than a native implementation. */ getPluginVersion(): Promise; getId(): Promise; getInfo(): Promise; getBatteryInfo(): Promise; getLanguageCode(): Promise; getLanguageTag(): Promise; getBatteryExtras(): Promise; getDisplayInfo(): Promise; getConfiguration(): Promise; getPowerState(): Promise; getMemoryInfo(): Promise; getStorageInfo(): Promise; getSystemUptime(): Promise; getAppVersion(): Promise; parseUa(ua: string): any; private getUid; uuid4(): string; }