import '../utilities/globals'; import { GraphQLError } from 'graphql'; import { ServerParseError } from '../link/http'; import { ServerError } from '../link/utils'; export declare function isApolloError(err: Error): err is ApolloError; export type GraphQLErrors = ReadonlyArray; export type NetworkError = Error | ServerParseError | ServerError | null; export declare class ApolloError extends Error { name: string; message: string; graphQLErrors: GraphQLErrors; clientErrors: ReadonlyArray; networkError: Error | ServerParseError | ServerError | null; extraInfo: any; constructor({ graphQLErrors, clientErrors, networkError, errorMessage, extraInfo, }: { graphQLErrors?: ReadonlyArray; clientErrors?: ReadonlyArray; networkError?: Error | ServerParseError | ServerError | null; errorMessage?: string; extraInfo?: any; }); } //# sourceMappingURL=index.d.ts.map