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