import type { ASTNode, GraphQLError, GraphQLFormattedError, Source, SourceLocation } from 'graphql'; import { ApolloError } from 'apollo-server-koa'; export declare class GQLException extends ApolloError { readonly code: string | undefined; readonly locations: ReadonlyArray | undefined; readonly path: ReadonlyArray | undefined; readonly source: Source | undefined; readonly positions: ReadonlyArray | undefined; readonly nodes: ReadonlyArray | undefined; readonly originalError: Error | undefined; constructor(message: string, code?: string, extensions?: Record); } export declare function formatGraphQlException(graphQlError: GraphQLError & { originalError: GQLException; }): GraphQLFormattedError; export declare function fromGraphQLError(error: GraphQLError, code?: string): void; //# sourceMappingURL=GQLException.d.ts.map