/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { Bytes } from "#util/index.js"; /** * A stream reader that reads bytes from a stream and provides a way to skip bytes. */ export declare class BytesStreamReader { #private; constructor(streamReader: ReadableStreamDefaultReader); read(chunkSize: number): AsyncGenerator, void, unknown>; /** * Tries to skip the desired number of bytes, returns the actual number of skipped bytes. * This skip() method should be called when no read() chunk is also awaited! */ skip(desiredSkippedBytes: number): Promise; } //# sourceMappingURL=BytesStreamReader.d.ts.map