import { ApolloCache, ApolloClient } from '../../core'; import { ApolloError } from '../../errors'; import { ApolloQueryResult, OperationVariables, FetchMoreOptions, UpdateQueryOptions, FetchMoreQueryOptions, SubscribeToMoreOptions, DefaultContext } from '../../core'; import { MutationFunction, BaseQueryOptions, BaseMutationOptions, MutationResult } from '../types/types'; export interface QueryControls { error?: ApolloError; networkStatus: number; loading: boolean; variables: TGraphQLVariables; fetchMore: (fetchMoreOptions: FetchMoreQueryOptions & FetchMoreOptions) => Promise>; refetch: (variables?: TGraphQLVariables) => Promise>; startPolling: (pollInterval: number) => void; stopPolling: () => void; subscribeToMore: (options: SubscribeToMoreOptions) => () => void; updateQuery: (mapFn: (previousQueryResult: any, options: UpdateQueryOptions) => any) => void; } export type DataValue = QueryControls & Partial; export interface DataProps { data: DataValue; } export interface MutateProps { mutate: MutationFunction; result: MutationResult; } export type ChildProps = TProps & Partial> & Partial>; export type ChildDataProps = TProps & DataProps; export type ChildMutateProps = TProps & MutateProps; export interface OptionProps extends Partial>, Partial> { ownProps: TProps; } export interface OperationOption, TContext = DefaultContext, TCache extends ApolloCache = ApolloCache> { options?: BaseQueryOptions | BaseMutationOptions | ((props: TProps) => BaseQueryOptions | BaseMutationOptions); props?: (props: OptionProps, lastProps?: TChildProps | void) => TChildProps; skip?: boolean | ((props: TProps) => boolean); name?: string; withRef?: boolean; shouldResubscribe?: (props: TProps, nextProps: TProps) => boolean; alias?: string; } export type WithApolloClient

= P & { client?: ApolloClient; }; //# sourceMappingURL=types.d.ts.map