import { HookMode } from '../core/types'; export type { HookMode }; export type ShimStaleDecision = 'allow-cure' | 'pass' | 'deny'; export declare function shimStaleRecoveryDecision(toolName: string, command: string, filePath: string): ShimStaleDecision; /** * Shared entry point for all three Claude Code PreToolUse adapters. `mode` selects which tool kinds * to validate; payloads outside the mode's scope pass through (emitAllow). Blocks by emitting a * PreToolUse `permissionDecision:"deny"` JSON on stdout (exit 0) — see claude-code-response.ts. Fails * CLOSED on any unexpected crash (emits a deny) so a broken hook never silently lets an edit through, * and the reason now surfaces in the Claude Code UI instead of being hidden on a stderr+exit-2 block. */ export declare function runMain(mode: HookMode): Promise;