libraries meant for some modules

hey..I am a newbie here in arduino
and i have a project to work on
including esp8622-12e and firebase as a server to take data
what i don`t get here
is:
-wifi arduino library works for esp or only for there wi-fi shield
-is esp8266 library deigned to work with arduino or just with esp module direct and which one is best wi-fi library or esp (if they both can communicate with arduino)

Ma-Mi:
-wifi arduino library works for esp or only for there wi-fi shield

Only for the Arduino WiFi Shield. It won't work for any ESP8266, including ESP8266 based WiFi shields.

Ma-Mi:
-is esp8266 library deigned to work with arduino or just with esp module direct

What "esp8266 library" are you talking about? Post a link to where you found this library. Please always use the chain links icon on the toolbar when you post links to make them clickable.

thats the esp8266

Ma-Mi:
-is esp8266 library deigned to work with arduino or just with esp module direct

Ma-Mi:
thats the esp8266

You can only use the ESP8266 core for Arduino to directly program the ESP8266. You can't use it to program a non-ESP8266 based Arduino board such as Uno, Mega, Leonardo, Zero, Due, etc. If you want to use the ESP8266 as a WiFi module connected to a different Arduino board via serial, with the AT firmware on the ESP8266 module I recommend this library:

Ma-Mi:
which one is best wi-fi library or esp

As I said before, you can't use the WiFi library.

Please take some time to make your posts on the Arduino forum more clear and exact. Capitalization matters, spelling matters. "wi-fi library" is not the same thing as the WiFi Library. If you won't take 30 extra seconds to make your posts not look like they were written by an illiterate wearing mittens why should we take the time to help you?

Okay got it.
But,What about Firbase library its the same as ESP Core library
Thank you for your help in general and your time specially : )

؟