/** * Time-of-day greeting key. * Maps to bundled i18n keys in `_global` namespace: goodMorning / goodAfternoon / goodEvening. */ export type TimeOfDayKey = 'goodMorning' | 'goodAfternoon' | 'goodEvening'; /** * Returns the i18n key for a time-of-day greeting based on the given date's hour. * * - 00:00 - 11:59 → 'goodMorning' * - 12:00 - 17:59 → 'goodAfternoon' * - 18:00 - 23:59 → 'goodEvening' * * Pure function (testable). Defaults to current local time. * * @example * import { getTimeOfDayKey } from 'valtech-components'; * * const key = getTimeOfDayKey(); // 'goodMorning' | 'goodAfternoon' | 'goodEvening' * const text = i18n.t(key); // 'Buenos días' | 'Buenas tardes' | 'Buenas noches' */ export declare function getTimeOfDayKey(date?: Date): TimeOfDayKey; /** Hora corta local, ej. "14:05". */ export declare function formatClockTime(value: Date | string | undefined | null, locale?: string): string; /** * Etiqueta corta para listas de conversaciones (estilo Telegram/WhatsApp): * hoy → hora ("14:05"), ayer → label `yesterday`, esta semana → día de semana, * más viejo → fecha corta. `labels.today/yesterday` se inyectan ya traducidos. */ export declare function formatRelativeTime(value: Date | string | undefined | null, locale?: string, labels?: { today?: string; yesterday?: string; }): string; /** * Etiqueta para separadores de fecha dentro de un chat: "Hoy" / "Ayer" / * fecha larga ("12 de junio de 2026"). `labels.today/yesterday` ya traducidos. */ export declare function formatDateSeparator(value: Date | string | undefined | null, locale?: string, labels?: { today?: string; yesterday?: string; }): string;