package app.k9mail.autodiscovery.api

import com.fsck.k9.mail.AuthType
import com.fsck.k9.mail.ConnectionSecurity

@Deprecated("New code should use app.k9mail.autodiscovery.api.AutoDiscovery")
interface ConnectionSettingsDiscovery {
    fun discover(email: String): DiscoveryResults?
}

data class DiscoveryResults(val incoming: List<DiscoveredServerSettings>, val outgoing: List<DiscoveredServerSettings>)

data class DiscoveredServerSettings(
    val protocol: String,
    val host: String,
    val port: Int,
    val security: ConnectionSecurity,
    val authType: AuthType?,
    val username: String?,
)
