import type { ExecutionEnv } from "../../internal/harness-types.js";
import { type ChangesUnavailable, type SessionChanges } from "../session-changes.js";
/** One git start's bounds on this read. */
export declare const GIT_CHANGES_START_TIMEOUT_MS = 5000;
export declare const GIT_CHANGES_START_MAX_OUTPUT_BYTES: number;
/** The git source's answer, without the request's `source` (the verb adds it). */
export type GitChangesRead = {
    readonly kind: "unavailable";
    readonly reason: Extract<ChangesUnavailable, "not_a_repository" | "repository_busy" | "git_failed">;
} | Omit<Extract<SessionChanges, {
    kind: "rows";
}>, "source"> | Omit<Extract<SessionChanges, {
    kind: "totals";
}>, "source">;
/** Read the session's uncommitted changes at `root` in `env`. `contentOf` names the rows whose texts are handed. */
export declare function readGitChanges(input: {
    env: ExecutionEnv;
    root: string;
    contentOf: ReadonlySet<string>;
    signal: AbortSignal | undefined;
}): Promise<GitChangesRead>;
