import type { Tool } from '@wrongstack/core/types'; export type DiffMode = 'unified' | 'side-by-side' | 'stat'; export interface DiffInput { path?: string | undefined; files?: string | string[] | undefined; a?: string | undefined; b?: string | undefined; staged?: boolean | undefined; mode?: DiffMode | undefined; context?: number | undefined; } export interface DiffOutput { diff: string; files: string[]; truncated: boolean; /** * The format actually produced: 'unified' or 'stat' on the git path, * 'dump' on the files-only line-numbered dump path. */ mode: string; note?: string | undefined; } export declare const diffTool: Tool; /** * True when a diff "ref" is shaped like a filesystem path that git would read * with implicit `--no-index`: absolute (`/etc/x`, `C:\x`, `\\server\x`), * drive-prefixed (`C:x`), or carrying a `..` path SEGMENT (`../x`, `a/../../x`). * Revision ranges (`main..feature`, `..feature`, `main...`) have no separator * around the dots and are unaffected. */ export declare function refLooksLikeOutsidePath(ref: string): boolean; //# sourceMappingURL=diff.d.ts.map