1 | import { WatchQueryOptions as CoreWatchQueryOptions, QueryOptions as CoreQueryOptions, MutationOptions as CoreMutationOptions, SubscriptionOptions as CoreSubscriptionOptions, ApolloClientOptions } from '@apollo/client/core';
|
2 | import { TypedDocumentNode } from '@graphql-typed-document-node/core';
|
3 | import { ExecutionResult } from 'graphql';
|
4 | export declare type EmptyObject = {
|
5 | [key: string]: any;
|
6 | };
|
7 | export interface ExtraSubscriptionOptions {
|
8 | useZone?: boolean;
|
9 | }
|
10 | export declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
11 | export declare type ResultOf<T extends TypedDocumentNode> = T extends TypedDocumentNode<infer R> ? R : never;
|
12 | export declare type VariablesOf<T extends TypedDocumentNode> = T extends TypedDocumentNode<any, infer V> ? V : never;
|
13 | export interface WatchQueryOptionsAlone<TVariables, TData> extends Omit<WatchQueryOptions<TVariables, TData>, 'query' | 'variables'> {
|
14 | }
|
15 | export interface QueryOptionsAlone<TVariables, TData> extends Omit<CoreQueryOptions<TVariables, TData>, 'query' | 'variables'> {
|
16 | }
|
17 | export interface MutationOptionsAlone<TData, TVariables> extends Omit<CoreMutationOptions<TData, TVariables>, 'mutation' | 'variables'> {
|
18 | }
|
19 | export interface SubscriptionOptionsAlone<TVariables, TData> extends Omit<CoreSubscriptionOptions<TVariables, TData>, 'query' | 'variables'> {
|
20 | }
|
21 | export interface WatchQueryOptions<TVariables, TData> extends CoreWatchQueryOptions<TVariables, TData> {
|
22 | |
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | useInitialLoading?: boolean;
|
29 | }
|
30 | export interface SubscriptionResult<TData> extends ExecutionResult {
|
31 | data?: TData;
|
32 | }
|
33 | export declare type NamedOptions = Record<string, ApolloClientOptions<any>>;
|
34 | export declare type Flags = {
|
35 | |
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 | useInitialLoading?: boolean;
|
42 | };
|