import type { ReactNode } from 'react'; import { type ContextCardTriggerProps } from './context-card'; /** * Detailed relative time string that auto-updates every second * (e.g. "2 hours, 15 minutes, 30 seconds ago"). Used inside the hover card. */ export declare function useTimeAgo(date: number): string; /** * Short relative time string that auto-updates every minute * (e.g. "3 days ago", "5 hours ago"). Returns an empty string if `date` is * nullish. */ export declare function useShortTimeAgo(date: number | null | undefined): string; type RelativeTimeCardProps = Omit & { /** Timestamp in milliseconds to display as a relative time. */ date?: number | null; /** Custom content to render instead of the default relative time text. */ children?: ReactNode; }; /** * Relative time label that reveals a context card with detailed UTC and local * timestamps on hover. Renders a default short relative time label (e.g. * "3 days ago") when `children` is omitted; renders just the children without * the hover card when `date` is nullish. */ export declare function RelativeTimeCard({ date, children: _children, ...props }: RelativeTimeCardProps): ReactNode; /** * Wraps an already-formatted timestamp display with a relative-time hover * card. Self-mounts a {@link ContextCardProvider} when one isn't already * present so it works anywhere, but shares a provider (enabling the animated * card morph between adjacent timestamps) when rendered inside one. */ export declare function TimestampTooltip({ date, children, side, }: { date: number | Date | string | null | undefined; children: ReactNode; side?: ContextCardTriggerProps['side']; }): ReactNode; export {}; //# sourceMappingURL=timestamp-tooltip.d.ts.map