ESP8266WiFi library

Im trying to use in the same project an Arduino UNO and an ESP8266-01, i found some source codes for what im wanting to do but the problem is those codes are for projects where the ESP is the main microcontroller and they are using the #include <ESP8266WiFi.h>. I wanna ask you guys what modifications should i make to the code so that i can use both the Arduino and ESP8266 without using the ESP8266WiFi library..