import type { WorldBackupErrorCode } from '../../application/ports/outbound/IWorldBackupPort.js'; export interface GitResult { code: number; stdout: string; stderr: string; timedOut: boolean; } export interface GitOptions { cwd?: string; /** Network command: adds the Authorization header for this token. */ token?: string; /** Extra variables, e.g. commit identity. */ env?: Record; timeoutMs?: number; } export declare const BACKUP_IDENTITY: { GIT_AUTHOR_NAME: string; GIT_AUTHOR_EMAIL: string; GIT_COMMITTER_NAME: string; GIT_COMMITTER_EMAIL: string; }; export declare class GitRunner { private readonly remoteBase; private localVars?; private versionOk?; constructor(remoteBase: string); run(args: string[], options?: GitOptions): Promise; /** Checks git >= 2.31 once (GIT_CONFIG_COUNT) and loads the local env var list. */ ensureVersion(): Promise; private env; private exec; } /** Error code for a failed network command. */ export declare function networkErrorCode(result: GitResult): WorldBackupErrorCode; //# sourceMappingURL=git.d.ts.map