import { t as HeadersRecord } from "./http-well-known-BK9MGKQf.js"; import { i as HTTPClientConfig, r as HTTPClient, s as JsonObject } from "./http-client-BUW7Yoqd.js"; //#region src/core/graphql-client.d.ts interface GraphQLError { message: string; locations?: { line: number; column: number; }[]; path?: (string | number)[]; extensions?: Record; } interface GraphQLResponse { data?: T; errors?: GraphQLError[]; extensions?: Record; } interface GraphQLClientConfig extends Partial { enablePersistedQueries?: boolean; } /** * Lightweight GraphQL Client wrapper around HTTPClient. */ declare class GraphQLClient { private httpClient; private enablePersistedQueries; constructor(endpoint: string, config?: GraphQLClientConfig); /** * Performs a GraphQL Query. */ query(query: string, variables?: JsonObject, headers?: HeadersRecord): Promise>; /** * Performs a GraphQL Mutation. */ mutate(mutation: string, variables?: JsonObject, headers?: HeadersRecord): Promise>; private request; private persistedRequest; /** * Access the underlying HTTPClient instance. */ get client(): HTTPClient; } //#endregion export { GraphQLResponse as i, GraphQLClientConfig as n, GraphQLError as r, GraphQLClient as t }; //# sourceMappingURL=graphql-client-Bqae2zaZ.d.ts.map