import type { CacheItem, CacheItemChanged } from '../types.js'; declare class ComponentsCache { /** * stores item changed. */ itemsChanged: Array; constructor(); /** * * @param id : identifier for component * @param input : component source code location * @param output : component generated destination */ private getHashFilePath; /** * * @param cacheItem item to get from cache file system * @return cache information */ getCachedFileInfo(cacheItem: CacheItem): Promise; /** * @desc calculates the hash for a given file. Returns null if file does not exist. * @param filePath */ calculateFileHash(filePath: string): Promise; /** * @desc returns true if previous cached hash is the same than calculated hash * for the input. * @param cacheItem */ hasChanged(cacheItem: CacheItem): Promise; /** * returns all the items that changed. */ getChangedItems(): CacheItemChanged[]; /** * @desc generate cache files for all items that changed. */ generateCacheFiles(): void; /** * @desc Clear the items changed array. */ clearItemsChanged(): void; } declare const componentsCache: ComponentsCache; export default componentsCache;