import { ApolloClient, ApolloClientOptions, NormalizedCacheObject } from '@apollo/client'; import { SubscriptionClient } from 'subscriptions-transport-ws'; import { ProviderTestHelper } from './provider-test-helper'; type AuthToken = string | (() => string); export declare class GraphQLHelper { private providerTestHelper; constructor(providerTestHelper: ProviderTestHelper); client(authToken?: AuthToken): ApolloClient; /** * IMPORTANT: After using this "DisconnectableApolloClient", you must call ".disconnect()" to close the socket. Otherwise * it will keep waiting for messages forever */ clientWithSubscriptions(authToken?: AuthToken): Promise; private getApolloHTTPLink; private getAuthLink; private subscriptionsClient; } export declare class DisconnectableApolloClient extends ApolloClient { private readonly subscriptionClient; constructor(subscriptionClient: SubscriptionClient, options: ApolloClientOptions); reconnect(): Promise; disconnect(): void; } export {};