IOweb/node_modules/@iconify/tools/lib/download/api/cache.d.ts
2026-07-03 15:07:38 -05:00

20 lines
531 B
TypeScript

import { APIQueryParams, APICacheOptions } from './types.js';
/**
* Unique key
*/
declare function apiCacheKey(query: APIQueryParams): string;
/**
* Store cache
*/
declare function storeAPICache(options: APICacheOptions, key: string, data: string): Promise<void>;
/**
* Get item from cache
*/
declare function getAPICache(dir: string, key: string): Promise<string | null>;
/**
* Clear cache
*/
declare function clearAPICache(dir: string): Promise<void>;
export { apiCacheKey, clearAPICache, getAPICache, storeAPICache };