import { GraphQLError } from 'graphql'; import { HttpClient } from './HttpClient'; import { RequestConfig } from './typings'; interface QueryOptions { query: string; variables: Variables; inflight?: boolean; throwOnError?: boolean; extensions?: Record; } interface MutateOptions { mutate: string; variables: Variables; throwOnError?: boolean; } export type Serializable = object | boolean | string | number; export interface GraphQLResponse { data?: T; errors?: GraphQLError[]; extensions?: Record; } export declare class GraphQLClient { private http; constructor(http: HttpClient); query: ({ query, variables, inflight, extensions, throwOnError }: QueryOptions, config?: RequestConfig) => Promise>; mutate: ({ mutate, variables, throwOnError }: MutateOptions, config?: RequestConfig) => Promise>; } export {};