import type { ASTNode, DirectiveNode } from 'graphql'; import type { ParseContextType } from '../../context/parseTypes.js'; import type { StackTrail } from '../../context/StackTrail.js'; export type RecordAppliedDirectivesArgs = { astNode: { directives?: ReadonlyArray; } | ASTNode | undefined | null; stackTrail: StackTrail; context: ParseContextType; }; /** * Reads the `directives` array off any `astNode` and records each * non-suppressed directive as a `DROPPED_DIRECTIVE` warning on the * given context. * * Use this on object/input/interface/union types and their fields so * the user sees a precise location (e.g. `User.secret`) for any * applied directive the schema-driven pipeline can't represent. * * Works defensively: nodes from a `GraphQLSchema` built via * `buildSchema` always have ASTs, but the type allows `undefined` for * pure-runtime constructions, so we guard. */ export declare const recordAppliedDirectives: ({ astNode, stackTrail, context }: RecordAppliedDirectivesArgs) => void;