export declare const fullMonthNames: string[]; interface FormatDateOption { year?: 'full' | 'short' | 'none'; month?: 'full' | 'short'; } export declare function formatTimestampToDate(date: Date, { year, month }?: FormatDateOption): string; interface FormatTimeOption extends FormatDateOption { hours?: '24hr' | '12hr'; seconds?: 'none'; } export declare function formatTimestamp(date: Date, opt?: FormatTimeOption): string; interface TimeFormatStrings { /** String for "< 1 min" when specifyUnderMinute is true */ lessThanOneMin?: string; /** Function to format seconds: (count: number) => string. Default: "{count} seconds" */ seconds?: (count: number) => string; /** Function to format minutes: (count: number) => string. Default: "{count} min" */ minutes?: (count: number) => string; /** Function to format hours: (count: number) => string. Default: "{count} h" */ hours?: (count: number) => string; /** Function to format short seconds: (count: number) => string. Default: "{count} s" */ secondsShort?: (count: number) => string; } /** * Formats seconds to mins and seconds string * - seconds = 10, output = '10 seconds' * - seconds = 20.3, output = '21 seconds' * - seconds = 20.3, specifyUnderMinute=true, output = '< 1 min' * - seconds = 60, output = '60 seconds' * - seconds = 61, output = '1 min 1 s' * - seconds = 300, output = '5 min' * - seconds = 320, output = '5 min 20 s' * - seconds = 320, omitSeconds=true, output = '6 min' * - seconds = 3600, output = '60 min' * - seconds = 3900, output = '1 h 5 min' * - seconds = 3920, output = '1 h 5 min 20 s' * * @param seconds - Number of seconds to format * @param specifyUnderMinute - If true, shows "< 1 min" for values under 60 seconds * @param omitSeconds - If true, rounds up to nearest minute * @param i18n - Optional translation strings for internationalization */ export declare function formatSecondsToReadableForm(seconds: number, specifyUnderMinute?: boolean, omitSeconds?: boolean, i18n?: TimeFormatStrings): string; export declare function formatSecondsToCountdownForm(seconds: number): string; export {}; //# sourceMappingURL=formatTimestamp.d.ts.map