import zenObservable from 'zen-observable' ; namespace Observable { } import { ZenObservable } from './types' ; export { ZenObservable } ; export type Observer < T > = ZenObservable . Observer < T > ; export type Subscriber < T > = ZenObservable . Subscriber < T > ; export type ObservableLike < T > = ZenObservable . ObservableLike < T > ; export const Observable = < any > zenObservable ; export interface Observable < T > { subscribe ( observerOrNext , error ? , complete ? ) : ZenObservable . Subscription ; forEach ( fn ) : Promise < void > ; map < R > ( fn ) : Observable < R > ; filter ( fn ) : Observable < T > ; reduce < R = T > ( fn , initialValue ? ) : Observable < R | T > ; flatMap < R > ( fn ) : Observable < R > ; from < R > ( observable ) : Observable < R > ; of < R > ( ... args ) : Observable < R > ; }