@class NSURL, brc_task_tracker, BRCFSEventsMonitor, NSMutableDictionary, BRCAccountSession, BRContainer, BRMangledID, BRCPQLConnection, NSString, BRCZoneRowID, BRCListDirectoryContentsOperation, BRCPrivateClientZone, BRCALRowID, NSNumber, NSMutableSet, BRCRelativePath, BRCSyncContext; @protocol BRCAppLibraryDelegate; @interface BRCAppLibrary : NSObject <BRCListOperationDelegate, BRCForegroundClient> { _Atomic unsigned long long _activeQueries; _Atomic unsigned long long _activeRecursiveQueries; _Atomic unsigned long long _activeAliasQueries; long long _maxLostStamp; NSString *_deepScanReason; NSMutableDictionary *_pendingFileCoordinators; NSMutableSet *_XPCClientsUsingUbiquity; BOOL _activated; BOOL _addedToSharedMetadataSyncContextForegroundClient; NSMutableSet *_targetSharedServerZones; NSMutableSet *_foregroundClients; BRCListDirectoryContentsOperation *_pristineFetchOp; BRCListDirectoryContentsOperation *_trashFetchOp; } @property (readonly, nonatomic) NSNumber *deepScanStamp; @property (nonatomic) long long maxLostStamp; @property (readonly, nonatomic) BRCFSEventsMonitor *fsEventsMonitor; @property (readonly, nonatomic) NSNumber *fileID; @property (readonly, nonatomic) NSNumber *generationID; @property (readonly, nonatomic) BRCRelativePath *root; @property (readonly, nonatomic) BRCRelativePath *documentsPath; @property (readonly) BOOL hasActiveAliasQueries; @property (retain, nonatomic) NSNumber *fileID; @property (retain, nonatomic) NSNumber *generationID; @property (retain, nonatomic) NSNumber *deepScanStamp; @property (weak, nonatomic) BRCPrivateClientZone *defaultClientZone; @property (retain, nonatomic) id<BRCAppLibraryDelegate> delegate; @property (retain, nonatomic) BRCAccountSession *session; @property (readonly, nonatomic) brc_task_tracker *tracker; @property (readonly, nonatomic) NSString *logName; @property (readonly, nonatomic) NSString *appLibraryID; @property (readonly, nonatomic) BRMangledID *mangledID; @property (readonly, nonatomic) NSString *absolutePath; @property (readonly, nonatomic) NSString *pathRelativeToRoot; @property (readonly, nonatomic) NSURL *url; @property (retain, nonatomic) BRCALRowID *dbRowID; @property (retain, nonatomic) BRCZoneRowID *zoneRowID; @property (readonly, nonatomic) BOOL isCloudDocsAppLibrary; @property (readonly, nonatomic) BOOL isiCloudDesktopAppLibrary; @property (readonly, nonatomic) BRCPQLConnection *db; @property (nonatomic) BOOL needsSave; @property (readonly, nonatomic) unsigned long long syncedFolderType; @property (readonly, nonatomic) BRCSyncContext *transferSyncContextIfExists; @property (readonly, nonatomic) BRCSyncContext *transferSyncContext; @property (readonly, nonatomic) NSMutableDictionary *plist; @property (readonly, nonatomic) unsigned int state; @property (readonly, nonatomic) BOOL isForeground; @property (readonly, nonatomic) BOOL shouldEvictUploadedItems; @property (readonly) BOOL hasActiveQueries; @property (readonly) BOOL hasActiveRecursiveQueries; @property (readonly, nonatomic) BOOL isGreedy; @property (readonly, nonatomic) BRContainer *containerMetadata; @property (retain, nonatomic) NSString *containerMetadataEtag; @property (nonatomic) BOOL containerMetadataNeedsSyncUp; @property (nonatomic) unsigned long long containerMetadataSyncRequestID; @property (retain, nonatomic) NSNumber *rootQuotaUsage; @property (readonly, nonatomic) NSString *identifier; @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (readonly, copy) NSString *description; @property (readonly, copy) NSString *debugDescription; - (void)close; - (id)init; - (id)itemIDByRowID:(unsigned long long)a0 db:(id)a1; - (BOOL)isAppInstalled; - (void)activate; - (id)itemByRowID:(unsigned long long)a0 db:(id)a1; - (id)itemIDByRowID:(unsigned long long)a0; - (BOOL)hasLocalChanges; - (void).cxx_destruct; - (BOOL)isEqual:(id)a0; - (id)itemByRowID:(unsigned long long)a0; - (BOOL)isDocumentScopePublic; - (id)_aliasAppLibraryTargetSQLPrefix; - (unsigned long long)allocateLostStampAddingBackoff:(BOOL)a0; - (void)clearStateBits:(unsigned int)a0; - (void)setIsOverQuota:(BOOL)a0; - (void)fetchTrashItems; - (void)scheduleContainerMetadataSyncUp; - (unsigned int)_activateState:(unsigned int)a0 origState:(unsigned int)a1; - (void)_addTargetSharedServerZone:(id)a0; - (void)_addTargetSharedServerZoneForSharedItem:(id)a0; - (void)_removeAllTargetSharedServerZonesWhenNoLongerForeground; - (void)_removeTargetSharedServerZoneIfNecessary:(id)a0; - (void)_resolveTargetSharedClientZonesWhenBecameForeground; - (id)_targetSharedServerZonesEnumerator; - (id)_unwrappedDescriptionWithContext:(id)a0; - (void)_updateContainerMetadataFromRecord:(id)a0 stripIcons:(BOOL)a1; - (void)_updateIsInCloudDocsZone; - (void)addClientUsingUbiquity:(id)a0; - (void)addForegroundClient:(id)a0; - (id)aliasByUnsaltedBookmarkData:(id)a0; - (void)associateWithClientZone:(id)a0; - (void)associateWithClientZone:(id)a0 offline:(BOOL)a1; - (void)cancelFileCoordinators; - (void)cancelWriteCoordinatorForItem:(id)a0; - (void)computeDocumentEvictableSizeUsageWithDB:(id)a0 reply:(id /* block */)a1; - (void)computeDocumentEvictableSizeUsageWithLowTimeDelta:(double)a0 medTimeDelta:(double)a1 highTimeDelta:(double)a2 db:(id)a3 reply:(id /* block */)a4; - (id)containerMetadataFilledWithTCCInfo; - (void)continueMarkingChildrenLostInZone:(id)a0; - (id)coordinatorForItem:(id)a0 forRead:(BOOL)a1; - (id)descriptionWithContext:(id)a0; - (void)didCreateDataScopedItem; - (void)didCreateDocumentScopedItem; - (void)didFindLostItem:(id)a0 oldAppLibrary:(id)a1; - (void)didReceiveHandoffRequest; - (void)didRemoveDocumentsFolder; - (void)didUpdateDocumentScopePublic; - (unsigned long long)documentCountWithDB:(id)a0; - (unsigned long long)documentSizeUsageWithDB:(id)a0; - (id)documentsFolderItemID; - (id)enumerateUserVisibleChildrenDirectoriesOfItemGlobalID:(id)a0 db:(id)a1; - (id)enumerateUserVisibleChildrenOfItemGlobalID:(id)a0 sortOrder:(unsigned char)a1 offset:(unsigned long long)a2 limit:(unsigned long long)a3 db:(id)a4; - (id)fetchDocumentsDirectoryItem; - (id)fetchDocumentsDirectoryItem:(id)a0; - (void)fetchPristineness; - (id)fetchRootItem; - (id)fetchRootItemInDB:(id)a0; - (void)freeFileCoordinationSlotsAfterDelayForRead:(BOOL)a0; - (void)fsrootDidMoveToPath:(id)a0; - (BOOL)hasDocumentsOrDirectory; - (BOOL)hasUbiquitousDocuments; - (BOOL)hasUbiquityClientsConnected; - (BOOL)includesDataScope; - (id)initWithMangledID:(id)a0 dbRowID:(id)a1 zoneRowID:(id)a2 db:(id)a3 plist:(id)a4 session:(id)a5 initialCreation:(BOOL)a6 createdRootOnDisk:(BOOL)a7 createdCZMMoved:(BOOL)a8 rootFileID:(id)a9; - (BOOL)integrityCheckBoosting; - (BOOL)isCoordinationPendingForItem:(id)a0; - (BOOL)isDesktopAppLibrary; - (BOOL)isDocumentsAppLibrary; - (BOOL)isEqualToAppLibrary:(id)a0; - (BOOL)isStillTargetingSharedServerZone:(id)a0; - (id)itemsEnumeratorChildOf:(id)a0 withDeadItems:(BOOL)a1 rankMin:(unsigned long long)a2 rankMax:(unsigned long long)a3 count:(unsigned long long)a4 db:(id)a5; - (id)itemsEnumeratorWithRankMin:(unsigned long long)a0 rankMax:(unsigned long long)a1 namePrefix:(id)a2 withDeadItems:(BOOL)a3 shouldIncludeFolders:(BOOL)a4 shouldIncludeOnlyFolders:(BOOL)a5 shouldIncludeDocumentsScope:(BOOL)a6 shouldIncludeDataScope:(BOOL)a7 shouldIncludeExternalScope:(BOOL)a8 shouldIncludeTrashScope:(BOOL)a9 count:(unsigned long long)a10 db:(id)a11; - (void)listOperation:(id)a0 wasReplacedByOperation:(id)a1; - (id)liveAliasesEnumeratorTargetingThisAppLibrary; - (BOOL)markChildrenLostForItemID:(id)a0 inZone:(id)a1 fileID:(id)a2; - (BOOL)markChildrenLostForItemID:(id)a0 inZone:(id)a1 fileID:(id)a2 startingFromRow:(unsigned long long)a3 hasMoreWork:(BOOL *)a4; - (void)notifyClient:(id)a0 whenFaultingIsDone:(id /* block */)a1; - (void)recomputeShouldEvictState; - (void)recreateDocumentsFolderIfNeededOnDisk; - (void)registerQueryWithAliases:(BOOL)a0 isRecursive:(BOOL)a1; - (void)removeClientUsingUbiquity:(id)a0; - (void)removeForegroundClient:(id)a0; - (id)rootItemGlobalID; - (id)rootItemID; - (void)scheduleDeepScanWithReason:(id)a0; - (void)scheduleFullLibraryContentsFetch; - (void)setRootFileID:(unsigned long long)a0; - (BOOL)setStateBits:(unsigned int)a0; - (BOOL)shouldSaveContainerMetadataServerside; - (BOOL)supportsSpotlightIndexing; - (long long)throttleHashWithItemID:(id)a0; - (void)unregisterQueryWithAliases:(BOOL)a0 isRecursive:(BOOL)a1; - (void)updateFromFSAtPath:(id)a0; - (void)updateWithPlist:(id)a0; - (BOOL)wasMovedToCloudDocs; - (void)zoneDidChangeMovedToCloudDocsState; - (BOOL)zoneHasShareAlias; @end