/** * PreToolUse input parsing and signal extraction */ import type { PreToolUseInput, ExtractedSignals } from './types.js'; /** * Detects whether parsed JSON data is from a PreToolUse hook * by checking for the presence of a string `tool_name` field. */ export declare function isPreToolUseInput(data: unknown): boolean; /** * Parses PreToolUse hook input from a JSON string. * * @param jsonString - Raw JSON string from stdin * @returns Validated PreToolUseInput * @throws Error if input is empty, invalid JSON, missing tool_name, or unsupported tool */ export declare function parsePreToolUseInput(jsonString: string): PreToolUseInput; /** * Extracts file-path-based signals from tool_input. * * @param toolInput - The tool_input object from PreToolUse stdin * @param projectDir - The project directory to strip from absolute paths * @returns ExtractedSignals with words, extensions, and paths from the file path */ export declare function extractToolSignals(toolInput: Record, projectDir: string): ExtractedSignals; //# sourceMappingURL=tool-input.d.ts.map