/* Types for eventData.js. Rows are GET /events as shapeEvent in server/src/routes/content.js sends them. */ import type { EventType } from "../lib/eventTypes.ts"; import type { EventListItem } from "../lib/useContent.ts"; export type EventFilter = { section?: string; host?: string; status?: EventListItem["status"]; type?: EventType | EventType[]; }; export declare function useEvents(filter?: EventFilter): { events: EventListItem[]; loading: boolean; error: Error | null; }; export declare function splitByStatus( events?: T[], ): { upcoming: T[]; past: T[] }; export declare function typesPresent( events?: Array<{ event_type: string }>, declared?: readonly D[], ): D[];