/** * Unified Date Utilities for OpenMSP Platform * Provides consistent date formatting across all components */ /** * Relative display label for a ticket timestamp (ISO string). * < 1 min → "Just now" | 1-59 min → "X min ago" | 1-23 h → "X hour(s) ago" | 24+ h → "MM/DD/YYYY" */ export declare function formatTicketRelativeTime(iso: string): string; /** * Full tooltip timestamp in "MM/DD/YYYY, H:MM AM/PM" format. */ export declare function formatTicketFullTimestamp(iso: string): string; /** * Format relative time from ISO timestamp * This is the single source of truth for all relative time formatting * * @param timestamp - ISO timestamp string or Date object * @returns Formatted relative time string * * @example * formatRelativeTime('2024-01-01T12:00:00Z') // '2 hours ago' * formatRelativeTime(new Date()) // 'Just now' */ export declare function formatRelativeTime(timestamp: string | Date): string; /** * Format absolute date for display * * @param timestamp - ISO timestamp string or Date object * @param options - Intl.DateTimeFormatOptions for customization * @returns Formatted date string */ export declare function formatAbsoluteDate(timestamp: string | Date, options?: Intl.DateTimeFormatOptions): string; /** * Format timestamp with time included * * @param timestamp - ISO timestamp string or Date object * @param options - Intl.DateTimeFormatOptions for customization * @returns Formatted datetime string */ export declare function formatDateTime(timestamp: string | Date, options?: Intl.DateTimeFormatOptions): string; /** * Get time difference in human readable format (detailed) * * @param timestamp - ISO timestamp string or Date object * @returns Detailed time difference string */ export declare function getDetailedTimeDifference(timestamp: string | Date): string; /** * Check if a timestamp is today */ export declare function isToday(timestamp: string | Date): boolean; /** * Check if a timestamp is within the last N minutes */ export declare function isWithinMinutes(timestamp: string | Date, minutes: number): boolean; /** * Create a UTC timestamp string for database insertion */ export declare function createUTCTimestamp(): string; //# sourceMappingURL=date-utils.d.ts.map