import { PropertyEvent } from '../property_event.js'; import { RemoteDevice } from '../remote_device.js'; import { OcaBasicActuator } from './OcaBasicActuator.js'; /** * Bitstring actuator. Maximum bitstring length is 65,536 bits. * @extends OcaBasicActuator * @class OcaBitstringActuator */ export declare class OcaBitstringActuator extends OcaBasicActuator { /** * This event is emitted whenever Setting changes. */ OnSettingChanged: PropertyEvent; /** * An alias for OnSettingChanged */ OnBitstringChanged: PropertyEvent; constructor(objectNumber: number, device: RemoteDevice); /** * Gets the number of bits in the string. * * @method OcaBitstringActuator#GetNrBits * @returns {Promise} * A promise which resolves to a single value of type ``number``. */ GetNrBits(): Promise; /** * Gets the bit value of the given bit. * * @method OcaBitstringActuator#GetBit * @param {number} bitNr * * @returns {Promise} * A promise which resolves to a single value of type ``boolean``. */ GetBit(bitNr: number): Promise; /** * Sets the bit value of the given bit. * * @method OcaBitstringActuator#SetBit * @param {number} bitNr * @param {boolean} Value * * @returns {Promise} */ SetBit(bitNr: number, Value: boolean): Promise; /** * Gets the entire bitstring. * * @method OcaBitstringActuator#GetSetting * @returns {Promise} * A promise which resolves to a single value of type ``boolean[]``. */ GetSetting(): Promise; /** * Gets the entire bitstring. * An alias for GetSetting. * * @method OcaBitstringActuator#GetBitstring * @returns {Promise} * A promise which resolves to a single value of type ``boolean[]``. */ GetBitstring(): Promise; /** * Sets the entire bitstring. * * @method OcaBitstringActuator#SetSetting * @param {boolean[]} Setting * * @returns {Promise} */ SetSetting(Setting: boolean[]): Promise; /** * Sets the entire bitstring. * An alias for SetSetting. * * @method OcaBitstringActuator#SetBitstring * @param {boolean[]} Setting * * @returns {Promise} */ SetBitstring(Setting: boolean[]): Promise; }