It entirely depends on the washer, I don’t advise using a gas variant indoor’s. Gas models emit exhaust fumes that aren’t healthy as they contain carbon monoxide, which is highly poisonous.
Electric models are safe to use indoors, as long as you use it safely and not near unprotected electrical outlets.