UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

14 lines 604 B
export type EventStatus = "live" | "past" | "starting-soon" | "upcoming" | "none"; export interface TimeUntilStartData { minutes: number; seconds: number; totalSeconds: number; isLessThan10Minutes: boolean; } export declare function calculateTimeUntilStart(startDate: string, now: number): TimeUntilStartData; export declare function formatTimeUntilStart(timeUntil: TimeUntilStartData): string; export declare function getEventStatus(event: { startDate: string; endDate?: string; }, now: number, timeUntil: TimeUntilStartData): EventStatus; //# sourceMappingURL=eventTime.d.ts.map