import { OcaPowerSupplyLocation } from '../../types/OcaPowerSupplyLocation.js'; import { IOcaPowerSupplyState, OcaPowerSupplyState, } from '../../types/OcaPowerSupplyState.js'; import { OcaPowerSupplyType } from '../../types/OcaPowerSupplyType.js'; import { PropertyEvent } from '../property_event.js'; import { RemoteDevice } from '../remote_device.js'; import { OcaAgent } from './OcaAgent.js'; /** * A power supply. * @extends OcaAgent * @class OcaPowerSupply */ export declare class OcaPowerSupply extends OcaAgent { /** * This event is emitted whenever Type changes. */ OnTypeChanged: PropertyEvent; /** * This event is emitted whenever ModelInfo changes. */ OnModelInfoChanged: PropertyEvent; /** * This event is emitted whenever State changes. */ OnStateChanged: PropertyEvent; /** * This event is emitted whenever Charging changes. */ OnChargingChanged: PropertyEvent; /** * This event is emitted whenever LoadFractionAvailable changes. */ OnLoadFractionAvailableChanged: PropertyEvent; /** * This event is emitted whenever StorageFractionAvailable changes. */ OnStorageFractionAvailableChanged: PropertyEvent; constructor(objectNumber: number, device: RemoteDevice); /** * Gets the type of the power supply. * * @method OcaPowerSupply#GetType * @returns {Promise} * A promise which resolves to a single value of type :class:`OcaPowerSupplyType`. */ GetType(): Promise; /** * Gets the power supply's model information text. * * @method OcaPowerSupply#GetModelInfo * @returns {Promise} * A promise which resolves to a single value of type ``string``. */ GetModelInfo(): Promise; /** * Gets the state of the power supply. * * @method OcaPowerSupply#GetState * @returns {Promise} * A promise which resolves to a single value of type :class:`OcaPowerSupplyState`. */ GetState(): Promise; /** * Changes the power supply's state. * * @method OcaPowerSupply#SetState * @param {IOcaPowerSupplyState} state * * @returns {Promise} */ SetState(state: IOcaPowerSupplyState): Promise; /** * Gets the value of property **Charging**. * * @method OcaPowerSupply#GetCharging * @returns {Promise} * A promise which resolves to a single value of type ``boolean``. */ GetCharging(): Promise; /** * Gets the available load fraction. * * @method OcaPowerSupply#GetLoadFractionAvailable * @returns {Promise} * A promise which resolves to a single value of type ``number``. */ GetLoadFractionAvailable(): Promise; /** * Gets the available storage fraction. * * @method OcaPowerSupply#GetStorageFractionAvailable * @returns {Promise} * A promise which resolves to a single value of type ``number``. */ GetStorageFractionAvailable(): Promise; /** * Gets the power supply physical location. * * @method OcaPowerSupply#GetLocation * @returns {Promise} * A promise which resolves to a single value of type :class:`OcaPowerSupplyLocation`. */ GetLocation(): Promise; }