import { ApolloClient, InMemoryCache } from '@apollo/client'; export interface CreateApolloClientOptions { uri: string; getAuthToken?: () => string | null | undefined; onAuthError?: () => void; onNetworkError?: (error: Error) => void; cache?: InMemoryCache; retryAttempts?: number; retryDelay?: number; } export declare function withBrowserTraceHeader(headersInit?: HeadersInit): Headers; /** * Decide whether an Apollo link error should be retried. Exported so it * can be unit-tested independently of an ApolloClient instance. * * Retries any unrecognised error (default-true) so genuine transient * network / 5xx failures still benefit from the link's retry budget; * permanent failures are filtered via three signals, in order: * 1. Numeric `statusCode` (Apollo Client 4's `ServerError`) * 2. `errors[].extensions.code` (GraphQL response auth codes) * 3. Substring match on `message` (fallback for link errors that * surface auth codes only in their message string) */ export declare function shouldRetryApolloError(error: unknown): boolean; export declare function createApolloClient(options: CreateApolloClientOptions): ApolloClient; //# sourceMappingURL=apollo.d.ts.map