export type FileSource = "worktree" | "index"; /** Read a repo-relative file from the worktree or the git index. */ export declare function readRepoText(root: string, relPath: string, source?: FileSource): string | null; /** True when the worktree (or index) bytes differ from HEAD, including new untracked files. */ export declare function pathDiffersFromHead(root: string, relPath: string, source?: FileSource): boolean; /** The given paths that git ignores; tracked paths never count. Empty outside a repository. */ export declare function gitIgnoredPaths(root: string, relPaths: string[]): Set; /** True when the bytes are not text: they hold a NUL, as compiled and media files do. */ export declare function isBinaryText(content: string): boolean; /** Paths in the git index; empty outside a repository. */ export declare function trackedPaths(root: string): string[];