import { type GitHubGraphQlError } from "./errors.mts"; import { type RateLimitInfo } from "./http-utils.mts"; interface GraphQlResult { data: T; rateLimit?: RateLimitInfo; retryAfterSeconds?: number; errors?: GitHubGraphQlError[]; } export interface GraphQlRequestOptions { /** * Mutation batches use partial GraphQL data to preserve per-alias successes. * Read paths must keep the strict default so incomplete snapshots never drive * PR state transitions. */ allowPartialData?: boolean; } export declare function graphql(query: string, vars?: Record, opts?: GraphQlRequestOptions): Promise>; export declare function graphqlWithRateLimit(query: string, vars?: Record, opts?: GraphQlRequestOptions): Promise>; export {};