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

---@param name string
---@param index number
---@return number loaded
---@return NOT_DEMAND_LOADED reason
---@return  BANNED
---@return  CORRUPT
---@return  DEP_BANNED
---@return  DEP_CORRUPT
---@return  DEP_DISABLED
---@return  DEP_INCOMPATIBLE
---@return  DEP_INSECURE
---@return  DEP_INTERFACE_VERSION
---@return  DEP_MISSING
---@return  DEP_NOT_DEMAND_LOADED
---@return  DISABLED
---@return  INCOMPATIBLE
---@return  INSECURE
---@return  INTERFACE_VERSION
---@return  MISSING
---@return  NOT_DEMAND_LOADED
---Loads a LoadOnDemand-capable addon. If the given addon has dependencies which are also LoadOnDemand-capable, those addons will be loaded as well. This function will not load disabled addons.
function LoadAddOn(name, index) end
