import { FragmentDefinitionNode, GraphQLResolveInfo, SelectionNode } from 'graphql'; import { DataSource, EntitySchema, ObjectType } from 'typeorm'; import { RelationMap } from 'typeorm-relations'; export declare class GraphRelationBuilder { private readonly dataSource; constructor(dataSource: DataSource); buildForQuery>(entity: ObjectType | EntitySchema | string, info: GraphQLResolveInfo, path?: string): RelationMap; build>(entity: ObjectType | EntitySchema | string, baseNode: SelectionNode, fragments?: Record, basePropertyPath?: string, currentLevel?: number): RelationMap; private getEntityMetadata; }