If you look at the GitHub source:
Arduino/LittleFS.cpp at master · esp8266/Arduino · GitHub[
^]
You will see that there are only one signature declared for
LITTLEFSImpl::open
FileImplPtr LittleFSImpl::open(const char* path, OpenMode openMode, AccessMode accessMode) {
That requires three parameters, not two.