While hidden, you cannot be detected.
Being hidden does not grant invisibility but means you are out of another creature's line of sight. Their attention roll automatically fails against your sneak if you remain hidden.
Normally, when you attack, use an ability, or cast a spell, you become visible, revealing your position to creatures in the encounter and breaking your hidden status.