export declare const GITHUB_API_BASE = "https://api.github.com"; export declare const GITHUB_API_VERSION = "2022-11-28"; export interface GitHubTransport { get(path: string, params?: Record): Promise; request(method: string, path: string, body?: unknown, params?: Record, headers?: Record): Promise; requestWithResponse?(method: string, path: string, body?: unknown, params?: Record, headers?: Record): Promise; } export interface GitHubResponse { data: unknown; status: number; headers: Record; } export declare class HttpGitHubTransport implements GitHubTransport { readonly baseUrl: string; private readonly kit; constructor(opts: { token: string; baseUrl?: string; }); get(path: string, params?: Record): Promise; request(method: string, path: string, body?: unknown, params?: Record, headers?: Record): Promise; requestWithResponse(method: string, path: string, body?: unknown, params?: Record, headers?: Record): Promise; } export declare class GitHubApiError extends Error { readonly status: number; constructor(message: string, status: number); } export interface GitHubTreeItem { path: string; type: 'blob' | 'tree' | 'commit'; sha: string; size?: number; } export interface GitHubRepoInfo { default_branch: string; } export declare function fetchRepoInfo(transport: GitHubTransport, owner: string, repo: string): Promise; export declare function fetchTree(transport: GitHubTransport, owner: string, repo: string, ref: string): Promise<{ tree: GitHubTreeItem[]; truncated: boolean; }>; export declare function fetchDirTree(transport: GitHubTransport, owner: string, repo: string, treeSha: string): Promise; export declare function fetchBlob(transport: GitHubTransport, owner: string, repo: string, sha: string): Promise; export interface GitHubCodeSearchResult { path: string; sha: string; } export declare function searchCode(transport: GitHubTransport, owner: string, repo: string, query: string, pathFilter?: string): Promise; //# sourceMappingURL=client.d.ts.map