/** * Code Shaper — skeleton extraction for large/complex functions. * * Strips implementation noise (logging, inline comments, blank lines) * while preserving the logical skeleton: * - function/class/method signatures * - control flow: if/else, switch, for/while, try/catch * - return and throw statements * - call expressions and variable declarations * * Complementary to the call-graph subgraph extractor: * - subgraph gives TOPOLOGY (who calls whom) * - skeleton gives INTERNAL STRUCTURE (how the orchestrator is sequenced) * * Works on raw source text without tree-sitter, covering all supported languages. */ /** * Strip implementation noise from source code. * * Returns a skeleton that preserves structure (signatures, control flow, * calls, returns) while removing logs and non-docstring comments. * * The returned skeleton is always shorter than or equal to the original. */ export declare function getSkeletonContent(source: string, language: string): string; export declare function detectLanguage(filePath: string): string; /** * Returns true when the skeleton achieves a meaningful size reduction * (at least 20% smaller than the original). * Used to decide whether including the skeleton is worth the token cost. */ export declare function isSkeletonWorthIncluding(original: string, skeleton: string): boolean; //# sourceMappingURL=code-shaper.d.ts.map