import { GraphQLSchema, FieldNode, GraphQLArgument } from 'graphql'; import { Request, ExecutionResult } from '@graphql-tools/utils'; import { Transform, DelegationContext, SubschemaConfig } from '@graphql-tools/delegate'; export default class HoistField implements Transform { private readonly typeName; private readonly newFieldName; private readonly pathToField; private readonly oldFieldName; private readonly argFilters; private readonly argLevels; private readonly transformer; constructor(typeName: string, pathConfig: Array boolean; }>, newFieldName: string, alias?: string); transformSchema(originalWrappingSchema: GraphQLSchema, subschemaConfig: SubschemaConfig, transformedSchema?: GraphQLSchema): GraphQLSchema; transformRequest(originalRequest: Request, delegationContext: DelegationContext, transformationContext: Record): Request; transformResult(originalResult: ExecutionResult, delegationContext: DelegationContext, transformationContext: Record): ExecutionResult; } export declare function wrapFieldNode(fieldNode: FieldNode, path: Array, alias: string, argLevels: Record): FieldNode; export declare function renameFieldNode(fieldNode: FieldNode, name: string): FieldNode; export declare function unwrapValue(originalValue: any, alias: string): any;