/** The git questions the CLI asks about its checkout. */ export declare class Git { private readonly cwd; constructor(cwd: string); headCommit(): Promise; /** The PR source branch in CI, or the checked-out branch locally. */ branch(env?: Env): Promise; /** * Where the checkout stands, read once. The marker stamps the commit on a * comment, the pull request section picks its host from the remote, and the * checkpoint keeps both for the next round — one set of git calls for all three. */ repo(): Promise; /** * The files this change touched. A later round counts from the commit the last * round ran on; the first round, or a `since` the checkout cannot reach (a * force-push), counts from the merge base with the target branch. */ changes(since: string | null, env: Env): Promise; /** The target branch, as the CI names it. */ private baseBranch; private diff; private reachable; /** Trimmed stdout, or null when git fails or says nothing. */ private read; private git; } type Env = Record; export interface Repo { commit: string | null; branch: string | null; remote: string | null; } export interface Changes { /** Null when git could not say. */ files: string[] | null; /** The commit or branch they were counted from. */ from: string; error?: string; } export {};