import type { GitHubItem, ChangedFile, GitOverview } from "@kenkaiiii/gg-protocol"; export type { GitHubItem, ChangedFile, GitOverview }; /** * Everything the app's Git panel shows for a project: the open issues and pull * requests on its GitHub repo, and the files changed in the working tree with * their line counts. Each half fails on its own: no `gh` (or a non-GitHub * origin) still lists the changes, and a non-git folder still lists nothing * rather than erroring. */ /** How many of each to fetch; the panel shows the newest. */ export declare const GITHUB_ITEM_LIMIT = 20; /** Parse `gh … list --json` output; anything off-shape is dropped, not trusted. */ export declare function parseGitHubItems(stdout: string): GitHubItem[]; /** * Parse `git diff --numstat HEAD` plus `git status --porcelain` into changed * files. numstat gives the counts ("-" for binary); porcelain gives the status * and the untracked files numstat never lists. */ export declare function parseChanges(numstat: string, porcelain: string): ChangedFile[]; export declare function getGitOverview(cwd: string, slug: string | null, signal?: AbortSignal): Promise;