"uxp" Library - getEntryWithUrl and createSessionToken Returning "undefined" Despite Import

I’m working on a project where I need to use the getEntryWithUrl and createSessionToken functions from the uxp library. I first tried to import the fs object from uxp.storage.localFileSystem like this: const { fs } = require('uxp').storage.localFileSystem;. However, when I call fs.getEntryWithUrl and fs.createSessionToken, I keep getting the error that these functions are undefined.

To troubleshoot, I changed my import to const { storage } = require("uxp"); and then tried to call storage.getEntryWithUrl and storage.createSessionToken. But I still receive the error “is not a function”.

I’m fairly certain that the uxp library is installed correctly in my project. What could be causing these functions to be undefined even though I’ve imported the relevant parts of the library? Are there any specific versions of the uxp library that support these functions? Or is there a different correct way to import and use these functions?

It’s

const fs = require('uxp').storage.localFileSystem
fs.getEntryWithUrl()
fs.createSessionToken()

or

const { storage } = require("uxp")
storage.localFileSystem.getEntryWithUrl()
storage.localFileSystem.createSessionToken()

or

const { localFileSystem } = require("uxp").storage
localFileSystem.getEntryWithUrl()
localFileSystem.createSessionToken()