import type { FileSystem } from "../ports/filesystem.js"; import type { GitClient } from "../ports/git.js"; import { OutlineDiff } from "../parser/diff.js"; export interface FileDiff { path: string; status: "modified" | "added" | "deleted"; summary: string; diff: OutlineDiff; } export interface GraftDiffRefusal { path: string; reason: string; reasonDetail: string; next: readonly string[]; actual: { lines: number; bytes: number; }; } export interface GraftDiffResult { base: string; head: string; files: FileDiff[]; refused?: GraftDiffRefusal[] | undefined; } export interface GraftDiffOptions { cwd: string; fs: FileSystem; git: GitClient; resolveWorkingTreePath: (filePath: string) => string; base?: string | undefined; head?: string | undefined; path?: string | undefined; refusalCheck?: ((filePath: string, actual: { lines: number; bytes: number; }) => GraftDiffRefusal | null) | undefined; } /** * Compute structural diffs between two git refs (or working tree). */ export declare function graftDiff(opts: GraftDiffOptions): Promise; //# sourceMappingURL=graft-diff.d.ts.map