1 | import { Operator } from './Operator';
|
2 | import { Observable } from './Observable';
|
3 | import { Subscriber } from './Subscriber';
|
4 | import { Subscription } from './Subscription';
|
5 | import { Observer, SubscriptionLike, TeardownLogic } from './types';
|
6 |
|
7 |
|
8 |
|
9 | export declare class SubjectSubscriber<T> extends Subscriber<T> {
|
10 | protected destination: Subject<T>;
|
11 | constructor(destination: Subject<T>);
|
12 | }
|
13 | /**
|
14 | * @class Subject<T>
|
15 | */
|
16 | export declare class Subject<T> extends Observable<T> implements SubscriptionLike {
|
17 | observers: Observer<T>[];
|
18 | closed: boolean;
|
19 | isStopped: boolean;
|
20 | hasError: boolean;
|
21 | thrownError: any;
|
22 | constructor();
|
23 | /**@nocollapse */
|
24 | static create: Function;
|
25 | lift<R>(operator: Operator<T, R>): Observable<R>;
|
26 | next(value?: T): void;
|
27 | error(err: any): void;
|
28 | complete(): void;
|
29 | unsubscribe(): void;
|
30 | /** @deprecated This is an internal implementation detail, do not use. */
|
31 | _trySubscribe(subscriber: Subscriber<T>): TeardownLogic;
|
32 | /** @deprecated This is an internal implementation detail, do not use. */
|
33 | _subscribe(subscriber: Subscriber<T>): Subscription;
|
34 | asObservable(): Observable<T>;
|
35 | }
|
36 | /**
|
37 | * @class AnonymousSubject<T>
|
38 | */
|
39 | export declare class AnonymousSubject<T> extends Subject<T> {
|
40 | protected destination: Observer<T>;
|
41 | constructor(destination?: Observer<T>, source?: Observable<T>);
|
42 | next(value: T): void;
|
43 | error(err: any): void;
|
44 | complete(): void;
|
45 | /** @deprecated This is an internal implementation detail, do not use. */
|
46 | _subscribe(subscriber: Subscriber<T>): Subscription;
|
47 | }
|