/** * Claude Code hook injection system * Safely merges CCanywhere hooks with existing Claude Code hook configurations */ export interface HookInjectionOptions { enableStop?: boolean; createBackup?: boolean; force?: boolean; } export interface HookInjectionResult { success: boolean; message: string; backupPath?: string; hooksAdded: string[]; hooksSkipped: string[]; configPath?: string; } export interface SettingsConfig { hooks?: { [key: string]: Array<{ matcher: string; hooks: Array<{ type: string; command?: string; handler?: string; }>; }>; }; [key: string]: any; } /** * Handles injection of CCanywhere hooks into Claude Code configuration */ export declare class HookInjector { private static logger; /** * Inject CCanywhere hooks into Claude Code configuration */ static injectHooks(options?: HookInjectionOptions): Promise; /** * Remove CCanywhere hooks from Claude Code configuration */ static removeHooks(): Promise; /** * Clean up old hook-related files */ private static cleanupOldFiles; /** * Create backup of existing configuration */ private static createBackup; /** * Restore configuration from backup */ static restoreFromBackup(backupPath: string): Promise; /** * List available backups */ static listBackups(): Promise; /** * Check if CCanywhere hooks are already injected */ static areHooksInjected(): Promise; } export default HookInjector; //# sourceMappingURL=hook-injector.d.ts.map