import { GraphQLError } from 'graphql'; export declare const ERROR_SYMBOL: unique symbol; export declare function relocatedError(originalError: GraphQLError, path?: ReadonlyArray): GraphQLError; export declare function slicedError(originalError: GraphQLError): GraphQLError; export declare function getErrorsByPathSegment(errors: ReadonlyArray): Record>; export declare function setErrors(result: any, errors: Array): void; export declare function getErrors(result: any, pathSegment: string): Array;