import { RawScheduleItem } from "../types"; import { Base } from "./Base"; import { Schedule } from "./Schedule"; import { Session } from "./Session"; type EventFormat = "conventional" | "sprint" | "sprint_shootout" | "testing"; /** * Represents an event that belongs to a schedule. * @extends {Base} */ export declare class Event extends Base { /** * The round number of the event. * @type {number} */ roundNumber: number; /** * The country the event takes place in. * @type {string} */ country: string; /** * The location the event takes place in. This is usually a city or an area. * @type {string} */ location: string; /** * The schedule this event belongs to. * @type {Schedule} */ schedule: Schedule; /** * The official event name, with sponsors, etc. * @type {string} */ officialEventName: string; /** * The date of the event, which is always at midnight of the same day, in UTC. * @type {Date} */ eventDate: Date; /** * The name of the event, without sponsors. This is shorter than the official event name. * @type {string} */ eventName: string; /** * The format of the event. * @type {EventFormat} */ eventFormat: EventFormat; /** * An array of sessions that take place throughout the event. * @type {Session[]} */ sessions: Session[]; /** * @param {RawScheduleItem} data Data to process. * @param {Schedule} parent Parent schedule to set. */ constructor(data: RawScheduleItem, parent: Schedule); /** * Whether the event is pre-season testing. * @returns {boolean} * @readonly */ get isTesting(): boolean; /** * Whether the event is a sprint weekend. * @returns {boolean} * @readonly */ get isSprint(): boolean; /** * Get a practice session by its number. * @param {number} practiceNumber The number of the practice session. (e.g. 1 for "Practice 1") * @returns {(Session | null)} */ practice(practiceNumber: number): Session | null; /** * Get a session by its number, * @param {number} sessionNumber The number of the session. * @returns {(Session | null)} */ session(sessionNumber: number): Session | null; } export {}; //# sourceMappingURL=Event.d.ts.map