import { TSTypeNode } from '@yesness/ts-parser'; import { ListTypeNode, NamedTypeNode, TypeNode } from 'graphql'; declare type BaseGraphQLType = { nonnull: boolean; }; export declare type ListType = BaseGraphQLType & { type: 'list'; elementType: MyGraphQLType; }; export declare type NativeType = BaseGraphQLType & ({ type: 'native'; nativeType: 'String' | 'Int' | 'Float' | 'Boolean'; } | { type: 'native'; nativeType: 'ID'; idType: 'string' | 'number'; }); export declare type ReferenceType = BaseGraphQLType & { type: 'reference'; name: string; }; export declare type MyGraphQLType = ListType | NativeType | ReferenceType; export declare class GraphQLUtil { static getReferenceX(type: MyGraphQLType): string; static getReference(type: MyGraphQLType): string | null; static updateMyGraphQLType(type: MyGraphQLType, nameMapping: Record): MyGraphQLType; static convertToMyGraphQLType(tsType: TSTypeNode, optional?: boolean): MyGraphQLType; private static convertToMyGraphQLTypeHelper; static convertToGraphQLType(myType: MyGraphQLType): TypeNode; static convertNullableTypeToGraphQLType(myType: MyGraphQLType): NamedTypeNode | ListTypeNode; private static log; } export {};