export type ValidationSuccess = { valid: true; }; export type ValidationError = { valid: false; errors: QueryValidationError[]; }; export type ValidationResult = ValidationSuccess | ValidationError; export type QueryValidationError = { /** JSONPath-style location of the offending node, e.g. "$and[0].age" */ path: string; message: string; }; /** * Validates the structure of a query object against the query schema. * Returns a discriminated union: { valid: true } or { valid: false, errors[] }. * * Does NOT validate field names against a specific InputObject — it only * checks that the query itself is structurally sound (correct operator * positions, correct operand types, no unknown operators, etc.). */ export declare function validateQuery(query: unknown): ValidationResult;