---@diagnostic disable: missing-return, lowercase-global
---@meta

---@param f function
---@param stackLevel number
---@return table env
---Returns the environment for a function (or the global environment). If the environment has a __environment metatable, that value is returned instead.
function getfenv(f, stackLevel) end
