/** Line numbers (1-based) that are new or changed in each file, keyed by path relative to `cwd`. */ export type ChangedLines = Map>; export declare function git(params: { args: readonly string[]; cwd: string; }): string; /** * Resolves the commit to compare against: `base` when given, else the pull request base from * GitHub Actions, else the remote default branch. Returns its merge base with HEAD. */ export declare function resolveMergeBase(params: { base: string | undefined; cwd: string; eventPath: string | undefined; }): string; /** * Compares the working tree under `cwd`, including uncommitted and untracked files, with * `mergeBase`, and returns the changed lines of files whose path matches `include`. */ export declare function readChangedLines(params: { cwd: string; include: RegExp; mergeBase: string; }): ChangedLines;