type DurationUnit = "year" | "month" | "week" | "day" | "hour" | "minute" | "second"; type DurationStyle = "long" | "short" | "narrow"; export interface FormatDurationOptions { /** The smallest unit to display * If the duration is smaller than this unit, it will output "0 \" * @default "second" */ minUnit?: DurationUnit; /** The largest unit to display * @default "year" */ maxUnit?: DurationUnit; /** The style of the duration * - long: "1 year 2 months 3 weeks 4 days 5 hours 6 minutes 7 seconds" * - short: "1 yr 2 mo 3 wk 4 days 5 hr 6 min 7 sec" * - narrow: "1y 2mo 3w 4d 5h 6m 7s" */ style?: DurationStyle; } export declare function formatDuration(seconds: number, options?: FormatDurationOptions): string; export declare function useDurationFormatter(options?: FormatDurationOptions): { format: (value: number) => string; }; export {};