import { Moment } from 'moment-timezone'; /** * Allowed types to construct a time from. */ export type TimeLike = number | string | Moment | Time; /** * A time represents the hours and minutes of a day and can therefore be somewhere in between `00:00` and `23:59`. * * The time's value is immutable, i. e. all methods that modify the time return a new `Time` instance. * * Internally, the time's value is stored as a number of minutes. There's no implementation for seconds at this point. */ export declare class Time { private readonly value; constructor(arg?: TimeLike); /** * Add the number of minutes and return a new `Time` instance with the new value. * * This is circular, e. g. when removing 10 minutes from 00:05, the resulting * time will be 23:55, and when adding 10 mins to 23:55, it will be 00:05. */ add(mins: number): Time; /** * Same as `add` but subtracts the number of minutes. */ subtract(mins: number): Time; valueOf(): number; toJSON(): number; toString(): string; }