Minecraft wiki entry for Warden, associated text: "Kinda. Wardens have no capability to detect players through vision. It technically has no idea where the player is, a system tells the Warden a general location that the player MIGHT be, not exactly. Only when the Warden suspects a mob enough that it knows their exact position" – @kingbdogz on Twitter, November 26, 2021