/** * Hook router — the central dispatcher for the four SpecWeave hook events. * * Reads the stdin JSON, resolves the project root (from the hook's `cwd`, * then process.cwd()), dynamically imports the matching handler and returns * a schema-valid result. Wrapped end-to-end so no hook can ever crash: * any failure returns `{}` (pass) and writes one JSONL log line. * * @module core/hooks/handlers/hook-router */ import type { HookResult } from './types.js'; /** Event names the router dispatches (for parity checks against hooks.json). */ export declare function registeredHookEvents(): string[]; /** * Route a hook event to its handler. * * @param eventType - 'session-start' | 'pre-tool-use' | 'stop' | 'pre-compact' * @param rawStdin - Raw stdin string (JSON from Claude Code) * @returns HookResult — always schema-valid, never throws */ export declare function hookRouter(eventType: string, rawStdin: string): Promise; //# sourceMappingURL=hook-router.d.ts.map