import { Command } from "commander"; interface CacheScope { projectDir: string; global?: boolean; } /** All cache directories in scope, in deletion order. Pure — no I/O side effects. */ export declare function collectCacheTargets(scope: CacheScope): string[]; /** * Recursive byte size of a path (0 if absent). Uses `lstat` and does NOT follow * symlinks — project `.skaile/cache/sources/` entries are symlinks into the * global cache, so following them would double-count (and a symlink cycle would * loop). Symlinks contribute 0; the global cache is sized directly. */ export declare function dirSize(target: string): number; /** Delete the targets that exist. Returns the ones actually removed (empty in dry-run). */ export declare function removeCacheTargets(targets: string[], opts: { dryRun: boolean; }): string[]; /** * Build the `skaile cache` command group: `clean` (reclaims project cache, or * project+global with `--global`; confirms unless `--yes`; `--dry-run` previews), * `dir` (prints resolved cache roots), and `size` (per-dir disk usage). Never * targets authored content or state — see {@link collectCacheTargets}. */ export declare function makeCacheCommand(): Command; export {}; //# sourceMappingURL=cache.d.ts.map