/*! * @author electricessence / https://github.com/electricessence/ * Based upon .NET source. * Licensing: MIT https://github.com/electricessence/TypeScript.NET/blob/master/LICENSE.md * Source: http://referencesource.microsoft.com/#mscorlib/system/IObserver.cs */ import { IDisposableAware } from "../Disposable/IDisposableAware"; import { ISubscribable } from "./ISubscribable"; /** * A registration that an IObservable returns that can be disposed in order to cancel sending data to the observer. */ export declare class Subscription implements IDisposableAware { private _subscribable; private _subscriber; constructor(_subscribable: ISubscribable, _subscriber: T); readonly subscriber: T; readonly wasDisposed: boolean; dispose(): void; } export default Subscription;