import { holiday } from "../webuntis/resources/holiday.js"; /** * Wrapper around the holiday objects returned by the WebUntis API. */ export declare class Holiday { /** * The holiday's id */ readonly id: number; /** * The holiday's short name. */ readonly name: string; /** * The holiday's full name. */ readonly longName: string; /** * Start date of the holiday, formatted as `yyyy-mm-dd`. */ private startDate; /** * End date of the holiday, formatted as `yyyy-mm-dd`. */ private endDate; constructor( /** * The holiday's id */ id: number, /** * The holiday's short name. */ name: string, /** * The holiday's full name. */ longName: string, /** * Start date of the holiday, formatted as `yyyy-mm-dd`. */ startDate: string, /** * End date of the holiday, formatted as `yyyy-mm-dd`. */ endDate: string); /** * Returns the holiday's start date as a string, formatted as `yyyy-mm-dd`. * @returns the start date */ getStartDateAsString: () => string; /** * Parses the holiday's start date into a JS {@link Date} object and returns it. * @returns the date object */ getStartDateAsObject: () => Date; /** * Returns the holiday's end date as a string, formatted as `yyyy-mm-dd`. * @returns the end date */ getEndDateAsString: () => string; /** * Parses the holiday's end date into a JS {@link Date} object and returns it. * @returns the date object */ getEndDateAsObject: () => Date; /** * Creates a new instance of this class. * @param holiday the holiday returned by WebUntis. * @returns the new instance */ static from(holiday: holiday): Holiday; }