import type { BlockingStream } from "./blocking-stream.js"; /** Reads little-endian values from a blocking stream. Nothing is held beyond the value being read. */ declare class StreamReader { private readonly stream; private readonly buffer; private start; private end; private scratch; constructor(stream: BlockingStream); u8(): number; u32(): number; /** A 64-bit integer, as a number when a number holds it exactly. */ integer(): number | bigint; f64(): number; /** Text after its `u32` size. Bytes that are not UTF-8 decode to U+FFFD. */ text(): string; /** Bytes after their `u32` size, in a buffer of their own. */ bytes(): Uint8Array; /** Gives up the buffer that text larger than the read buffer was decoded from. */ release(): void; private fillScratch; private readInto; private need; private read; } export { StreamReader }; //# sourceMappingURL=stream-reader.d.ts.map