@class NoteStoreObject, NSManagedObjectContext, ICManagedObjectContextUpdater, AccountUtilities, ICExclusiveLock, NSMutableDictionary, NSPersistentStoreCoordinator, ICSelectorDelayer, NoteAccountObject, NSManagedObjectModel, NSNumber; @interface NoteContext : NSObject { NSManagedObjectContext *_managedObjectContext; NoteStoreObject *_localStore; NoteAccountObject *_localAccount; NSManagedObjectContext *_nextIdContext; ICExclusiveLock *_nextIdLock; NSNumber *_nextId; ICExclusiveLock *_objectCreationLock; unsigned long long _notificationCount; BOOL _logChanges; BOOL _indexInBatches; BOOL _hasPriorityInSaveConflicts; BOOL _inMigrator; NSMutableDictionary *_notePropertyObjectsRealized; } @property (class, readonly, nonatomic) NSManagedObjectModel *managedObjectModel; @property (retain, nonatomic) AccountUtilities *accountUtilities; @property (nonatomic) BOOL isMainContext; @property (nonatomic) BOOL usePrivateQueue; @property (retain, nonatomic) ICManagedObjectContextUpdater *mocUpdater; @property (retain, nonatomic) ICSelectorDelayer *externalChangeNotificationDelayer; @property (readonly, retain, nonatomic) NSManagedObjectContext *managedObjectContext; @property (readonly, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator; + (id)storeOptions; + (id)newManagedObjectContext; + (BOOL)databaseIsCorrupt:(id)a0; + (id)allVisibleNotesMatchingPredicate:(id)a0 sorted:(BOOL)a1 context:(id)a2; + (void)clearTestsNotesRootPath; + (id)newFetchRequestForStores; + (id)newFetchRequestForAccounts; + (void)removeConflictingSqliteAndIdxFiles; + (id)searchIndexerDataSource; + (BOOL)isTooLowOnDiskSpace; + (id)persistentStoreCoordinator; + (id)urlForPersistentStore; + (id)generateGUID; + (unsigned long long)countOfVisibleNotesMatchingPredicate:(id)a0 includingNoteWithoutBodyContent:(BOOL)a1 context:(id)a2; + (id)fileProtectionOption; + (id)fileURLProtectionOption; + (id)visibleNotesIncludingEmptyBodyContentPredicate; + (unsigned long long)countOfVisibleNotesInCollectionIncludingNotesWithoutBodyContent:(id)a0; + (unsigned long long)countOfVisibleNotesInCollection:(id)a0; + (void)setTestsNotesRootPath:(id)a0; + (id)pathForIndex; + (id)allVisibleNotesMatchingPredicate:(id)a0 sorted:(BOOL)a1 context:(id)a2 fetchLimit:(unsigned long long)a3; + (id)backupsDirectoryURL; + (id)mainContextObjectFromObject:(id)a0; + (id)newFetchRequestForNotes; + (void)backupPersistentStore:(id)a0; + (id)newlyAddedAttachmentInContext:(id)a0; + (id)sharedContext; + (BOOL)shouldLogIndexing; + (id)pathForPersistentStore; + (unsigned long long)countOfVisibleNotesMatchingPredicate:(id)a0 context:(id)a1; + (void)removeSqliteAndIdxFiles; + (BOOL)isDataProtectionError:(id)a0; + (id)allVisibleNotesMatchingPredicate:(id)a0 context:(id)a1; + (id)visibleNotesPredicate; + (id)defaultNotesSortDescriptors; - (BOOL)save:(id *)a0; - (void)clearCaches; - (id)localAccount; - (id)init; - (void)dealloc; - (id)allAccounts; - (void)invalidate; - (id)localStore; - (unsigned long long)countOfVisibleNotesInCollection:(id)a0; - (BOOL)deleteAccount:(id)a0; - (id)notesForIntegerIds:(id)a0; - (void).cxx_destruct; - (id)newFetchRequestForNotes; - (id)allStores; - (id)nextIndex; - (id)visibleNotesPredicate; - (long long)context:(id)a0 shouldHandleInaccessibleFault:(id)a1 forObjectID:(id)a2 andTrigger:(id)a3; - (id)defaultStoreForNewNote; - (void)deleteNote:(id)a0; - (void)enableChangeLogging:(BOOL)a0; - (id)newlyAddedNote; - (id)newlyCreatedNoteFromDefaultStore; - (id)accountForAccountId:(id)a0; - (id)allVisibleNotesInCollection:(id)a0; - (id)allVisibleNotesInCollection:(id)a0 sorted:(BOOL)a1; - (id)collectionForObjectID:(id)a0; - (BOOL)forceDeleteAccount:(id)a0; - (id)initWithPrivateQueue; - (id)newlyAddedAttachment; - (id)noteForGUID:(id)a0; - (id)storeForExternalIdentifier:(id)a0; - (unsigned long long)countOfNotes; - (id)allVisibleNotes; - (void)handleMigration; - (id)liveNotesNeedingBodiesPredicate; - (id)getNextIdObject; - (id)initForMigrator; - (id)newlyAddedStore; - (BOOL)saveOutsideApp:(id *)a0; - (void)_createLocalAccount:(id *)a0 andStore:(id *)a1; - (id)_notePropertyObjectForKey:(id)a0; - (id)allAccountsAsFaults:(BOOL)a0 prefechedRelationshipKeyPaths:(id)a1; - (id)allNotes; - (id)allNotesInCollection:(id)a0; - (id)allNotesMatchingPredicate:(id)a0; - (id)allNotesWithoutBodiesInCollection:(id)a0; - (id)allVisibleNotesMatchingPredicate:(id)a0; - (id)allVisibleNotesMatchingPredicate:(id)a0 sorted:(BOOL)a1; - (void)batchFaultNotes:(id)a0; - (void)cleanUpLocks; - (id)collectionForInfo:(id)a0; - (unsigned long long)countOfNotesInCollection:(id)a0; - (unsigned long long)countOfNotesMatchingPredicate:(id)a0; - (unsigned long long)countOfStores; - (unsigned long long)countOfVisibleNotes; - (unsigned long long)countOfVisibleNotesMatchingPredicate:(id)a0; - (void)deleteChanges:(id)a0; - (void)deleteNoteRegardlessOfConstraints:(id)a0; - (BOOL)deleteStore:(id)a0; - (id)faultedInStoresForAccounts:(id)a0; - (void)forceSetUpUniqueObjects; - (BOOL)hasMultipleEnabledStores; - (id)initForMainContext; - (id)initWithAccountUtilities:(id)a0; - (id)initWithAccountUtilities:(id)a0 inMigrator:(BOOL)a1; - (id)initWithAccountUtilities:(id)a0 inMigrator:(BOOL)a1 isMainContext:(BOOL)a2 usePrivateQueue:(BOOL)a3; - (id)initWithPrivateQueue:(BOOL)a0; - (void)managedObjectContextWillSaveNotification:(id)a0; - (id)mostRecentlyModifiedNoteInCollection:(id)a0; - (id)newFRCForAccountsWithDelegate:(id)a0; - (id)newFRCForCollection:(id)a0 delegate:(id)a1; - (id)newFRCForCollection:(id)a0 delegate:(id)a1 performFetch:(BOOL)a2; - (id)newFRCForFetchRequest:(id)a0 delegate:(id)a1 performFetch:(BOOL)a2; - (id)newFRCForStoresWithDelegate:(id)a0; - (id)newlyAddedAccount; - (id)newlyAddedNoteWithGUID:(id)a0; - (id)noteChangeWithType:(int)a0 store:(id)a1; - (id)noteForObjectID:(id)a0; - (void)postNotesChangedExternally; - (id)propertyValueForKey:(id)a0; - (void)receiveDarwinNotificationWithChangeLogging:(BOOL)a0; - (void)resetNotificationCount; - (BOOL)saveSilently:(id *)a0; - (void)setHasPriorityInSaveConflicts:(BOOL)a0; - (void)setPropertyValue:(id)a0 forKey:(id)a1; - (BOOL)setUpCoreDataStack; - (BOOL)setUpLastIndexTid; - (BOOL)setUpLocalAccountAndStore; - (void)setUpUniqueObjects; - (BOOL)shouldDisableLocalStore; - (BOOL)shouldObserveDarwinNotifications; - (void)sortNotes:(id)a0; - (id)storeForObjectID:(id)a0; - (id)storesInCollection:(id)a0; - (void)tearDownCoreDataStack; - (void)trackChanges:(id)a0; - (void)updateForRecentChanges; - (id)visibleNoteForObjectID:(id)a0; - (id)visibleNotesForIntegerIds:(id)a0; @end