import { Cacheable } from 'cacheable'; import { Keyv } from 'keyv'; /** * Options for the {@link makeCache} function. */ interface MakeCacheOptions { /** * Path to where the cache must be stored. If the path is relative, * then the cache is written to `/tmp/@figmarine/cache/${location}`. * @type {string} */ location: string; /** * TTL, in seconds, for the cache. * Pass -1 to keep files for as long as a year. * @type {number} * @default 10 */ ttl?: number; } declare function makeCache(opts: MakeCacheOptions): { cache: Cacheable; primary: Keyv; shutdownGracefully: () => Promise; }; export { type MakeCacheOptions, makeCache };