/** * Timezone Display Formatting Service * * Converts UTC timestamps to user's local timezone for display. * Storage timestamps remain UTC — this is display-layer only. * * Config chain: .gitmem/config.json → TZ env var → UTC (default) */ import type { ThreadObject } from "../types/index.js"; /** Get the configured timezone. Loads once from config chain. */ export declare function getTimezone(): string; /** * Format a date-only string (YYYY-MM-DD) for display. * * When timezone is UTC (default): returns original string unchanged. * When timezone configured: returns "Feb 9, 2026" format. * * Does NOT shift the date to another timezone — the input is * treated as a calendar date, not a UTC midnight timestamp. */ export declare function formatDate(dateStr: string): string; /** * Format a full ISO timestamp for display. * * When timezone is UTC (default): returns original string unchanged. * When timezone configured: returns "Feb 9, 2026, 1:45 PM EST" format. */ export declare function formatTimestamp(isoStr: string): string; /** * Format a ThreadObject's timestamps for display. * Returns original reference when UTC (no allocation). * Returns a shallow copy with formatted dates when timezone configured. */ export declare function formatThreadForDisplay(thread: ThreadObject): ThreadObject; /** Reset cached timezone (for testing). */ export declare function resetTimezone(): void; //# sourceMappingURL=timezone.d.ts.map