import { TapStreamEncoderDecoder } from '@iotize/tap/client/impl'; import { Observable } from 'rxjs'; import { EditableValueDataStreamInterface, KeyTypeType } from '../utility/editable-data-stream'; import { AbstractVariable } from './abstract-variable-stream'; export declare class ConverterVariableView implements EditableValueDataStreamInterface { readonly id: KeyType; context: { /** * The underlying variable from which the view will be created */ variable: AbstractVariable; /** * If set to false, Tap will read the current value before editing and writing the new index * If set to true and if Tap already know the current value, it will not perform a read before editing the value */ useLastKnownValueBeforeWrite?: boolean; /** * Defined how the extracted value should be decoded */ converter: TapStreamEncoderDecoder; }; get converter(): TapStreamEncoderDecoder; get valueSnapshot(): DataType | undefined; get values(): Observable; constructor(id: KeyType, context: { /** * The underlying variable from which the view will be created */ variable: AbstractVariable; /** * If set to false, Tap will read the current value before editing and writing the new index * If set to true and if Tap already know the current value, it will not perform a read before editing the value */ useLastKnownValueBeforeWrite?: boolean; /** * Defined how the extracted value should be decoded */ converter: TapStreamEncoderDecoder; }); read(): Promise; write(value: DataType): Promise; private getCurrentValueStream; private encodeValue; private decodeValue; }