import { GenerationalCache } from '@asamuzakjp/generational-cache'; import { Options } from './typedef.js'; /** * CacheItem */ export declare class CacheItem { #private; constructor(item: unknown); get item(): unknown; } export declare const genCache: GenerationalCache; /** * set cache * @param key - cache key * @param value - value to cache * @returns void */ export declare const setCache: (key: string, value: unknown) => void; /** * get cache * @param key - cache key * @returns cached item or false otherwise */ export declare const getCache: (key: string) => CacheItem | false; /** * create cache key * @param keyData - key data * @param [opt] - options * @returns cache key */ export declare const createCacheKey: (keyData: Record, opt?: Options) => string;