/** * `lyse add git-hook` — install a pre-commit hook that surfaces design-system * drift in *staged* files before each commit (`lyse audit --staged`). * * Advisory by design: the hook never blocks a commit (`|| true`) — it surfaces * drift so the developer (or their coding agent) can fix it, matching Lyse's * "diagnose, don't gate" philosophy. Bypass entirely with `git commit --no-verify`. * * Mirrors the `add-ci-gate` pattern: inlined template, idempotent, never * clobbers a pre-existing hook without `--force`. */ export declare class AddGitHookError extends Error { name: string; } export interface AddGitHookOptions { /** Repo root (must be inside a git repository). */ cwd: string; /** Lyse CLI version the hook should pin (default: the running CLI version). */ lyseVersion?: string; /** Replace a pre-existing (non-managed) pre-commit hook. */ force?: boolean; } export interface AddGitHookResult { written: string[]; skipped: { path: string; reason: string; }[]; } export declare function runAddGitHook(opts: AddGitHookOptions): Promise;