import Interval from "./Interval"; /** * Class Day, represents a typical day */ declare class Day { private _intervals; private _nextInterval; constructor(); /** * @return This day, as a boolean array (minutes since midnight). True if open, false else. */ getAsMinutesArray(): any[]; /** * @param clean Clean intervals ? (default: false) * @return The intervals in this week */ getIntervals(clean?: any): Interval[]; /** * Add a new interval to this week * @param interval The new interval * @return The ID of the added interval */ addInterval(interval: any): number; /** * Edits the given interval * @param id The interval ID * @param interval The new interval */ editInterval(id: any, interval: any): void; /** * Remove the given interval * @param id the interval ID */ removeInterval(id: any): void; /** * Redefines this date range intervals with a copy of the given ones */ copyIntervals(intervals: any): void; /** * Removes all defined intervals */ clearIntervals(): void; /** * Is this day defining the same intervals as the given one ? */ sameAs(d: any): any; } export default Day;