/** * Functions to translate JSON schema to GraphQL (input) object types. */ import { PreprocessingData } from './types/preprocessing_data'; import { Operation, DataDefinition } from './types/operation'; import { ParameterObject } from './types/oas3'; import { Args } from './types/graphql'; import { GraphQLOutputType, GraphQLInputType } from 'graphql'; import crossFetch from 'cross-fetch'; type GetArgsParams = { requestPayloadDef?: DataDefinition; parameters: ParameterObject[]; operation?: Operation; data: PreprocessingData; fetch: typeof crossFetch; }; type CreateOrReuseComplexTypeParams = { def: DataDefinition; operation?: Operation; iteration?: number; isInputObjectType?: boolean; data: PreprocessingData; fetch: typeof crossFetch; }; /** * Creates and returns a GraphQL type for the given JSON schema. */ export declare function getGraphQLType({ def, operation, data, iteration, isInputObjectType, fetch }: CreateOrReuseComplexTypeParams): GraphQLOutputType | GraphQLInputType; /** * Creates the arguments for resolving a field * * Arguments that are provided via options will be ignored */ export declare function getArgs({ requestPayloadDef, parameters, operation, data, fetch }: GetArgsParams): Args; export {};