export type DiffValueLayout = "inline" | "block"; /** * Before/after value pair. The visual diff is mirrored by a single localized * summary for screen readers. */ export type DiffValueProps = { /** Previous value. Omit, null, or blank renders the empty placeholder. */ from?: string | null; /** Proposed value. Omit, null, or blank renders the removed label. */ to?: string | null; /** * Defaults to `block` when either side exceeds ~80 characters or contains a * newline; otherwise `inline`. */ layout?: DiffValueLayout; /** Max lines before truncation in block layout. Defaults to `2`. */ truncateLines?: number; className?: string; };