@class _EKNotificationMonitor, NSMutableDictionary, EKEventStore, CUIKPasteboardManager, EKCalendarDate, CUIKEventLoader, NSMutableArray, NSCalendar, EKEvent, NSSet, NSString, EKSource, CUIKUndoManager, NSArray, CUIKCalendarModelSceneState, NSLock; @protocol CUIKOccurrenceCacheDataSourceProtocol; @interface CUIKCalendarModel : NSObject <CUIKEventLoaderDelegate, CUIKPasteboardManagerCalendarProvider, CUIKPasteboardManagerEventStoreProvider> { BOOL _modelLocked; BOOL _notificationMonitorSetUp; CUIKEventLoader *_eventLoader; unsigned long long _focusFilterMode; NSLock *_filterLock; NSArray *_visibleCalendars; NSSet *_unselectedCalendarsForFocusMode; BOOL _hasLoadedUnselectedCalendarsForFocusMode; long long _readWriteCalendarCount; NSArray *_delegateSources; long long _invitationBearingStoresExist; _EKNotificationMonitor *_notificationMonitor; struct os_unfair_lock_s { unsigned int _os_unfair_lock_opaque; } _dataSourceLock; id<CUIKOccurrenceCacheDataSourceProtocol> _occurrenceCacheDataSource; id<CUIKOccurrenceCacheDataSourceProtocol> _occurrenceCacheFilteredDataSource; long long _cachedFakeTodayIndex; NSMutableDictionary *_displayableAccountErrorCounts; long long _initialAccountSyncCount; struct os_unfair_lock_s { unsigned int _os_unfair_lock_opaque; } _selectedDateLock; EKCalendarDate *_selectedDate; BOOL _suspendSelectedDateChanges; EKCalendarDate *_suspendedSelectedDate; CUIKCalendarModelSceneState *_persistedSceneState; NSMutableArray *_selectedOccurrences; } @property (readonly, nonatomic) EKEventStore *eventStore; @property (copy, nonatomic) NSCalendar *calendar; @property (readonly, nonatomic) CUIKPasteboardManager *pasteboardManager; @property (readonly, nonatomic) CUIKUndoManager *undoManager; @property (copy, nonatomic) EKCalendarDate *selectedDate; @property (readonly, nonatomic) EKCalendarDate *selectedDay; @property (readonly, nonatomic) long long readWriteCalendarCount; @property (readonly, nonatomic) long long accountsInInitialSyncCount; @property (readonly, nonatomic) BOOL currentlyLocked; @property (nonatomic) unsigned long long firstVisibleSecond; @property (retain, nonatomic) EKEvent *selectedOccurrence; @property (copy, nonatomic) NSArray *selectedOccurrences; @property (retain, nonatomic) NSSet *selectedCalendars; @property (readonly, nonatomic) NSSet *selectedCalendarsIgnoringFocus; @property (copy, nonatomic) NSSet *unselectedCalendars; @property (readonly, nonatomic) NSSet *unselectedCalendarsIgnoringFocus; @property (readonly, nonatomic) NSSet *unselectedCalendarsForFocusMode; @property (nonatomic) unsigned long long focusFilterMode; @property (nonatomic) BOOL disableFocusFiltering; @property (retain, nonatomic) NSString *searchString; @property (nonatomic) BOOL showDayAsList; @property (nonatomic) BOOL showMonthAsDivided; @property (readonly, retain, nonatomic) EKSource *sourceForSelectedIdentity; @property (retain, nonatomic) NSArray *sortedEnabledDelegates; @property (readonly, nonatomic) BOOL containsDelegateSources; @property (copy, nonatomic) NSString *sceneIdentifier; @property (nonatomic) BOOL autoStartNotificationMonitor; @property (nonatomic) BOOL allowEventLocationPrediction; @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (readonly, copy) NSString *description; @property (readonly, copy) NSString *debugDescription; + (unsigned long long)errorForSource:(id)a0; + (id)sortedEnabledDelegateSourcesFromStore:(id)a0; + (void)temporarilyIgnoreInsecureConnectionErrorsForCalendars:(id)a0; + (void)temporarilyIgnoreInvalidCredentialsErrorForSource:(id)a0; + (unsigned long long)errorForSubscribedCalendarChildrenOfSource:(id)a0; - (void)_localeChanged:(id)a0; - (void)dealloc; - (id)occurrencesForDay:(id)a0 waitForLoad:(BOOL)a1; - (id)occurrencesForStartDay:(id)a0 endDay:(id)a1 preSorted:(BOOL)a2 waitForLoad:(BOOL)a3; - (void)_significantTimeChange; - (void).cxx_destruct; - (id)cachedSpecialDayDataForSection:(long long)a0; - (id)persistedSceneState; - (void)_timeZoneChanged:(id)a0; - (id)occurrencesForStartDate:(id)a0 endDate:(id)a1 preSorted:(BOOL)a2 waitForLoad:(BOOL)a3; - (double)_tomorrow; - (id)defaultCalendarForNewEvents; - (void)_eventStoreChanged:(id)a0; - (void)_ignoredErrorsChanged; - (id)dateForCachedOccurrencesInSection:(long long)a0; - (id)initWithDataPath:(id)a0 pasteboardManager:(id)a1; - (id)initWithEventStore:(id)a0 pasteboardManager:(id)a1; - (long long)numberOfCachedOccurrencesInSection:(long long)a0; - (long long)sectionForCachedOccurrencesOnDate:(id)a0; - (BOOL)_eventBelongsToCurrentIdentity:(id)a0; - (BOOL)selectedOccurrenceIsSearchMatch; - (void)_focusModeConfigurationChanged:(id)a0; - (id)_calendarsEnabledInFocus:(id)a0; - (id)_calendarsForCurrentIdentityFromCalendars:(id)a0 lock:(BOOL)a1; - (void)_checkSources; - (void)_createOccurrenceCacheDataSources; - (id)_dataSourceUsingFilter:(BOOL)a0; - (void)_deselectOccurrence:(id)a0 notify:(BOOL)a1; - (unsigned long long)_eventNotificationCountForCurrentIdentityIgnoringFilter:(BOOL)a0; - (id)_eventNotificationsForCurrentIdentityIgnoringFilter:(BOOL)a0; - (void)_executeBlockWithOccurrenceCacheDataSources:(id /* block */)a0; - (void)_finishedFirstLoad; - (void)_invalidateCachedOccurrences; - (void)_invalidateOccurrenceCacheDataSources; - (void)_loadVisibleCalendarsIfNeeded; - (void)_notificationBlacklisted; - (id)_notificationMonitor; - (void)_notificationsExpired:(id)a0; - (void)_notificationsLoaded:(id)a0; - (void)_occurrenceCacheChanged; - (void)_occurrenceCacheChangedNotificationHandler; - (void)_performCommonInitializationWithPasteboardManager:(id)a0; - (void)_processReloadForCacheOnly:(BOOL)a0 includingCalendars:(BOOL)a1 checkCalendarsValid:(BOOL)a2 checkSources:(BOOL)a3; - (void)_recreateOccurrenceCacheDataSources; - (void)_reloadIfTodayDetermined; - (void)_sceneEnteredBackground:(id)a0; - (void)_sceneEnteredForeground:(id)a0; - (void)_searchResultsAvailable:(id)a0; - (void)_selectOccurrence:(id)a0 notify:(BOOL)a1; - (void)_setFocusFilterMode:(unsigned long long)a0 force:(BOOL)a1; - (BOOL)_setSelectedCalendars:(id)a0; - (void)_setSelectedOccurrences:(id)a0 forceChange:(BOOL)a1; - (void)_setupUndoManager; - (BOOL)_shouldShowNotification:(id)a0; - (void)_systemWake; - (void)_tzSupportTodayRolledOver; - (id)_unselectedCalendarsForFocusMode; - (void)addOccurrenceAwaitingDeletion:(id)a0; - (void)addOccurrenceAwaitingRefresh:(id)a0; - (void)addRespondedNotificationObjectID:(id)a0; - (id)allCalendarsForCurrentIdentity; - (id)allEventNotificationReferences; - (unsigned long long)allEventNotificationsCount; - (long long)cachedFakeTodayIndex; - (id)cachedOccurrenceAtIndexPath:(id)a0; - (id)cachedOccurrenceAtIndexPath:(id)a0 usingFilter:(BOOL)a1; - (BOOL)cachedOccurrencesAreLoaded; - (void)calendarEventLoader:(id)a0 occurrencesDidUpdateBetweenStart:(double)a1 end:(double)a2 generation:(int)a3 wasEmptyLoad:(BOOL)a4; - (id)calendarsForCurrentIdentityFromCalendars:(id)a0; - (void)checkLocationAuthorizationAndAllowEventLocationPrediction; - (id)closestOccurrenceToTomorrowForEventObjectID:(id)a0; - (id)closestOccurrenceToTomorrowForEventUID:(int)a0; - (long long)countAccountsInInitialSync; - (BOOL)countSourcesWithErrors; - (id)dateForCachedOccurrencesInSection:(long long)a0 usingFilter:(BOOL)a1; - (void)deselectOccurrence:(id)a0; - (long long)displayableAccountErrorsForSource:(id)a0; - (void)ensureCalendarVisibleWithId:(id)a0; - (id)eventNotificationReferencesForCurrentIdentity; - (id)eventNotificationReferencesForCurrentIdentityIgnoringFilter; - (id)eventNotificationReferencesForIdentity:(id)a0; - (id)eventNotificationReferencesForIdentity:(id)a0 ignoringFilter:(BOOL)a1; - (unsigned long long)eventNotificationsForCurrentIdentityCount; - (unsigned long long)eventNotificationsForCurrentIdentityIgnoringFilterCount; - (void)fetchCachedDaysInBackgroundStartingFromSection:(long long)a0; - (void)fetchCachedDaysInBackgroundStartingFromSection:(long long)a0 usingFilter:(BOOL)a1; - (void)fetchDaysStartingFromSection:(long long)a0 sectionsToLoadInBothDirections:(long long)a1; - (id)indexPathsForOccurrence:(id)a0 usingFilter:(BOOL)a1; - (id)initWithPasteboardManager:(id)a0; - (BOOL)invitationBearingStoresExistForEvents; - (BOOL)isCalendarVisibleWithID:(id)a0; - (void)locationPrecisionDeterminedNotification:(id)a0; - (long long)numberOfCachedOccurrencesInSection:(long long)a0 usingFilter:(BOOL)a1; - (long long)numberOfDaysWithCachedOccurrences; - (long long)numberOfDaysWithCachedOccurrencesUsingFilter:(BOOL)a0; - (void)postSelectedCalendarsChanged; - (void)prepareForAppSuspend; - (id)refreshAccountListIfNeeded:(BOOL)a0; - (id)refreshCalendarDataIfNeeded:(BOOL)a0; - (BOOL)removeEvent:(id)a0 withSpan:(long long)a1 error:(id *)a2; - (BOOL)searchingOccurrences; - (long long)sectionForCachedOccurrencesOnDate:(id)a0 sectionExistsForDay:(BOOL *)a1; - (long long)sectionForCachedOccurrencesOnDate:(id)a0 sectionExistsForDay:(BOOL *)a1 usingFilter:(BOOL)a2; - (long long)sectionForCachedOccurrencesOnDate:(id)a0 usingFilter:(BOOL)a1; - (void)selectOccurrence:(id)a0; - (id)selectedDateOccurrences:(BOOL)a0 loadIsComplete:(BOOL *)a1; - (void)setComponentForExpandingPadding:(unsigned long long)a0; - (void)setDesiredPaddingDays:(unsigned int)a0; - (void)setFocusFilterMode:(unsigned long long)a0 force:(BOOL)a1; - (void)setMaxCachedDays:(unsigned int)a0; - (void)setPreferredReloadStartDate:(id)a0 endDate:(id)a1; - (void)setSelectedCalendarsAndRequestPreferenceSave:(id)a0 reason:(id)a1; - (void)setSelectedDateChangesDelayedUntilAfterTransition:(BOOL)a0; - (void)setSelectedOccurrence:(id)a0 forceChange:(BOOL)a1; - (void)setSourceForSelectedIdentity:(id)a0; - (void)simulateFirstLoadFinished; - (void)startNotificationMonitor; - (void)updateAfterAppResume; - (void)updateSelectedDateTimeZone; - (void)updateSourceForSelectedIdentity:(id)a0 selectedCalendars:(id)a1; @end