import { PropertyEvent } from '../property_event.js'; import { RemoteDevice } from '../remote_device.js'; import { OcaBasicSensor } from './OcaBasicSensor.js'; /** * JSON value actuator, with or without schema. * @extends OcaBasicSensor * @class OcaJsonSensor */ export declare class OcaJsonSensor extends OcaBasicSensor { /** * This event is emitted whenever Value changes. */ OnValueChanged: PropertyEvent; /** * This event is emitted whenever MaxLen changes. */ OnMaxLenChanged: PropertyEvent; constructor(objectNumber: number, device: RemoteDevice); /** * Gets the value of the **Value** property. * * @method OcaJsonSensor#GetValue * @returns {Promise} * A promise which resolves to a single value of type ``string``. */ GetValue(): Promise; /** * Gets the maximum number of bytes that may be returned. * * @method OcaJsonSensor#GetMaxLen * @returns {Promise} * A promise which resolves to a single value of type ``number``. */ GetMaxLen(): Promise; /** * Sets the maximum number of bytes that the object may return. Optional * method. * * @method OcaJsonSensor#SetMaxLen * @param {number} Len * * @returns {Promise} */ SetMaxLen(Len: number): Promise; }