export type HooksActivationResult = { status: 'set'; repoRoot: string; } | { status: 'overwrote'; repoRoot: string; previousValue: string; } | { status: 'already-set'; repoRoot: string; } | { status: 'not-a-git-checkout'; } | { status: 'error'; message: string; }; /** Repo root inferred from this file's own location: src/service/ * git-hooks-activate.ts (or dist/service/git-hooks-activate.js post-build) * is two levels below the repo root — same convention as release.ts's * defaultCheckoutDir() and cli/index.ts's package.json lookup. */ export declare function defaultRepoRootForThisBuild(): string; /** * Idempotently set `core.hooksPath` to `scripts/git-hooks` for the git * checkout at `repoRoot` (defaults to the currently-running build's own * repo root — see defaultRepoRootForThisBuild). * * Skips silently with `not-a-git-checkout` when `repoRoot` has no `.git` * or no `scripts/git-hooks` directory — an npm-installed user's install * location has neither, and this must never surface an error or a log * line for them; there is no hook to activate. * * Never throws: any failure to invoke `git` itself (missing binary, * non-zero exit) comes back as `{ status: 'error', message }` for the * caller to log as a soft warning — this must never block `init`/`reinstall`. * * When `core.hooksPath` was already configured to something OTHER than * `scripts/git-hooks` (e.g. a dev's own husky/dotfiles setup), that value * is still overwritten — the hook must fire for the repo's own release * process to work — but the result comes back as `overwrote` (carrying * the clobbered `previousValue`) rather than `set`, so callers can log a * distinct warning instead of silently claiming a fresh activation. */ export declare function activateGitHooks(repoRoot?: string): HooksActivationResult;