// Generated by HeaderLand from iOS 27.2.1 (24B156), /System/Library/PrivateFrameworks/MLModelCache.framework/MLModelCache. // Recovered from the binary: no comments, no parameter names Swift does not keep, no availability. class CacheManager { let rootURL: Foundation.URL let hashFunction: @Sendable (_: Swift.String) -> Swift.String let activeSessions: Synchronization.Mutex> init(hashFunction: @escaping @Sendable (_: Swift.String) -> Swift.String, purgeProtocols: [any MLModelCache.PurgeProtocol]) final func purgeAsset(at: Swift.String) throws final func createAsset(at: Swift.String) throws -> MLModelCache.AssetSession final func asset(at: Swift.String) throws -> Foundation.URL? deinit } class FileCreator { let createFile: (_: Foundation.URL) throws -> Swift.Int32 } enum CacheError { case fileSystemError(Swift.String) case invalidAssetSessionError(Swift.String) } extension MLModelCache.CacheError: Swift.Error {} extension MLModelCache.CacheError: Swift.Equatable {} extension MLModelCache.OldBuildVersionPurgeProtocol: MLModelCache.PurgeProtocol {} extension MLModelCache.OrphanedStagingPurgeProtocol: MLModelCache.PurgeProtocol {} extension __C.NSURLResourceKey: @retroactive Swift._HasCustomAnyHashableRepresentation {} extension __C.NSURLResourceKey: @retroactive Swift.RawRepresentable { typealias RawValue = Swift.String } extension __C.NSURLResourceKey: @retroactive Swift._SwiftNewtypeWrapper {} extension __C.NSURLResourceKey: @retroactive Swift.Equatable {} extension __C.NSURLResourceKey: @retroactive Swift.Hashable {} extension __C.NSURLResourceKey: @retroactive Swift._ObjectiveCBridgeable { typealias _ObjectiveCType = __C.NSString } protocol PurgeProtocol { func purge(cacheRootURL: Foundation.URL) throws } struct AssetSession: ~Swift.Copyable { var compiledAssetStagingURL: Foundation.URL var fileCreator: MLModelCache.FileCreator let compiledAssetFinalURL: Foundation.URL weak var cacheManager: MLModelCache.CacheManager? let sourceKey: Swift.String func commit() throws deinit } struct OldBuildVersionPurgeProtocol { let currentBuildVersion: Swift.String init() func purge(cacheRootURL: Foundation.URL) throws } struct OrphanedStagingPurgeProtocol { init() func purge(cacheRootURL: Foundation.URL) throws }