/**
* Simple in-memory TTL cache.
*/
export declare class Cache<T = any> {
private store;
private defaultTtlMs;
constructor(defaultTtlMs?: number);
get(key: string): T | undefined;
set(key: string, value: T, ttlMs?: number): void;
has(key: string): boolean;
delete(key: string): boolean;
clear(): void;
size(): number;
/**
* Evict expired entries.
*/
evictExpired(): number;
}
/**
* Command result cache — stores execCommand results keyed by command + cwd.
*/
export declare const commandCache: Cache<string>;
//# sourceMappingURL=cache.d.ts.map