import type { Readable } from 'stream'; /** * The same bytes, counted as they pass (the progress of a check is the bytes * read against the size of the file, ยง 8.4). It adds nothing to a chunk and holds * nothing back: a chunk is counted when it is taken from the source, and the * stream ends and fails as the source does. */ export declare function countBytes(source: Readable, onBytes: (total: number) => void): Readable;