import { GraphQLEnumType, GraphQLNamedType, GraphQLField, GraphQLInputField, GraphQLArgument, GraphQLDirective, GraphQLSchema, GraphQLEnumValue } from 'graphql'; import { Maybe } from 'graphql/jsutils/Maybe'; /** * Copied from packages/codemirror-graphql/src/jump.ts */ export declare function getSchemaReference(kind: string, typeInfo: any): FieldReference | DirectiveReference | ArgumentReference | EnumValueReference | TypeReference | undefined; type ArgumentReference = { kind: 'Argument'; argument: GraphQLArgument; field?: GraphQLField; type?: GraphQLNamedType; directive?: GraphQLDirective; schema?: GraphQLSchema; }; type DirectiveReference = { kind: 'Directive'; directive: GraphQLDirective; schema?: GraphQLSchema; }; type EnumValueReference = { kind: 'EnumValue'; value?: GraphQLEnumValue; type?: GraphQLEnumType; schema?: GraphQLSchema; }; type FieldReference = { kind: 'Field'; field: GraphQLField | GraphQLInputField; type: Maybe; schema?: GraphQLSchema; }; type TypeReference = { kind: 'Type'; type: GraphQLNamedType; schema?: GraphQLSchema; }; export {};