import { EnumTypeDefinitionNode, ScalarTypeDefinitionNode, InputObjectTypeDefinitionNode, InputValueDefinitionNode, NamedTypeNode, NameNode } from 'graphql'; import { ScalarsMap, EnumValuesMap, FlowPluginConfig } from './index'; import { NonNullTypeNode, ListTypeNode, ObjectTypeDefinitionNode, FieldDefinitionNode, InterfaceTypeDefinitionNode, UnionTypeDefinitionNode, DirectiveDefinitionNode } from 'graphql/language/ast'; export declare const DEFAULT_SCALARS: { ID: string; String: string; Boolean: string; Int: string; Float: string; string: string; number: string; boolean: string; }; export interface ParsedConfig { scalars: ScalarsMap; enumValues: EnumValuesMap; convert: (str: string) => string; typesPrefix: string; useFlowExactObjects: boolean; useFlowReadOnlyTypes: boolean; } export interface BasicFlowVisitor { scalars: ScalarsMap; convertName: (name: any, addPrefix: boolean) => string; } export declare class FlowVisitor implements BasicFlowVisitor { private _parsedConfig; constructor(pluginConfig: FlowPluginConfig); convertName(name: any, addPrefix?: boolean): string; readonly scalars: ScalarsMap; ScalarTypeDefinition: (node: ScalarTypeDefinitionNode) => string; DirectiveDefinition: (node: DirectiveDefinitionNode) => string; NamedType: (node: NamedTypeNode) => string; ListType: (node: ListTypeNode) => string; NonNullType: (node: NonNullTypeNode) => string; Name: (node: NameNode) => string; InputObjectTypeDefinition: (node: InputObjectTypeDefinitionNode) => string; InputValueDefinition: (node: InputValueDefinitionNode) => string; FieldDefinition: (node: FieldDefinitionNode) => string; UnionTypeDefinition: (node: UnionTypeDefinitionNode) => string; ObjectTypeDefinition: (node: ObjectTypeDefinitionNode, key: any, parent: any) => string; InterfaceTypeDefinition: (node: InterfaceTypeDefinitionNode) => string; EnumTypeDefinition: (node: EnumTypeDefinitionNode) => string; }