/** * Time Utilities * * Formatting utilities for time display in CLI output. */ /** * Format ISO timestamp to relative time string * * Examples: * - "just now" (< 1 minute) * - "5m ago" (minutes) * - "2h ago" (hours) * - "3 days ago" (days) * - "2 weeks ago" (weeks) * - "1 month ago" (months) * - "1 year ago" (years) * * @param isoString ISO 8601 timestamp string * @returns Human-readable relative time */ export declare function formatRelativeTime(isoString: string): string; /** * Format duration between two timestamps * * @param startIso Start timestamp (ISO 8601) * @param endIso End timestamp (ISO 8601), defaults to now * @returns Human-readable duration string */ export declare function formatDuration(startIso: string, endIso?: string): string; /** * Format a timestamp for display * * @param isoString ISO 8601 timestamp string * @param format Output format: 'relative', 'short', 'long' * @returns Formatted time string */ export declare function formatTimestamp(isoString: string, format?: 'relative' | 'short' | 'long'): string; /** * Check if a timestamp is within a given time window * * @param isoString ISO 8601 timestamp string * @param windowMs Time window in milliseconds * @returns True if within window */ export declare function isWithinTimeWindow(isoString: string, windowMs: number): boolean; /** * Get "time ago" for session display * Similar to formatRelativeTime but more compact * * @param isoString ISO 8601 timestamp string * @returns Compact relative time (e.g., "2h 15m ago") */ export declare function formatTimeAgo(isoString: string): string; //# sourceMappingURL=time.d.ts.map