import { UnitIdentifier } from './models.js'; export interface FormatOptions { dateTimeFormatOptions?: DateTimeFormatOptions; numberFormatOptions?: NumberFormatOptions; listFormatOptions?: ListFormatOptions; relativeTimeFormatOptions?: RelativeTimeFormatOptions; } interface BaseFormatOptions { locale?: Intl.Locale | Intl.UnicodeBCP47LocaleIdentifier; } export interface DateTimeFormatOptions extends Omit, BaseFormatOptions { dateStyle?: 'iso8601' | Intl.DateTimeFormatOptions['dateStyle']; } export declare function parseDate(value: number | string | Date): Date | null; export declare function formatDate(input: number | string | Date, options?: DateTimeFormatOptions): string; export interface NumberFormatOptions extends Intl.NumberFormatOptions, BaseFormatOptions { unit?: UnitIdentifier; } export declare function formatNumber(input: number | string, options?: NumberFormatOptions): string; export interface ListFormatOptions extends Intl.ListFormatOptions, BaseFormatOptions { } export declare function formatList(input: string[], options?: ListFormatOptions): string; declare const TIME_UNIT_MAP: { readonly second: { readonly max: 59000; readonly value: 1000; }; readonly minute: { readonly max: 2760000; readonly value: 60000; }; readonly hour: { readonly max: 72000000; readonly value: 3600000; }; readonly day: { readonly max: 518400000; readonly value: 86400000; }; readonly week: { readonly max: 2419200000; readonly value: 604800000; }; readonly month: { readonly max: 28512000000; readonly value: 2592000000; }; readonly year: { readonly max: number; readonly value: 31536000000; }; }; export interface RelativeTimeFormatOptions extends Intl.RelativeTimeFormatOptions, BaseFormatOptions { minUnit?: keyof typeof TIME_UNIT_MAP; } export declare function formatRelativeTime(input: number | string | Date, options?: RelativeTimeFormatOptions): string; export {}; //# sourceMappingURL=format.d.ts.map