/** * Multi-hop AST-based code analysis tool. * Analyzes code relationships: call graphs, type hierarchies, symbol references, * module dependencies, and exports using @ast-grep/napi. * * This is name-based (not type-resolved) analysis. See overview.md for limitations. * * @plan PLAN-20260211-ASTGREP.P07 */ import { BaseDeclarativeTool, type ToolInvocation, type ToolResult } from './tools.js'; import type { Config } from '../config/config.js'; import type { MessageBus } from '../confirmation-bus/message-bus.js'; export interface StructuralAnalysisParams { mode: string; language: string; path?: string; symbol?: string; depth?: number; maxNodes?: number; target?: string; reverse?: boolean; } export declare class StructuralAnalysisTool extends BaseDeclarativeTool { private readonly config; static readonly Name = "structural_analysis"; constructor(config: Config, _messageBus?: MessageBus); protected createInvocation(params: StructuralAnalysisParams, _messageBus?: MessageBus): ToolInvocation; }