/** * Hooks embedding — file-to-agent suggestions and command risk assessment. * Extracted from hooks-embedding.ts. */ export declare const AGENT_PATTERNS: Record; export declare function getFileExtension(filePath: string): string; export declare function suggestAgentsForFile(filePath: string): string[]; /** * V3: Augment agent suggestions with semantic matches from intelligence.ts ReasoningBank. * Returns null when the intelligence system is unavailable or has no relevant patterns. * Used by the prompt hook (.claude/helpers/handlers/route-handler.cjs). */ export declare function suggestAgentsFromIntelligence(task: string): Promise<{ agents: string[]; confidence: number; } | null>; /** * Mirror of FALLBACK_DESTRUCTIVE_PATTERNS in .claude/helpers/handlers/gates-handler.cjs * (the PreToolUse Bash gate). That file is a dependency-free CJS hook helper, * so the table cannot be imported here; keep the two in sync. Parity is pinned * by __tests__/mcp-tools-hooks-pre-command-risk.test.ts. */ export declare const DESTRUCTIVE_COMMAND_PATTERNS: RegExp[]; /** * Split a shell command into segments on `&&`, `||`, `;`, `|`, `&` and * newlines, ignoring separators inside quotes. `piped` marks a segment that * reads the previous segment's output. */ export declare function splitCommandSegments(command: string): Array<{ text: string; piped: boolean; }>; export declare function assessCommandRisk(command: string): { risk: string; level: number; warnings: string[]; }; //# sourceMappingURL=hooks-embedding-agents.d.ts.map