1 | import { DocumentNode } from 'graphql';
|
2 | import { ApolloQueryResult } from '@apollo/client/core';
|
3 | import { TypedDocumentNode } from '@graphql-typed-document-node/core';
|
4 | import { Observable } from 'rxjs';
|
5 | import { Apollo } from './apollo';
|
6 | import { QueryRef } from './query-ref';
|
7 | import { WatchQueryOptionsAlone, QueryOptionsAlone, EmptyObject } from './types';
|
8 | export declare class Query<T = {}, V = EmptyObject> {
|
9 | protected apollo: Apollo;
|
10 | 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 | }
|