import { EncoderDecoder, EncoderDecoderFct } from '@iotize/common/converter/api'; import { BodyDecoder } from '@iotize/tap/client/api'; type PipeConverterType = EncoderDecoder | EncoderDecoderFct; export declare class PipeConverterBuilder { aliases: { [key: string]: PipeConverterType; }; constructor(aliases?: { [key: string]: PipeConverterType; }); pipe(converter: PipeConverterType | string): PipeConverter; } /** * Pipe multiple converter one after another */ export declare class PipeConverter implements BodyDecoder { converters: PipeConverterType[]; aliases: { [key: string]: PipeConverterType; }; constructor(converters: PipeConverterType[], aliases?: { [key: string]: PipeConverterType; }); decode(body: Uint8Array): T; encode(value: T): Uint8Array; pipe(converter: PipeConverterType | string): PipeConverter; static pipe(converter: PipeConverterType): PipeConverter; } export {};