/** * SymbolSurgicalContext — Surgical AST extraction tool. * * Scans a file for a specific symbol (class, function, variable, interface), * extracts its implementation, parses its AST to find workspace dependencies, * and extracts ONLY the signatures of those dependencies (not their entire files). * * Saves up to 90% of token context in LLM prompts. */ export interface SurgicalContextResult { symbolName: string; filePath: string; implementation: string; dependencies: Array<{ name: string; filePath: string; signature: string; type: string; }>; } /** * Canonicalizes a symbol's source into a token stream with comments and whitespace * stripped, for cosmetic-vs-structural freshness classification (Fase D). Two versions of * the same symbol that normalize to the same string differ only in comments/formatting — * hashing this output (instead of the raw text) is what lets checkEntryFreshness tell that * apart from a real change. Deliberately NOT alpha-equivalence aware: a renamed local * variable still normalizes to a different string and is treated as structural. */ export declare function normalizeForFreshness(source: string): string; /** * Core orchestrator for Surgical Symbol Context Extraction. */ export declare function getSymbolSurgicalContext(workspaceRoot: string, relativeFilePath: string, symbolName: string): SurgicalContextResult; //# sourceMappingURL=SymbolSurgicalContext.d.ts.map