1 | import { TypedDocumentNode } from '@graphql-typed-document-node/core';
|
2 | import { DocumentNode } from 'graphql';
|
3 | import { Observable } from 'rxjs';
|
4 | import { Apollo } from './apollo';
|
5 | import { SubscriptionOptionsAlone, ExtraSubscriptionOptions, SubscriptionResult, EmptyObject } from './types';
|
6 | export declare class Subscription<T = any, V = EmptyObject> {
|
7 | protected apollo: Apollo;
|
8 | readonly document: DocumentNode | TypedDocumentNode<T, V>;
|
9 | client: string;
|
10 | constructor(apollo: Apollo);
|
11 | subscribe(variables?: V, options?: SubscriptionOptionsAlone<V, T>, extra?: ExtraSubscriptionOptions): Observable<SubscriptionResult<T>>;
|
12 | }
|