import type { DocumentNode } from 'graphql'; export type FileImporter = (path: string) => Promise; /** * Loads the graphql server, with all the user's settings * And execute the query against it * * Note that this function does NOT throw errors, even when * there is a GraphQL error. Instead, it returns the result with the graphql * error. */ export declare function executeQuery(fileImporter: FileImporter, gqlHandler: (args: any) => Promise, query: DocumentNode, variables?: Record): Promise; /** * Finds the graphql handler, returns a function * that can be used to execute queries against it * * Throws GqlHandlerImportError, so that we can warn the user (but not blow up) */ export declare function getGqlHandler(fileImporter: FileImporter): Promise<(operation: Record) => Promise>; //# sourceMappingURL=graphql.d.ts.map