export * from './number'; export type DurationUnit = 'y' | 'M' | 'w' | 'd' | 'h' | 'm' | 's'; export interface DurationLabel { short?: string; /** The singular word in `long` mode. */ one?: string; /** The plural word in `long` mode. */ other?: string; } export interface FormatDurationOptions { /** Spell the units out and separate them with commas: "2 hours, 5 minutes". */ long?: boolean; /** Keep only the N largest non-zero units, so a reading stays the same width as it grows. */ maxUnits?: number; /** The units to write, `['d', 'h', 'm', 's']` by default; what is smaller than the last one is dropped. `m` is minutes while `M` is months. */ units?: DurationUnit[]; /** What each unit is written as, for a locale that does not read them in English: `{ d: { short: 'j', one: 'jour', other: 'jours' } }`. Relabelled output no longer round-trips through `parseDuration`. */ labels?: Partial>; } /** A duration in milliseconds as text such as `1d 7h 30m` (negative ones keep their sign); in short mode with the default labels, `parseDuration` reads it back. */ export declare function formatDuration(ms: number, { long, maxUnits, units, labels }?: FormatDurationOptions): string; export interface InDaysOptions { /** The compact register a dense strip reads in: `in 3d` rather than `in 3 days`. */ short?: boolean; } /** A day count as when it lands. */ export declare function inDays(days: number, { short }?: InDaysOptions): string; //# sourceMappingURL=index.d.ts.map