import { Transform } from 'stream'; /** Mapper transforms a stream of into a stream of , using a synchronous transform function. Use Transformer() instead if you need an asynchronous callback function. */ export declare class Mapper extends Transform { protected transformFn: (chunk: T) => R; constructor(transformFn: (chunk: T) => R); _transform(chunk: T, encoding: BufferEncoding, callback: (error?: Error, outputChunk?: R) => void): void; }