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