import type { PipelineOptions } from 'node:stream/promises'; export type PipelineCallback = (err: Error | null, value?: unknown) => void; /** Anything `pipeline()` accepts as one of its stages. */ export type PipelineStage = any; /** * Pipes streams and transforms together, forwarding errors and destroying every stage when * one of them fails. The last argument is the completion callback. */ export declare function pipeline(...streams: [...PipelineStage[], PipelineCallback]): unknown; /** @internal */ export declare function pipelineImpl(streams: PipelineStage[], callback: PipelineCallback, opts?: PipelineOptions): unknown;