import { Observable, OperatorFunction } from 'rxjs'; import { Subscription } from './interface'; export { UnsupportedEventError } from './errors'; export declare class ObservableSubscription implements Subscription { private shouldRetry; private operatorFunction; private errorListeners; private messageListeners; private closeListeners; private completed$; constructor(obs: Observable, shouldRetry?: boolean, operatorFunction?: OperatorFunction); private call; private remove; on(type: 'error', cb: (error: Error) => void): void; on(type: 'data', cb: (data: T) => void): void; on(type: 'close', cb: () => void): void; off(type: 'error', cb: (error: Error) => void): void; off(type: 'data', cb: (data: T) => void): void; off(type: 'close', cb: () => void): void; close(): void; }