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

---@param unit string
---@param showError boolean
---@return 1nil canInspect
---Returns whether a unit can be inspected. Returns nil if the unit is out of inspect range, if the unit is an NPC, or if the unit is flagged for PvP combat and hostile to the player.
function CanInspect(unit, showError) end
