import { ErrorMapper } from './ErrorMapper.type';
/**
 * Sets the error mappers to use for mapping errors.
 * By default the `ApolloErrorMapper` is registered.
 * @param mappers an array of error mappers that should be used
 */
export declare const setErrorMappers: (mappers: ErrorMapper[]) => void;
/**
 * Uses the currently registered error mappers to map the given error.
 * To register error mappers use the `setErrorMappers` function.
 * @param error the error to map
 * @returns the mapped error or the original error if no mapper was able to map the error
 */
export declare const mapError: ErrorMapper;
//# sourceMappingURL=ErrorMapper.d.ts.map