/** * Represents parts of a recurring period */ export declare enum TimePart { Second = 0, Minute = 1, Hour = 2, Day = 3, Month = 4, Quarter = 5, Year = 6 } /** * Days of a week */ export declare enum DayOfWeek { Monday = 1, Tuesday = 2, Wednesday = 3, Thursday = 4, Friday = 5, Saturday = 6, Sunday = 0 } declare type OmitFunctions = Omit; /** * Provides simple API to work with time of a day separately from Dates */ export declare class TimeOfDay { hour: number; minute: number; second?: number; constructor(timeOfDay: Partial>); /** * Returns string of time of day in "HH:mm:ss" format * * @param timeOfDay TimeOfDay value * @returns Formatted string */ static toTimeString(timeOfDay: TimeOfDay): string; /** * Converts TimeOfDay to Date * * @param timeOfDay TimeOfDay value * @returns Date */ static toLocalDate(timeOfDay: TimeOfDay): Date; /** * Parses TimeOfDay from Date of time string of "HH:mm:ss" format * * @param value * @returns */ static parse(value: string | Date): TimeOfDay; /** * Treats current value as UTC and converts into current user's timezone * * @returns */ toLocal(): TimeOfDay; /** * Treats current value as in local timezone and converts to UTC * * @returns */ toUtc(): TimeOfDay; /** * Returns the stored time value in milliseconds. * * @returns */ valueOf(): number; } export interface DailySchedule { days: DayOfWeek[]; timeOfDay: TimeOfDay; } export {};