import { DateTime, Duration } from 'luxon'; /** A size in bytes the way a file list shows it: 512 B, 1.5 KB, 2.25 GB, * counting in 1024s. */ export declare function formatBytes(bytes: number): string; /** A count short enough for a status line: 512, 1.2K, 3.4M. `locale`, such * as `useLocale()` gives, wins over the browser's. */ export declare function formatCount(n: number, locale?: string | undefined): string; /** A whole number in full, grouped as `locale` groups it: 1,204 or 1.204. * `locale`, such as `useLocale()` gives, wins over the browser's. */ export declare function formatInteger(n: number, locale?: string | undefined): string; /** A length of time to whole seconds, in the host's locale: 45s, 2m 13s, * 1d 2h. Takes milliseconds or a luxon Duration; the sign is dropped. * `locale` wins over the duration's own and luxon's default. */ export declare function formatDuration(value: number | Duration, locale?: string | undefined): string; /** A moment as an ISO string, milliseconds, a Date or a luxon DateTime. */ export type TimeValue = string | number | Date | DateTime | null | undefined; /** The moment `value` names, or null when it is missing or invalid. */ export declare function toDateTime(value: TimeValue): DateTime | null; declare const DATE_TIME_STYLES: { readonly date: Intl.DateTimeFormatOptions; readonly short: Intl.DateTimeFormatOptions; readonly medium: Intl.DateTimeFormatOptions; readonly seconds: Intl.DateTimeFormatOptions; readonly full: Intl.DateTimeFormatOptions; }; /** How `formatDateTime` writes a moment. */ export type DateTimeStyle = keyof typeof DATE_TIME_STYLES; /** A moment in the reader's locale: `date` reads "Mar 14, 2026", `short` * "3/14/2026, 9:30 AM", `medium` "Mar 14, 2026, 9:30 AM", `seconds` adds * the seconds, and `full` reads "March 14, 2026 at 9:30 AM EDT", with the * time zone. `locale`, such as `useLocale()` gives, wins over the time's own * and luxon's default. Empty for a missing or invalid time. */ export declare function formatDateTime(value: TimeValue, style?: DateTimeStyle, locale?: string | undefined): string; /** Time left, rounded the way a countdown reads: whole seconds under a minute, * minutes and seconds under an hour, then hours and minutes. Null once only a * few seconds remain, for the caller's "almost done". `locale`, such as * `useLocale()` gives, wins over luxon's default. */ export declare function formatTimeLeft(seconds: number, locale?: string | undefined): string | null; export {};