local ____exports = {}
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
local ____cachedClasses = require("core.cachedClasses")
local game = ____cachedClasses.game
local ____AmbushType = require("enums.AmbushType")
local AmbushType = ____AmbushType.AmbushType
--- Helper function to get the corresponding ambush type for the current room. Returns undefined if
-- the current room does not correspond to any particular ambush type.
function ____exports.getAmbushType(self)
    local room = game:GetRoom()
    local roomType = room:GetType()
    repeat
        local ____switch3 = roomType
        local ____cond3 = ____switch3 == RoomType.BOSS_RUSH
        if ____cond3 then
            do
                return AmbushType.BOSS_RUSH
            end
        end
        ____cond3 = ____cond3 or ____switch3 == RoomType.CHALLENGE
        if ____cond3 then
            do
                return AmbushType.CHALLENGE_ROOM
            end
        end
        do
            do
                return nil
            end
        end
    until true
end
return ____exports
