import type { DocumentNode, ValidationRule, execute, } from "graphql"; export type Options = { context?: unknown; validationRules?: ValidationRule[]; queryParseCache?: Map | false; executor?: typeof execute; } /** * @internal */ export type SchemaResponder = { reply: (query: DocumentNode | string, variables?: Record | null, operationName?: string) => Promise; } export const createSchemaResponder = (ctx: ExecutionContext, schema: GraphQLSchema, options?: Options) => SchemaResponder; export const makeHandler = (schema: GraphQLSchema, options?: Options) => ExportedHandler;