What docs will dealer have me sign upon purchase?

What documents will the dealer need me to sign when I pay for the vehicle? I am paying cash. And should I expect the title at the same time or is it usually mailed from the DMV? They’ve asked me to make a $500 deposit to hold the car as we have agreed to a price. I am fine with that but is there anything I need to look out for with regard to a deposit?