import { Config } from './config.js'; export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'; export interface RequestOptions { method?: HttpMethod; headers?: Record; params?: Record; body?: any; timeout?: number; responseType?: 'json' | 'text' | 'arraybuffer' | 'blob' | 'document' | 'redirect'; } export declare class GitHubError extends Error { status: number; data?: any; constructor(message: string, status: number, data?: any); } /** * Client for making GitHub API requests */ export declare class GitHubClient { private config; constructor(config: Config); /** * Perform GitHub API request */ request(path: string, options?: RequestOptions): Promise; /** * Add query parameters to request URL */ private addQueryParams; /** * GET request helper */ get(path: string, options?: Omit): Promise; /** * POST request helper */ post(path: string, body?: any, options?: Omit): Promise; /** * PUT request helper */ put(path: string, body?: any, options?: Omit): Promise; /** * PATCH request helper */ patch(path: string, body?: any, options?: Omit): Promise; /** * DELETE request helper */ delete(path: string, options?: Omit): Promise; }