import type DateTime from './DateTime.js'; import { type Localization } from './localization.js'; export default class Duration { millis: number; /** * Create a new Duration instance * * @param duration - The duration in milliseconds */ constructor(millis: number); /** * Calculate the duration between two dates * * @param {DateTime} from - The start date * @param {DateTime} to - The end date */ static from(from: DateTime, to: DateTime): Duration; /** * Calculate the duration from now to a date * * @param {DateTime} to - The end date */ static toNow(to: DateTime): Duration; get seconds(): number; get minutes(): number; get hours(): number; get days(): number; get weeks(): number; toStrByDays(lang?: string | Localization | null): string | null; toStr(lang?: string | null): string | null; } //# sourceMappingURL=Duration.d.ts.map