import Foundation public typealias Credentials = [String: String] public protocol XMPPStorage: AnyObject { // credentials func getCredentialsByUUID(_ uuid: UUID) async -> Credentials? // roster func deleteRoster(jid: JID) async // where Data is byte representation of array of roster items // i.e. [XMLElement] -> Data func getRoster(jid: JID) async -> Data? func setRoster(jid: JID, roster: Data) async // messages // omemo // whatever else }