/** * Converts duration strings into ms and future dates */ declare class Duration { /** * The offset */ offset: number; /** * The amount of nanoseconds extracted from the text. */ nanoseconds: number; /** * The amount of microseconds extracted from the text. */ microseconds: number; /** * The amount of milliseconds extracted from the text. */ milliseconds: number; /** * The amount of seconds extracted from the text. */ seconds: number; /** * The amount of minutes extracted from the text. */ minutes: number; /** * The amount of hours extracted from the text. */ hours: number; /** * The amount of days extracted from the text. */ days: number; /** * The amount of weeks extracted from the text. */ weeks: number; /** * The amount of months extracted from the text. */ months: number; /** * The amount of years extracted from the text. */ years: number; /** * Create a new Duration instance * @param pattern The string to parse */ constructor(pattern: string); /** * Get the date from now */ get fromNow(): Date; /** * Get the date from * @param date The Date instance to get the date from */ dateFrom(date: Date): Date; /** * The RegExp used for the pattern parsing */ private static readonly patternRegex; /** * The RegExp used for removing commas */ private static readonly commaRegex; /** * The RegExp used for replacing a/an with 1 */ private static readonly aAndAnRegex; } export { Duration };