import { GraphQLResolveInfo, GraphQLOutputType, GraphQLSchema } from 'graphql';
import { Transform, ExecutionResult } from '@graphql-tools/utils';
import { SubschemaConfig } from '../types';
export default class CheckResultAndHandleErrors implements Transform {
    private readonly context?;
    private readonly info;
    private readonly fieldName?;
    private readonly subschema?;
    private readonly returnType?;
    private readonly typeMerge?;
    constructor(info: GraphQLResolveInfo, fieldName?: string, subschema?: GraphQLSchema | SubschemaConfig, context?: Record<string, any>, returnType?: GraphQLOutputType, typeMerge?: boolean);
    transformResult(result: any): any;
}
export declare function checkResultAndHandleErrors(result: ExecutionResult, context: Record<string, any>, info: GraphQLResolveInfo, responseKey?: string, subschema?: GraphQLSchema | SubschemaConfig, returnType?: GraphQLOutputType, skipTypeMerging?: boolean): any;
