/** * Installs NightWatch into a project's `.claude/settings.json` hooks. The * merge is idempotent (re-running `init` never duplicates entries) and * preserving (existing hooks from other tools are never touched). Detection * is by command substring so users can customize flags without re-triggering * installation. */ export declare const HOOK_COMMAND = "npx --no-install nightwatch hook"; export interface InstallResult { readonly settingsPath: string; readonly added: readonly string[]; readonly alreadyPresent: readonly string[]; } export declare function installHooks(projectRoot: string): InstallResult; export interface UninstallResult { readonly settingsPath: string; readonly removed: readonly string[]; } /** Exact inverse of installHooks: ours go, every foreign hook stays untouched. */ export declare function uninstallHooks(projectRoot: string): UninstallResult; /** Hook events that currently carry a NightWatch entry (doctor uses this). */ export declare function installedHookEvents(projectRoot: string): readonly string[];