import type { Readable } from "stream";
/**
 * Caution: the input stream must be destroyed separately, this function does not do so.
 *
 * @internal
 * @param stream - to be read.
 * @param bytes - read head bytes from the stream and discard the rest of it.
 */
export declare const headStream: (stream: Readable | ReadableStream, bytes: number) => Promise<Uint8Array>;
