import * as Observable from "./Observable/index.js"; /** * Represents a remote subscription. */ export type RemoteSubscription = { unsubscribe(): Promise; }; /** * An observer for a remote subscription. */ export type AsyncObserver = { next?(value: T): Promise; error?(error: unknown): Promise; complete?(): Promise; }; /** * A `PubSub` is an observable with asynchronous subscribe and unsubscribe * methods. */ export interface PubSub { subscribe(observerOrNext: AsyncObserver | ((value: T) => Promise)): Promise; } export type { PubSub as t }; /** * Creates a `PubSub` from an `ObservableLike`. */ export declare function from(observable: Observable.ObservableLike): PubSub; //# sourceMappingURL=PubSub.d.ts.map