import { DocumentNode, GraphQLSchema } from "graphql"; import { DiagnosticsWithoutLocationResult } from "../utils/DiagnosticError.js"; /** * Surprisingly, the GraphQL spec (and therefore graphql-js) does not enforce * that the types of arguments passed to directives used within the schema are * valid with respect to the directive's schema definition. * * However, we believe that if Grats knows, or can know, something is invalid at * build time it should report that as an error at build time rather than waiting * for a runtime error. * * Therefore, this validation implements the validation which we believe should be * part of the GraphQL spec: Enforcing that for every directive used in the schema, * its arguments are valid with respect to the directive's schema definition. */ export declare function validateDirectiveArguments(schema: GraphQLSchema, ast: DocumentNode): DiagnosticsWithoutLocationResult;