UNPKG

@iotize/tap

Version:

IoTize Device client for Javascript

10 lines (9 loc) 527 B
import { TapStreamReader, TapStreamWriter } from '@iotize/tap/client/impl'; import { DBIOTConverterInterface } from '../compressor-interface'; export declare class TLVMappedEnumConverter<T extends Record<string | number, string | number>> implements DBIOTConverterInterface<keyof T> { private mapping; private static readonly _valueConverter; constructor(mapping: T); encode(keyValue: keyof T, stream?: TapStreamWriter): Uint8Array; decode(streamOrBuffer: TapStreamReader | Uint8Array): keyof T; }