/** * Stream wrapper class inspired by OpenAI SDK * Provides utilities for working with async iterables */ export declare class Stream implements AsyncIterable { private iterator; private controller?; private consumed; constructor(iterator: () => AsyncIterator, controller?: AbortController | undefined); /** * Create a Stream from an async generator */ static fromAsyncIterable(iterable: AsyncIterable, controller?: AbortController): Stream; [Symbol.asyncIterator](): AsyncIterator; /** * Splits the stream into two streams which can be * independently read from at different speeds. */ tee(): [Stream, Stream]; /** * Collect all chunks into an array */ toArray(): Promise; /** * Abort the underlying stream */ abort(): void; } //# sourceMappingURL=Stream.d.ts.map