interface CacheEnvironment { AFT_CACHE_DIR?: string; XDG_CACHE_HOME?: string; LOCALAPPDATA?: string; APPDATA?: string; USERPROFILE?: string; HOME?: string; } /** Environment values used by OpenCode's xdg-basedir path resolution. */ export interface OpenCodePathEnvironment { XDG_CACHE_HOME?: string; XDG_CONFIG_HOME?: string; } /** Resolve OpenCode's cache root using xdg-basedir semantics on every OS. */ export declare function getOpenCodeCacheRoot(env?: OpenCodePathEnvironment, home?: string): string; export declare function getOpenCodeConfigRoot(env?: OpenCodePathEnvironment, home?: string): string; /** * Resolve the root shared by AFT's downloadable binaries and LSP artifacts. * * `AFT_CACHE_DIR` is an explicit root override. Otherwise Windows follows * LOCALAPPDATA, then APPDATA, while POSIX platforms use XDG_CACHE_HOME or * `~/.cache`. macOS intentionally follows the POSIX `~/.cache` layout: that is * where existing AFT artifacts live, so switching to `~/Library/Caches` would * strand the cache rather than consolidate it. */ export declare function getAftCacheRoot(env?: CacheEnvironment): string; /** Directory holding versioned AFT binaries. */ export declare function getAftBinaryCacheDir(env?: CacheEnvironment): string; /** Directory holding npm-installed LSP packages. */ export declare function getAftLspPackagesDir(env?: CacheEnvironment): string; /** Directory holding GitHub-installed LSP binaries. */ export declare function getAftLspBinariesDir(env?: CacheEnvironment): string; export {}; //# sourceMappingURL=cache-paths.d.ts.map