/** * Hook Dispatcher * Executes shell hooks from Node.js */ import type { HookDispatcherOptions, HookResult } from "./types"; export interface DiscoveredHook { path: string; name: string; location: "per-repo" | "per-user" | "plugin"; } /** * Discover hook scripts for a given hook type from project and user directories. */ export declare function discoverHooks(hookType: string, cwd: string, homeDir?: string): Promise; /** * Find `plugins/babysitter-unified/hooks/hook-dispatcher.sh` by walking up from cwd. * This allows running from nested projects/fixtures inside a mono-repo. * * First checks the active harness adapter for a harness-specific path * (e.g. CLAUDE_PLUGIN_ROOT), then falls back to walking up the directory tree. * * @internal */ export declare function findHookDispatcherPath(startCwd: string): string | null; /** * Call a hook by dispatching to the shell hook-dispatcher.sh */ export declare function callHook(options: HookDispatcherOptions): Promise; //# sourceMappingURL=dispatcher.d.ts.map