/**
 * Returns true if the given directory is part of a Git repository.
 *
 * This uses the canonical Git command `git rev-parse --is-inside-work-tree`
 * which exits with status 0 when executed anywhere inside a working tree
 * (including the repo root) and exits with a non‑zero status otherwise. We
 * intentionally ignore stdout/stderr and only rely on the exit code so that
 * this works consistently across Git versions and configurations.
 *
 * The function is fully synchronous because it is typically used during CLI
 * startup (e.g. to decide whether to enable certain Git‑specific features) and
 * a synchronous check keeps such call‑sites simple. The command is extremely
 * fast (~1ms) so blocking the event‑loop briefly is acceptable.
 */
export declare function checkInGit(workdir: string): boolean;
