@typecad/kicad-symbols
Version:
Intelligent fuzzy search for KiCad symbols with CLI interface
29 lines • 1.16 kB
TypeScript
/**
* Utility functions for cache directory management
*/
export declare class CacheUtils {
private static readonly CACHE_DIR_NAME;
/**
* Gets the shared cache directory for all instances of the application
* Creates the directory if it doesn't exist
* @returns Promise<string> Path to the cache directory
*/
static getSharedCacheDir(): Promise<string>;
/**
* Gets the default cache file path in the shared cache directory
* @param filename Optional filename, defaults to 'kicad-symbols-cache.json'
* @returns Promise<string> Full path to the cache file
*/
static getDefaultCacheFilePath(filename?: string): Promise<string>;
/**
* Gets the timestamp file path in the shared cache directory
* @returns Promise<string> Full path to the timestamp file
*/
static getTimestampFilePath(): Promise<string>;
/**
* Cleans up old cache files (optional utility for maintenance)
* @param maxAgeHours Maximum age in hours before files are considered old
*/
static cleanupOldCacheFiles(maxAgeHours?: number): Promise<void>;
}
//# sourceMappingURL=CacheUtils.d.ts.map