/** "Занятия в Полоцке" as the parser keeps it: a day of a group, or of some of its subgroups. */ export interface PlaceNote { day: number; date: string | null; groups: string[]; subgroups: { group: string; label: string }[]; place: string; text: string; } /** A note of one day for one group; `subgroup` null for the whole group. */ export interface DayPlace { place: string; text: string; subgroup: string | null; } export function placesOn( places: PlaceNote[] | null | undefined, group: string, labels: string[], day: number, date?: string | null, ): DayPlace[]; export function placesFor(list: DayPlace[], subgroup: string | null | undefined): DayPlace[];