import { GraphQLError, Headers, Options, Variables } from './types'; export { ClientError } from './types'; import 'cross-fetch/polyfill'; export declare class GraphQLClient { private url; private options; constructor(url: string, options?: Options); rawRequest(query: string, variables?: Variables): Promise<{ data?: T; extensions?: any; errors?: GraphQLError[]; }>; request(query: string, variables?: Variables): Promise; setHeaders(headers: Headers): GraphQLClient; setHeader(key: string, value: string): GraphQLClient; } export declare function rawRequest(url: string, query: string, variables?: Variables): Promise<{ data?: T; extensions?: any; errors?: GraphQLError[]; }>; export declare function request(url: string, query: string, variables?: Variables): Promise; export default request;