declare const HOOK_MARKER = "# gsd-munch: auto re-index on commit"; /** * Installs a post-commit hook in the given git repo that re-indexes changed files * using the jCodeMunch venv Python directly (bypassing MCP protocol). * * @param repoRoot Absolute path to the git repository root * @param venvPythonPath Absolute path to the venv Python binary * @param pkgPythonDir Absolute path to the package python/ dir (PYTHONPATH) * @returns 'installed' — hook was created/appended successfully * 'already_present' — hook already has the gsd-munch marker (idempotent) * 'skipped' — .git/hooks/ directory not found (not a git repo) */ declare function installPostCommitHook(repoRoot: string, venvPythonPath: string, pkgPythonDir: string): 'installed' | 'already_present' | 'skipped'; /** * Removes the gsd-munch post-commit hook block from a git repo's post-commit hook. * If the hook file only contained the gsd-munch block (plus optional shebang), deletes the file. * * @param repoRoot Absolute path to the git repository root * @returns true if the hook block was found and removed, false otherwise */ declare function removePostCommitHook(repoRoot: string): boolean; declare const VERSION = "0.10.0"; export { HOOK_MARKER, VERSION, installPostCommitHook, removePostCommitHook };