import type { WatchQueryOptions as CoreWatchQueryOptions, QueryOptions as CoreQueryOptions, MutationOptions as CoreMutationOptions, SubscriptionOptions as CoreSubscriptionOptions, ApolloClientOptions, FetchResult, TypedDocumentNode } from '@apollo/client/core'; import type { ExecutionResult } from 'graphql'; export declare type EmptyObject = { [key: string]: any; }; export declare type ResultOf = T extends TypedDocumentNode ? R : never; export declare type VariablesOf = T extends TypedDocumentNode ? V : never; export interface ExtraSubscriptionOptions { useZone?: boolean; } export interface MutationResult extends FetchResult { loading: boolean; } export declare type Omit = Pick>; export interface WatchQueryOptionsAlone extends Omit, 'query' | 'variables'> { } export interface QueryOptionsAlone extends Omit, 'query' | 'variables'> { } export interface MutationOptionsAlone extends Omit, 'mutation' | 'variables'> { } export interface SubscriptionOptionsAlone extends Omit, 'query' | 'variables'> { } export interface WatchQueryOptions extends CoreWatchQueryOptions { /** * Observable starts with `{ loading: true }`. * There's a big chance the next major version will enable that by default. * * Disabled by default */ useInitialLoading?: boolean; } export interface MutationOptions extends CoreMutationOptions { /** * Observable starts with `{ loading: true }`. * There's a big chance the next major version will enable that by default. * * Disabled by default */ useMutationLoading?: boolean; } export interface SubscriptionResult extends ExecutionResult { } export declare type NamedOptions = Record>; export declare type Flags = { /** * Observable starts with `{ loading: true }`. * There's a big chance the next major version will enable that by default. * * Disabled by default */ useInitialLoading?: boolean; /** * Observable starts with `{ loading: true }`. * * Disabled by default */ useMutationLoading?: boolean; };