/**
* `gatherCodeReferences` — collects `{ touchedFiles, prUrl, prDiffSummary }`
* for the in-flight branch.
*
* - `prUrl` — open PR for `repo:branch`, or `null`
* - `touchedFiles` — `gh pr diff --name-only` when PR exists, else
* `git diff --name-only ...
` against the
* configured `baseBranch`. Empty array (never null) when
* no diffs.
* - `prDiffSummary` — first 4 KiB of `gh pr diff --patch` plus optional
* `…[truncated]` suffix. `null` when no PR.
*
* Returns `null` when not on a feature branch (i.e. branch matches the base).
*/
import type { CommandRunner, GhWrapper } from '@generacy-ai/cockpit';
export interface CodeReferences {
touchedFiles: string[];
prUrl: string | null;
prDiffSummary: string | null;
}
export interface GatherCodeReferencesInput {
repo: string;
branch: string;
baseBranch: string;
}
export declare function gatherCodeReferences(input: GatherCodeReferencesInput, gh: GhWrapper, runner: CommandRunner): Promise;
//# sourceMappingURL=code-references.d.ts.map