/// import { DocumentNode } from 'graphql'; import { ApolloLink, FetchResult } from '../link/core'; import { ApolloCache } from '../cache'; import { Observable, Concast } from '../utilities'; import { MutationStore } from './MutationStore'; import { QueryOptions, WatchQueryOptions, SubscriptionOptions, MutationOptions } from './watchQueryOptions'; import { ObservableQuery } from './ObservableQuery'; import { NetworkStatus } from './networkStatus'; import { ApolloQueryResult, OperationVariables } from './types'; import { LocalState } from './LocalState'; import { QueryInfo } from './QueryInfo'; export declare class QueryManager { cache: ApolloCache; link: ApolloLink; mutationStore: MutationStore; readonly assumeImmutableResults: boolean; readonly ssrMode: boolean; private queryDeduplication; private clientAwareness; private localState; private onBroadcast; private queries; private fetchCancelFns; constructor({ cache, link, queryDeduplication, onBroadcast, ssrMode, clientAwareness, localState, assumeImmutableResults, }: { cache: ApolloCache; link: ApolloLink; queryDeduplication?: boolean; onBroadcast?: () => void; ssrMode?: boolean; clientAwareness?: Record; localState?: LocalState; assumeImmutableResults?: boolean; }); stop(): void; private cancelPendingFetches; mutate({ mutation, variables, optimisticResponse, updateQueries: updateQueriesByName, refetchQueries, awaitRefetchQueries, update: updateWithProxyFn, errorPolicy, fetchPolicy, context, }: MutationOptions): Promise>; fetchQuery(queryId: string, options: WatchQueryOptions, networkStatus?: NetworkStatus): Promise>; getQueryStore(): Record>; resetErrors(queryId: string): void; private transformCache; transform(document: DocumentNode): Readonly<{ document: Readonly; hasClientExports: boolean; hasForcedResolvers: boolean; clientQuery: Readonly | null; serverQuery: Readonly | null; defaultVars: Readonly>; }>; private getVariables; watchQuery(options: WatchQueryOptions): ObservableQuery; query(options: QueryOptions): Promise>; private queryIdCounter; generateQueryId(): string; private requestIdCounter; generateRequestId(): number; private mutationIdCounter; generateMutationId(): string; stopQueryInStore(queryId: string): void; private stopQueryInStoreNoBroadcast; clearStore(): Promise; resetStore(): Promise[]>; reFetchObservableQueries(includeStandby?: boolean): Promise[]>; setObservableQuery(observableQuery: ObservableQuery): void; startGraphQLSubscription({ query, fetchPolicy, variables, context, }: SubscriptionOptions): Observable>; stopQuery(queryId: string): void; private stopQueryNoBroadcast; removeQuery(queryId: string): void; broadcastQueries(): void; getLocalState(): LocalState; private inFlightLinkObservables; private getObservableFromLink; private getResultsFromLink; fetchQueryObservable(queryId: string, options: WatchQueryOptions, networkStatus?: NetworkStatus): Concast>; private fetchQueryByPolicy; private getQuery; private prepareContext; } //# sourceMappingURL=QueryManager.d.ts.map