import { CacheMetadata } from './common';
/**
 * Check wether a cache entry is expired.
 *
 * @returns
 *   - `true` when the cache entry is expired
 *   - `false` when it's still valid
 *   - `"stale"` when it's within the stale period
 */
export declare function isExpired(metadata: CacheMetadata): boolean | 'stale';
/**
 * @deprecated prefer using `isExpired` instead
 */
export declare function shouldRefresh(metadata: CacheMetadata): 'now' | 'stale' | false;
