import { Base } from "./Base"; import { Event } from "./Event"; export type SessionType = "practice" | "qualifying" | "sprint_shootout" | "sprint" | "race"; export interface SessionData { number: number; name: string; date: Date; } /** * Represents a session that belongs to an event. * @extends {Base} */ export declare class Session extends Base { /** * The number of the session, in order. (e.g. 1 for "Practice 1") * @type {number} */ number: number; /** * The name of the session. * @type {string} */ name: string; /** * The start date of the session. * @type {Date} */ date: Date; /** * The event this session belongs to. * @type {Event} */ event: Event; /** * @param {SessionData} data Data to process. * @param {Event} parent Parent event to set. */ constructor(data: SessionData, parent: Event); /** * Get the type of the session. * @returns {SessionType} (e.g. "practice") * @readonly */ get type(): SessionType; /** * Get the estimated duration of the session in minutes. * @returns {number} * @readonly */ get duration(): number; } //# sourceMappingURL=Session.d.ts.map