import type { HookInput, GuardResult, GuardName } from '../../core/index.js'; import '../../core/adapters/claude-code.js'; import '../../core/adapters/cursor.js'; import '../../core/adapters/windsurf.js'; import '../../core/adapters/generic.js'; /** * Static map of which hook events each harness supports. * @deprecated Use `adapter.supportedEvents` instead. Will be removed in a future version. */ export declare const HARNESS_EVENT_SUPPORT: Record>; /** * Check if a hook event is supported by a given harness. Unknown harnesses default to supported. * @deprecated Use `adapter.supportedEvents.has(event)` instead. Will be removed in a future version. */ export declare function isEventSupported(harnessId: string, hookEvent: string): boolean; /** * Get the hooks config file path for a given harness. Returns null for unknown harnesses. * @deprecated Use `adapter.hooksConfigPath(cwd)` instead. Will be removed in a future version. */ export declare function getHooksConfigPath(cwd: string, harnessId: string): string | null; type GuardHandler = (input: HookInput, cwd: string) => Promise; /** Register a guard handler */ export declare function registerGuard(name: GuardName, handler: GuardHandler): void; /** * slope guard — Execute a guard handler. * Reads hook JSON from stdin, runs the named guard, outputs response JSON. */ export declare function guardCommand(args: string[]): Promise; export declare function normalizeHookInput(input: HookInput | null, fallbackCwd: string): HookInput; /** * slope guard list/enable/disable subcommands */ export declare function guardManageCommand(args: string[]): Promise; export declare function shouldSuppressGuardInAdhoc(name: string, cwd: string, sessionId: string): boolean; export {}; //# sourceMappingURL=guard.d.ts.map