import IODefinitions from '../core/definitions.js'; import { IOStreamSource, StreamReaderOptions, StreamItem } from './types.js'; import '../schema/schema.js'; import '../schema/types/memberdef.js'; import '../schema/schema-types.js'; /** * A streaming reader for Internet Object data. * Reads chunked data from a source and parses it into IO objects. */ declare class IOStreamReader implements AsyncIterable { private readonly source; private readonly definitions; private readonly options; constructor(source: IOStreamSource, definitions?: IODefinitions | null, options?: StreamReaderOptions); /** * Reads all items from the stream and returns them as an array. * WARNING: This buffers the entire stream into memory. */ collect(): Promise; /** * Iterates over the stream, yielding parsed items (data, error, schemaName, etc.) */ [Symbol.asyncIterator](): AsyncIterator; } /** * Creates a new IOStreamReader instance. * @param source The source to read from (string, Iterable, AsyncIterable, ReadableStream). * @param definitions Optional initial definitions. * @param options Optional strictness and buffer settings. */ declare function createStreamReader(source: IOStreamSource, definitions?: IODefinitions | null, options?: StreamReaderOptions): IOStreamReader; export { IOStreamReader, createStreamReader };