Do I have the legal right to refuse treatment after a suicide attempt?

No. You cannot refuse treatment if you are deemed a danger to yourself and you have been put on an involutary hold by a physician until you are cleared by a psychologist or psychiatrist.
But... Although you cannot refuse immediate treatment if you are a danger to yourself, the overall process comes under judicial review fairly quickly depending on the state laws.