UNPKG

@stacksjs/launchpad

Version:
25 lines 915 B
import type { CacheMetadata } from './types'; /** * Load cache metadata */ export declare function loadCacheMetadata(): CacheMetadata; /** * Save cache metadata */ export declare function saveCacheMetadata(metadata: CacheMetadata): void; /** * Get cached package archive path for a specific domain and version with validation */ export declare function getCachedPackagePath(domain: string, version: string, format: string): string | null; /** * Save package archive to cache with metadata */ export declare function savePackageToCache(domain: string, version: string, format: string, sourcePath: string): string; /** * Clean up old cache entries to free disk space */ export declare function cleanupCache(maxAgeDays?: number, maxSizeGB?: number): void; /** * Get cache statistics */ export declare function getCacheStats(): { packages: number, size: string, oldestAccess: string, newestAccess: string };