import { GitHubGraphQLError, GitHubResponseMetadata } from "../githubTypes.js"; import { RequestErrorKind } from "../types.js"; import { JsonObject } from "@codingame/monaco-vscode-github-service-override/vscode/vs/platform/github/common/client/types"; export interface GraphQLRequest { readonly query: string; readonly variables?: JsonObject; } export interface GraphQLResponse { readonly data: unknown; readonly errors: readonly GitHubGraphQLError[]; } /** Selectors and extensions could change the executed operation independently of the query prefix. */ export declare function parseGraphQLRequest(value: unknown): GraphQLRequest; /** Retains partial data and full error objects for legacy callers and transport quota processing. */ export declare function parseGraphQLResponse(value: unknown): GraphQLResponse; export declare function getGraphQLErrorKind(errors: readonly GitHubGraphQLError[]): RequestErrorKind; export declare function throwGraphQLErrors(errors: readonly GitHubGraphQLError[], statusCode: number, responseBody?: string, responseMetadata?: GitHubResponseMetadata): void;