import type { Observable } from "../../utilities/index.js"; interface TakeOptions { timeout?: number; } type ObservableEvent = { type: "next"; value: T; } | { type: "error"; error: any; } | { type: "complete"; }; declare class IteratorStream { private iterator; constructor(iterator: AsyncGenerator); take({ timeout }?: TakeOptions): Promise; } export declare class ObservableStream extends IteratorStream> { constructor(observable: Observable); takeNext(options?: TakeOptions): Promise; takeError(options?: TakeOptions): Promise; takeComplete(options?: TakeOptions): Promise; } export {}; //# sourceMappingURL=ObservableStream.d.ts.map