import ApolloClient from "apollo-client"; import { GraphClient, MutationOptions, QueryOptions } from "../spi/graph/GraphClient"; /** * Implementation of GraphClient using Apollo Client. */ export declare class ApolloGraphClient implements GraphClient { endpoint: string; /** * Configured Apollo Client instance subclasses can use directly */ readonly client: ApolloClient; /** * Create a new GraphClient * @param endpoint GraphQL endpoint * @param headers any special headers to use */ constructor(endpoint: string, headers?: any); query(options: QueryOptions | string): Promise; mutate(options: MutationOptions | string): Promise; private executeQuery; private executeMutation; }