/** * GraphQL change rules (change: add-contract-graph-projection, GraphQL phase). * * The GraphQL rows of the closed rule table in `contract-diff.ts`, over two merged schemas * (`mergeGraphqlSchema`). Operations are matched by root KIND and field name — a client writes * `query { order }`, never the root type's name, so renaming `Query` to `RootQuery` changes * nothing on the wire. Types are matched by name. * * Nullability follows variance: an OUTPUT may become stricter (`String` → `String!` is safe for * every reader) and never looser; an INPUT may become looser (`String!` → `String`) and never * stricter. Anything compared only by hash — a directive other than `@deprecated` — is * `schema-unassessed`, never silently "no change". */ import { type GqlSchema, type GqlUniverseSchema } from '../../analyzer/contract/graphql.js'; import { type ContractChange } from './contract-diff.js'; /** Compare the merged GraphQL schemas of two revisions, WITHIN one universe. */ export declare function diffGraphql(base: GqlSchema, head: GqlSchema): ContractChange[]; /** * Compare two revisions universe by universe (change: scope-graphql-schema-universes). * * Both sides must have been partitioned with the SAME project roots, so a universe key means the * same project on each side. A universe present on one side only is compared against an empty * schema — a whole project added or removed — which is exactly what the rule table already says. * That empty schema carries NO root names (see `emptyGqlSchema`): GraphQL's defaults there would * let a type NAMED `Mutation` in a project with no mutation root be skipped as a root, so its * removal would never be graded. */ export declare function diffGraphqlUniverses(base: readonly GqlUniverseSchema[], head: readonly GqlUniverseSchema[]): ContractChange[]; //# sourceMappingURL=graphql-diff.d.ts.map