import MongoToGQL from "./mongoToGQL"; import { Logger } from "winston"; import { ApolloServerExpressConfig } from "apollo-server-express"; import { Express } from 'express'; import { Model } from "mongoose"; export interface Icontext { user: any; } export interface IreturnType { done: any; error: any; } export interface Imutation { inputType: {}; resolver: (parent?: any, args?: any, context?: any | Icontext, info?: any) => Promise; } export interface IgqlOption { Populate?: string[] | { path: string; match?: any; model?: Model; select?: any; options?: any; }[]; Auth?: boolean; } export declare const graphType: { String: string; StringRequire: string; StringArray: string; StringArrayRequire: string; Int: string; IntRequire: string; IntArray: string; IntArrayRequire: string; Date: string; DateRequire: string; DateArray: string; DateArrayRequire: string; ID: string; IDRequire: string; IDArray: string; IDArrayRequire: string; Float: string; FloatRequire: string; FloatArray: string; FloatArrayRequire: string; Boolean: string; BooleanRequire: string; BooleanArray: string; BooleanRequireArray: string; Json: string; JsonRequire: string; Upload: string; UploadRequire: string; Custom: (custom: string) => string; CustomRequire: (custom: string) => string; CustomArray: (custom: string) => string; CustomArrayRequire: (custom: string) => string; }; export interface ImongoToGQLOptions { app: Express; path?: string; modelFolderPath?: string; mutationFolderPath?: string; devWithTs?: boolean; apolloOptions?: ApolloServerExpressConfig; customResolvers?: any; context?: ({ req }: any) => Icontext; customTypeDefs?: string; modelList?: any; mutationList?: any; } export interface ImongoToGQLConverterOptions { modelFolderPath?: string; mutationFolderPath?: string; devWithTs?: boolean; customResolvers?: any; customTypeDefs?: string; modelList?: any; mutationList?: any; } interface IresultType { converted: { typeDefs: any; resolvers: any; }; pureTypeDefs: string; pureResolvers: any; } export declare function convertToGQL({ ...options }: ImongoToGQLConverterOptions): Promise; export declare function executeApolloServer({ ...options }: ImongoToGQLOptions): Promise; declare const _default: (logger?: Logger, devWithTs?: boolean) => MongoToGQL; export default _default;