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

---@param index number
---@param accept 1nil
---Accepts the offered teleport to a battleground/arena or leaves the battleground/arena or queue. This function requires a hardware event when used to accept a teleport; it can be called without a hardware event for leaving a battleground/arena or its queue.
function AcceptBattlefieldPort(index, accept) end
