1 | import type { DocumentNode } from 'graphql';
|
2 | import type { Observable } from 'rxjs';
|
3 | import type { OperationVariables, TypedDocumentNode } from '@apollo/client/core';
|
4 | import { Apollo } from './apollo';
|
5 | import { EmptyObject, ExtraSubscriptionOptions, SubscriptionOptionsAlone, SubscriptionResult } from './types';
|
6 | import * as i0 from "@angular/core";
|
7 | export declare abstract class Subscription<T = any, V extends OperationVariables = EmptyObject> {
|
8 | protected readonly apollo: Apollo;
|
9 | abstract readonly document: DocumentNode | TypedDocumentNode<T, V>;
|
10 | client: string;
|
11 | constructor(apollo: Apollo);
|
12 | subscribe(variables?: V, options?: SubscriptionOptionsAlone<V, T>, extra?: ExtraSubscriptionOptions): Observable<SubscriptionResult<T>>;
|
13 | static ɵfac: i0.ɵɵFactoryDeclaration<Subscription<any, any>, never>;
|
14 | static ɵprov: i0.ɵɵInjectableDeclaration<Subscription<any, any>>;
|
15 | }
|