export interface RepoContext {
    /** Absolute path to the repository root (where `.git` lives). */
    dir: string;
    /** Relative path of the requested file from the repo root, POSIX-separated. */
    relpath: string;
}
/**
 * Locate the git repository containing `absPath`. Walks upward looking
 * for a `.git` directory. Returns `null` when no repository is found.
 */
export declare function findRepoContext(absPath: string): RepoContext | null;
/**
 * Read the HEAD-committed contents of `relpath` as a UTF-8 string. Returns
 * `null` if HEAD has no such file (newly added in the working copy).
 */
export declare function readHeadBlob(ctx: RepoContext): Promise<string | null>;
//# sourceMappingURL=git-service.d.ts.map