/** * Copyright (c) 2026, Salesforce, Inc., * All rights reserved. * For full license text, see the LICENSE.txt file */ import { type GraphQLSchema } from "graphql"; export interface ValidationError { message: string; locations?: { line: number; column: number; }[]; } /** * Validates a complete GraphQL query string against a schema. * Uses graphql-js's parse() + validate() for comprehensive checking. */ export declare function validateQuery(schema: GraphQLSchema, queryString: string): ValidationError[]; export interface InputValidationError { path: string; message: string; } /** * Validates a JSON value against a named input type from the schema. * Recursively checks field names, nested types, and basic type compatibility. */ export declare function validateInputValue(schema: GraphQLSchema, typeName: string, value: unknown): InputValidationError[];