/**
 * Formatting utilities for UI display.
 *
 * Value formatting, relative timestamps, uptime display,
 * absolute timestamp formatting, and audit metadata formatting.
 *
 * @module
 */
/**
 * Format a timestamp as a relative time string.
 *
 * @returns human-friendly relative time (e.g. "2m ago", "3h ago", "5d ago", "2mo ago", "1y ago")
 */
export declare const format_relative_time: (timestamp: string | number | Date, now?: number) => string;
/**
 * Format milliseconds as a human-friendly uptime string.
 *
 * @returns human-friendly duration (e.g. "45s", "12m", "3h 15m", "2d 5h")
 */
export declare const format_uptime: (ms: number) => string;
/**
 * Truncate a string by keeping the start and end, with a separator in the middle.
 *
 * @param max_length - total length including separator
 * @returns the truncated string, or the original if it fits
 */
export declare const truncate_middle: (str: string, max_length: number, separator?: string) => string;
/**
 * Truncate a UUID for display, keeping start and end visible.
 *
 * @returns a 12-character truncated UUID like `a1b2c…7890`
 */
export declare const truncate_uuid: (uuid: string) => string;
/**
 * Format an arbitrary value for table cell display.
 */
export declare const format_value: (value: unknown) => string;
/**
 * Format a timestamp as an absolute datetime string for title attributes.
 *
 * @returns readable absolute datetime like `"2026-03-21 14:30:00 UTC"`
 */
export declare const format_datetime_local: (timestamp: string | number | Date) => string;
/**
 * Format audit event metadata for display based on event type.
 *
 * @param event_type - builtin or consumer-registered audit event type
 */
export declare const format_audit_metadata: (event_type: string, metadata: Record<string, unknown> | null) => string;
//# sourceMappingURL=ui_format.d.ts.map