/** * crewx hook install — Register crewx-hook-dispatch as a PreToolUse hook * in /.claude/settings.json and/or /.codex/hooks.json. * * Security: * - Prompts user before modifying settings (R1) * - Uses absolute path for crewx binary (PATH manipulation prevention) * - Backs up original settings files * - Preserves existing user hooks * - Never traverses parent directories — project root determined by crewx.yaml */ import { type HookProvider } from './paths'; export declare const CREWX_HOOK_COMMAND_MARKER = "crewx hook-dispatch"; export declare function resolveCrewxBinary(): string; export interface HookInstallOpts { projectRoot: string; yes: boolean; provider?: HookProvider; } export declare function handleHookInstall(opts: HookInstallOpts): Promise; export declare function handleHookInstall(args: string[]): Promise;