import { PropertyEvent } from '../property_event.js'; import { RemoteDevice } from '../remote_device.js'; import { OcaBasicSensor } from './OcaBasicSensor.js'; /** * Bit string sensor. * @extends OcaBasicSensor * @class OcaBitstringSensor */ export declare class OcaBitstringSensor extends OcaBasicSensor { /** * This event is emitted whenever Reading changes. */ OnReadingChanged: PropertyEvent; /** * An alias for OnReadingChanged */ OnBitStringChanged: PropertyEvent; constructor(objectNumber: number, device: RemoteDevice); /** * Gets the number of bits of the bitstring data. * * @method OcaBitstringSensor#GetNrBits * @returns {Promise} * A promise which resolves to a single value of type ``number``. */ GetNrBits(): Promise; /** * Gets the value of the given bit. * * @method OcaBitstringSensor#GetBit * @param {number} bitNr * * @returns {Promise} * A promise which resolves to a single value of type ``number``. */ GetBit(bitNr: number): Promise; /** * Gets the entire bitstring. * * @method OcaBitstringSensor#GetReading * @returns {Promise} * A promise which resolves to a single value of type ``boolean[]``. */ GetReading(): Promise; /** * Gets the entire bitstring. * An alias for GetReading. * * @method OcaBitstringSensor#GetBitString * @returns {Promise} * A promise which resolves to a single value of type ``boolean[]``. */ GetBitString(): Promise; }