import type { SchemaComposer, ObjectTypeComposer, InputTypeComposer, EnumTypeComposer, InputTypeComposerAsObjectDefinition, EnumTypeComposerAsObjectDefinition, ObjectTypeComposerAsObjectDefinition } from 'graphql-compose'; import type { ElasticMappingT, FieldsMapByElasticType } from './mappingConverter'; export declare type CommonOpts = { prefix?: string; postfix?: string; pluralFields?: string[]; elasticIndex: string; elasticType: string; elasticClient: any; fieldMap: FieldsMapByElasticType; sourceTC: ObjectTypeComposer; schemaComposer: SchemaComposer; getOrCreateOTC: (name: string, onCreate: () => ObjectTypeComposerAsObjectDefinition) => ObjectTypeComposer; getOrCreateITC: (name: string, onCreate: () => InputTypeComposerAsObjectDefinition) => InputTypeComposer; getOrCreateETC: (name: string, onCreate: () => EnumTypeComposerAsObjectDefinition) => EnumTypeComposer; }; export declare function prepareCommonOpts(schemaComposer: SchemaComposer, opts?: any): CommonOpts; export declare function getTypeName(name: string, opts: any): string; export declare function desc(str: string): string; export declare function reorderKeys>(obj: T, names: string[]): T; export declare type fetchElasticMappingOptsT = { elasticIndex: string; elasticType: string; elasticMapping: ElasticMappingT; elasticClient: any; }; export declare function fetchElasticMapping(opts: fetchElasticMappingOptsT): Promise; //# sourceMappingURL=utils.d.ts.map