/*! * @author electricessence / https://github.com/electricessence/ * Based upon .NET source. * Licensing: MIT https://github.com/electricessence/TypeScript.NET/blob/master/LICENSE.md * C# Source: http://referencesource.microsoft.com/#mscorlib/system/IObserver.cs */ import { SubscribableBase } from "./SubscribableBase"; import { IObservable } from "./IObservable"; import { IObserver } from "./IObserver"; import { IDisposable } from "../Disposable/IDisposable"; import { Action, Closure } from "../FunctionTypes"; export declare abstract class ObservableBase extends SubscribableBase> implements IObservable { protected _onNext(value: T): void; protected _onError(error: any): void; protected _onCompleted(): void; subscribe(subscriber: IObserver): IDisposable; subscribe(subscriber: Action, onError?: Action, onCompleted?: Closure): IDisposable; } export default ObservableBase;