When should or shouldn't I include variable declarations in the .h file?

When I’m building a component, I want to know when I should declare variables in the .h file instead of defining them in the header file? What saves memory, and is the efficient way to go about this?