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