/** * CLI cache subcommands: status, clear, verify. * * The local mirror is invisible by design — it just makes reads fast and * keeps mail readable offline. These commands are how a user sees what it * holds, how much disk it costs, and how to reclaim that space. * * Everything here is safe: the mirror is regenerable, so `clear` costs time * (a resync) and never data. */ import { type CacheStats } from '../cache/store.js'; import { loadConfig } from '../config/loader.js'; export type CacheSubcommand = 'status' | 'clear' | 'verify'; export interface CacheArgs { subcommand: CacheSubcommand; account?: string; json: boolean; yes: boolean; help: boolean; error?: string; } export declare function parseCacheArgs(argv: string[]): CacheArgs; /** Human-readable age, so "when did this last sync" reads at a glance. */ export declare function formatDuration(ms: number | undefined): string; export interface CacheSettingsView { enabled: boolean; maxSizeMb: number; mailboxes: string[]; } /** Render `cache status` for a terminal. */ export declare function formatCacheStatus(stats: CacheStats, settings: CacheSettingsView): string; /** * Cache settings, defaulted when no usable config exists. * * Reclaiming local disk or inspecting what is cached must not require working * mail credentials: the cache is a local artifact that outlives any account, * and a user whose config is missing or broken still needs to be able to * clear it. The defaults mirror `CacheConfigSchema`. */ export declare function resolveCacheSettings(load?: typeof loadConfig): Promise; export default function runCacheCommand(argv: string[]): Promise; //# sourceMappingURL=cache-commands.d.ts.map