/// <reference types="node" />
/// <reference types="node" />
import { type Readable } from 'stream';
export declare function toBuffer(stream: Readable): Promise<Buffer>;
export declare function toJSON(stream: Readable): Promise<any>;
export declare function persist(stream: Readable): Readable;
