export declare const getRelativeTime: (d1: Date, d2?: Date) => string;
export declare const timeSince: (date: Date) => string;
/**
 * Format a timestamp into a compact relative string.
 *
 * Examples: "just now", "15m ago", "3h ago", "2d ago", "4w ago", "1y ago".
 */
export declare const formatRelativeTime: (value?: Date | string | number, now?: Date) => string | undefined;
/**
 * Format a duration in milliseconds into a human-readable string.
 *
 * Examples:
 * - 500 → "< 1s"
 * - 1500 → "1s"
 * - 65000 → "1m 5s"
 * - 3661000 → "1h 1m 1s"
 * - 90061000 → "1d 1h 1m"
 */
export declare const formatDurationMs: (ms: number) => string;
