import { n as ServiceHandle, t as ServiceClientOptions } from "../service-rpc-BugpSF7V.mjs"; import { a as DeviceCameraInfo, c as DeviceNetworkConnectivityInfo, d as DevicePowerBatteryInfo, f as DevicePowerBatteryState, i as DeviceBoardInfo, l as DeviceNetworkStatus, n as DeviceBatteryLevelSource, o as DeviceCapability, r as DeviceBatteryPowerSource, s as DeviceInterfaceInfo, t as DeviceBatteryChargeState, u as DevicePowerBatteryChargeConfig } from "../device-types-DxFVgkVJ.mjs"; //#region src/device/device-client.d.ts /** Registered name (`helper::Device::get_name()`). */ declare const DEVICE_SERVICE_NAME = "Device"; /** RPC function names (`helper::Device::FunctionId`). */ declare const DEVICE_FUNCTIONS: { readonly GetCapabilities: "GetCapabilities"; readonly GetBoardInfo: "GetBoardInfo"; readonly GetCameraDeviceInfos: "GetCameraDeviceInfos"; readonly GetNetworkConnectivityInfo: "GetNetworkConnectivityInfo"; readonly GetPowerBatteryInfo: "GetPowerBatteryInfo"; readonly GetPowerBatteryState: "GetPowerBatteryState"; readonly GetPowerBatteryChargeConfig: "GetPowerBatteryChargeConfig"; readonly SetPowerBatteryChargeConfig: "SetPowerBatteryChargeConfig"; readonly SetPowerBatteryChargingEnabled: "SetPowerBatteryChargingEnabled"; }; type DeviceClientOptions = ServiceClientOptions; declare function isDeviceAvailable(options?: DeviceClientOptions): boolean; declare function openDevice(options?: DeviceClientOptions): ServiceHandle; declare function closeDevice(handle: ServiceHandle, options?: DeviceClientOptions): void; declare function getCapabilities(handle: ServiceHandle, options?: DeviceClientOptions): DeviceCapability[]; declare function getBoardInfo(handle: ServiceHandle, options?: DeviceClientOptions): DeviceBoardInfo; declare function getCameraDeviceInfos(handle: ServiceHandle, options?: DeviceClientOptions): DeviceCameraInfo[]; declare function getNetworkConnectivityInfo(handle: ServiceHandle, options?: DeviceClientOptions): DeviceNetworkConnectivityInfo[]; declare function getPowerBatteryInfo(handle: ServiceHandle, options?: DeviceClientOptions): DevicePowerBatteryInfo; declare function getPowerBatteryState(handle: ServiceHandle, options?: DeviceClientOptions): DevicePowerBatteryState; declare function getPowerBatteryChargeConfig(handle: ServiceHandle, options?: DeviceClientOptions): DevicePowerBatteryChargeConfig; declare function setPowerBatteryChargeConfig(handle: ServiceHandle, config: DevicePowerBatteryChargeConfig, options?: DeviceClientOptions): void; declare function setPowerBatteryChargingEnabled(handle: ServiceHandle, enabled: boolean, options?: DeviceClientOptions): void; //#endregion //#region src/device/device.d.ts type DeviceModuleOptions = DeviceClientOptions; /** * Inject a mock RPC host and reset the cached service handle (vitest / Node only). * * @param options - Client options, typically `{ host }` from `@brookesia/service/hosts/device` */ declare function configure(options: DeviceModuleOptions): void; declare const device: { /** @returns `true` when the Device service is registered on the device */available(): boolean; /** Release the Device service binding. */ close(): void; /** @returns HAL capability flags (audio, display, camera, …) */ getCapabilities(): DeviceCapability[]; /** @returns Board name, chip model, firmware version, etc. */ getBoardInfo(): DeviceBoardInfo; /** * @returns Camera device list * @throws When no camera HAL is present on the board */ getCameraDeviceInfos(): DeviceCameraInfo[]; /** @returns Per-interface network connectivity status */ getNetworkConnectivityInfo(): DeviceNetworkConnectivityInfo[]; /** @returns Static battery metadata (capacity, chemistry, …) */ getPowerBatteryInfo(): DevicePowerBatteryInfo; /** @returns Live battery level, voltage, charging state */ getPowerBatteryState(): DevicePowerBatteryState; /** @returns Charge current / voltage limits */ getPowerBatteryChargeConfig(): DevicePowerBatteryChargeConfig; /** * Update charge configuration. * * @param config - Charge limits from {@link getPowerBatteryChargeConfig} */ setPowerBatteryChargeConfig(config: DevicePowerBatteryChargeConfig): void; /** * Enable or disable battery charging. * * @param enabled - `true` to allow charging */ setPowerBatteryChargingEnabled(enabled: boolean): void; }; //#endregion export { DEVICE_FUNCTIONS, DEVICE_SERVICE_NAME, type DeviceBatteryChargeState, type DeviceBatteryLevelSource, type DeviceBatteryPowerSource, type DeviceBoardInfo, type DeviceCameraInfo, type DeviceCapability, type DeviceClientOptions, type ServiceHandle as DeviceHandle, type DeviceInterfaceInfo, type DeviceModuleOptions, type DeviceNetworkConnectivityInfo, type DeviceNetworkStatus, type DevicePowerBatteryChargeConfig, type DevicePowerBatteryInfo, type DevicePowerBatteryState, closeDevice, configure, device as default, getBoardInfo, getCameraDeviceInfos, getCapabilities, getNetworkConnectivityInfo, getPowerBatteryChargeConfig, getPowerBatteryInfo, getPowerBatteryState, isDeviceAvailable, openDevice, setPowerBatteryChargeConfig, setPowerBatteryChargingEnabled }; //# sourceMappingURL=index.d.mts.map