/** * Inspection and cleanup helpers for the AFT plugin's LSP cache. * * Two roots are populated by the plugin auto-installer at startup: * * /lsp-packages// ← npm installs * /lsp-binaries// ← GitHub-release downloads * * The CLI reports their disk usage in `aft doctor` and can purge them via * `aft doctor --force`. Purging is non-destructive in the sense that the * plugin will simply re-install whatever the project needs on next session; * it does not delete user-installed binaries (those live on PATH). */ export interface LspCacheEntry { /** Display name (npm package name or GitHub server id). */ name: string; /** Absolute path to the entry root. */ path: string; /** Total bytes occupied by this entry. */ size: number; } export interface LspCacheReport { /** npm-installed servers (`/lsp-packages/`). */ npm: { path: string; entries: LspCacheEntry[]; totalSize: number; }; /** GitHub-installed servers (`/lsp-binaries/`). */ github: { path: string; entries: LspCacheEntry[]; totalSize: number; }; /** Combined size of both subtrees. Convenience for the doctor display. */ totalSize: number; } /** Build a full inspection report for both LSP cache subtrees. */ export declare function getLspCacheReport(): LspCacheReport; export interface ClearResult { cleared: { name: string; path: string; size: number; }[]; errors: { path: string; error: string; }[]; totalBytes: number; } /** * Remove every entry under both LSP cache subtrees. * * Returns metadata for the doctor output (number of entries cleared, bytes * reclaimed, individual failures). Errors don't abort — we want to clean * as much as possible even when some directories are locked or have unusual * permissions. */ export declare function clearLspCaches(): ClearResult; //# sourceMappingURL=lsp-cache.d.ts.map