import { Item, ItemUIState } from './ItemModel'; import { Track } from './TrackModel'; import { Agenda, IAgenda, IAgendaJSON } from './AgendaModel'; import { Day } from './DayModel'; declare class AgendaStore { agenda: Agenda; intervalPxHeight: number; intervalInMin: number; segmentFactor: number; agendaHistory: Array; pointer: number; /** * The AgendaStore implements CRUD Operations for the models and the undo/redo history for the agenda. * * @param {IAgendaJSON} data - initial Data */ constructor(data: IAgendaJSON); addItem(item: Item, trackId: string): void; setAgenda(agenda: Agenda): void; setTitle(itemId: string, newTitle: string): void; getDays(filter?: { uiHidden?: boolean; }): Day[]; getDay(id: string): Day | undefined; deleteDay(id: string): void; addDay(day: Day): void; getAgenda(): IAgenda; getDayForTrack(trackId: string): Day | undefined; getTrack(id: string): Track | undefined; getTrackForItem(id: string): Track | undefined; getDayForItem(id: string): Day | undefined; getItem(id: string): Item | undefined; getItems(filter?: { uiState?: ItemUIState; }, itemIds?: Array): Item[]; /** * Gets the item with the given Id and all following items on the same track * * @param {string} id * @returns * @memberof AgendaStore */ getItemAndFollowingItems(id: string): Item[] | undefined; deleteItem(id: string): void; getIntervalPxHeight(): number; getIntervalInMin(): number; getSegmentFactor(): number; overWriteCurrentHistoryEntry(): void; pushToHistory(): void; undo(): void; canUndo(): boolean; redo(): void; canRedo(): boolean; } export default AgendaStore; export { Item, IItem } from './ItemModel'; export { Track, ITrack } from './TrackModel'; export { Day, IDay } from './DayModel'; export { Agenda, IAgenda } from './AgendaModel';