export * from 'apollo-client'; export * from 'apollo-link'; export * from 'apollo-cache-inmemory'; import { Operation } from 'apollo-link'; import { HttpLink } from 'apollo-link-http'; import { ClientStateConfig } from 'apollo-link-state'; import { ErrorLink } from 'apollo-link-error'; import { InMemoryCache, CacheResolverMap } from 'apollo-cache-inmemory'; import gql from 'graphql-tag'; import ApolloClient from 'apollo-client'; export { gql, InMemoryCache, HttpLink }; export interface PresetConfig { request?: (operation: Operation) => Promise; uri?: string; fetchOptions?: HttpLink.Options; clientState?: ClientStateConfig; onError?: ErrorLink.ErrorHandler; cacheRedirects?: CacheResolverMap; } export default class DefaultClient extends ApolloClient { constructor(config: PresetConfig); }