/** * Builds a parameterized GraphQL mutation document and its accompanying * variables payload. Argument values are passed as GraphQL variables rather * than interpolated into the query string, which lets the server coerce and * validate them by type (including enums and input objects) and keeps the * operation document constant across calls. * * @param name The mutation field name, eg `goto`. * @param args Argument values keyed by argument name. `undefined` values * are dropped. Pass `null` when the mutation takes no args. * @param fields The selection set for the mutation's response. * @param argTypes Map of argument name → GraphQL type (eg `String!`), used to * declare the operation's variables. Sourced from `ARG_TYPES`. * @param operation The GraphQL operation type. Defaults to `mutation`; pass * `subscription` to build a streaming operation. */ export declare function buildOperation(name: string, args: Record | null, fields: string, argTypes?: Record, operation?: 'mutation' | 'subscription'): { query: string; variables: Record; }; //# sourceMappingURL=builder.d.ts.map