export interface RepositoryContext { projectDir: string; commonDir: string; repository: boolean; } /** Canonical project identity; legacy non-Git v2 projects remain supported. */ export declare function resolveProjectContext(projectRoot: string): RepositoryContext; /** Git-dependent domains reject a non-repository instead of fabricating a common-dir. */ export declare function resolveRepositoryContext(projectRoot: string): RepositoryContext; export interface GitCommandResult { status: number | null; stdout: string; stderr: string; error: string | null; } export declare function runGit(cwd: string, args: string[], options?: { allowFailure?: boolean; env?: NodeJS.ProcessEnv; fallbackError?: boolean; }): string; export declare function runGitCommand(cwd: string, args: string[], env: NodeJS.ProcessEnv): GitCommandResult; export declare function runGitToFile(cwd: string, args: string[], output: number, allowFailure?: boolean): number | null; //# sourceMappingURL=git.d.ts.map