import { Readable } from "node:stream";
import { Logger } from "@smithy/types";
/**
 * the minimum size is met, except for the last chunk.
 *
 * @internal
 * @param upstream - any Readable or ReadableStream.
 * @param size - byte or character length minimum. Buffering occurs when a chunk fails to meet this value.
 * @param logger - for emitting warnings when buffering occurs.
 * @returns another stream of the same data and stream class, but buffers chunks until
 */
export declare function createBufferedReadable(upstream: Readable, size: number, logger?: Logger): Readable;
/**
 * @internal
 */
export declare function createBufferedReadable(upstream: ReadableStream, size: number, logger?: Logger): ReadableStream;
