import { IPublisher, ISubscriber } from 'rsocket-types'; export type Source = (subscriber: ISubscriber) => void; /** * Implements the ReactiveStream `Publisher` interface with Rx-style operators. */ export default class Flowable implements IPublisher { static just(...values: U[]): Flowable; static error(error: Error): Flowable<{}>; static never(): Flowable<{}>; constructor(source: Source, max?: number); subscribe(subscriberOrCallback?: Partial> | ((a: T) => void)): void; lift(onSubscribeLift: (subscriber: ISubscriber) => ISubscriber): Flowable; map(fn: (data: T) => R): Flowable; take(toTake: number): Flowable; }