import { TimeFormatPreset } from './presets'; export type { TimeFormatPreset }; /** * Options type for the time formatter function */ export type TimeFormatterOptions = { /** * The locale to use for the time formatter * @default "en-US" */ locale?: Intl.LocalesArgument; /** * The format preset or Intl.DateTimeFormatOptions object * - "short": 08:30 AM * - "medium": 08:30:00 AM * - Intl.DateTimeFormatOptions: Custom format (e.g., { hour: "2-digit", minute: "2-digit", hour12: false }) * @default "short" */ format?: TimeFormatPreset | Intl.DateTimeFormatOptions; }; /** * Helper function for formatting table cells with times, including i18n support. * Treats time strings as "plain times" without timezone conversion. * @param value - The time value to format (ISO time string "HH:mm:ss" or "HH:mm") * @param options - The options for the time formatter * @returns The formatted time string or null for undefined/null values */ export declare const timeFormatter: (value?: string | null, { locale, format }?: TimeFormatterOptions) => string | null;