import type { RunTextCommand } from '../gh-cli/exec.mts'; import type { LivePullRequest } from './pr-live.mts'; /** What the policy's `validatePullRequest` learns about the size of the change. */ export type DiffSize = { additions: number; deletions: number; changedFiles: number; source: 'github' | 'git'; } | { unavailable: string; }; export declare const DIFF_MAX_OUTPUT: number; /** Sums `git diff --numstat` output; a binary file (`-`) counts as a file with no lines. */ export declare function parseNumstat(output: string): DiffSize; /** GitHub's own counts for a live pull request, else the local numstat. Never throws. */ export declare function diffFor(git: RunTextCommand, live: LivePullRequest | undefined, base: string): Promise;