/** * Pattern Matching Utilities for Hooks * * Implements tool name pattern matching following Claude Code's behavior: * - Pipe-separated tool names: "write_file|edit_file" * - Wildcard: "*" or empty string * - Regex patterns: ".*_file" * - Case-sensitive matching */ import type { HookMatcher } from "@/types/hooks.js"; import type { Hook } from "@/types/hooks.js"; /** * Check if a tool name matches a pattern * * @param toolName - The tool name to match (e.g., "write_file") * @param pattern - The pattern to match against * @returns true if the tool name matches the pattern */ export declare function matchesToolPattern(toolName: string, pattern?: string): boolean; /** * Find all hooks that match a given tool name * * @param matchers - Array of hook matchers to search * @param toolName - The tool name to match * @returns Array of all matching hooks (flattened) */ export declare function findMatchingHooks(matchers: HookMatcher[] | undefined, toolName: string): Hook[];