import { StorageValue } from 'unstorage'; import { Cache, TransactionOptions } from '../../Cache'; export declare class MemoizedCache { private readonly key; private readonly opts; private readonly transform; private readonly ttl; private readonly fetch; private fetchPromise; private item; private lastUpdate; constructor(key: string, opts: TransactionOptions, transform?: (i: T | undefined) => K, ttl?: number, fetch?: () => Promise); getItem: (cache: Cache) => Promise; }