import { ASTNode, GraphQLError, Source } from 'graphql'; import { Maybe } from 'graphql/jsutils/Maybe'; export declare type Props = { message: string; nodes?: Maybe | ASTNode>; source?: Maybe; positions?: Maybe>; path?: Maybe>; originalError?: Maybe; extensions?: Maybe<{ [key: string]: any; }>; causes?: Error[]; }; export declare class GraphQLErrorExt extends GraphQLError { readonly code: C; static readonly BASE_PROPS: Set; readonly name: string; constructor(code: C, message: string, props?: Props); throw(): never; toString(): string; } export declare function err(code: C, props: P | string): GraphQLErrorExt & P; export default err; //# sourceMappingURL=error.d.ts.map