import type { ApolloCache, InMemoryCacheConfig } from '@apollo/client'; /** * Connection state for GraphQL client. */ export declare enum GraphQLConnectionState { /** Client is attempting to establish a connection. */ Connecting = "Connecting", /** Client has successfully connected. */ Connected = "Connected", /** Client is attempting to reconnect after a disconnection. */ Reconnecting = "Reconnecting", /** Client has disconnected. */ Disconnected = "Disconnected", /** A connection error has occurred. */ Error = "Error" } /** * Configuration options for creating a GraphQL client. */ export interface IGraphQLClientOptions { /** Client identifier/name. Forwarded to Apollo Client's devtools.name for identification in Apollo DevTools. */ name: string; /** HTTP endpoint URI for the GraphQL server. */ httpUri: string; /** WebSocket endpoint URI for subscriptions. Requires WSS (wss://) in production; ws:// permitted for localhost only. */ wsUri: string; /** Authentication token as a static string or async provider function. Token is sent in Authorization header for HTTP and in connection params for subscriptions. */ token?: string | (() => string | Promise); /** Log GraphQL errors to console. */ logGraphQLErrors?: boolean; /** Log network errors to console. */ logNetworkErrors?: boolean; /** Apollo cache instance to use. If not provided, a new InMemoryCache is created. */ cache?: ApolloCache | undefined; /** Configuration options for the Apollo InMemoryCache. */ cacheOptions?: InMemoryCacheConfig; /** Enable request batching for GraphQL queries. Defaults to false. */ batchRequests?: boolean; /** @deprecated Not yet implemented. Cache persistence will be added in a future release. */ persistCache?: boolean; } //# sourceMappingURL=types.d.ts.map