import { type ComponentPropsWithRef, type ReactNode } from 'react'; import { type DateTimeStyle, type TimeValue } from '../format.js'; export type { TimeValue }; import { useClock } from './clock.js'; export { useClock }; /** `long` reads "5 minutes ago" or "yesterday" in the host's locale (UIProvider's `locale`); * `compact` reads "5m", "in 3h", then a date such as "Sep 4" once a week away, for a row with * little room. */ export type RelativeTimeFormat = 'long' | 'compact'; /** How long ago, or until, `value` is, kept current as time passes. Empty for * a missing or invalid time. */ export declare function useRelativeTime(value: TimeValue, format?: RelativeTimeFormat): string; /** Any other attribute and the ref reach the `