import { unset } from './utils.js'; /** Nominal type of the {@link unset} sentinel. */ export type Unset = typeof unset; /** * Common shape for a possibly-present value with a timestamp. Produced by * `Cache.get(key)` (from persistent storage or in-memory) and consumed * internally by Resource's per-params cache slots. * * @template T The payload type when present. */ export type Stored = { /** The payload, or {@link unset} when nothing is recorded. */ readonly data: T | Unset; /** When the payload was recorded, or `null` when nothing is recorded. */ readonly at: Temporal.Instant | null; };