import { Transform, type TransformOptions } from 'node:stream'; /** * Transform function signature for stream transformation. */ export type TransformFn = (chunk: TIn, encoding: BufferEncoding) => TOut | Promise | null; /** * Create a Transform stream with a simple function. * Defaults to object mode. * * @param transformFn - Function to transform each chunk * @param options - Transform stream options (excluding transform function) * @returns Transform stream */ export declare function createTransformFast(transformFn: TransformFn, options?: Omit): Transform; /** * Create a filter Transform stream. * Chunks that fail the predicate are dropped. * * @param predicate - Function that returns true to keep chunk * @returns Transform stream that filters chunks */ export declare function createFilterStreamFast(predicate: (chunk: T) => boolean | Promise): Transform; /** * Create a map Transform stream. * * @param mapper - Function to map each chunk * @returns Transform stream that maps chunks */ export declare function createMapStreamFast(mapper: (chunk: TIn) => TOut | Promise): Transform; //# sourceMappingURL=transform.d.ts.map