I guess you'll be able to write Firebase functions in Kotlin, compile them to javascript and deploy them but I read that javascript is being used as first language while they develop the service. After that they will make people able to write functions in multiple languages.