1964 plymouth valiant Slant six to 340

Since a '64 never came with an 8 3/4, there are no factory ball and trunnion driveshafts that will just bolt in. There may be a few out there from cars that had an 8 3/4 installed at a later date though. If you have to cut it shorter and rebalance, you may as well upgrade to a better driveshaft so you don't have to worry about breaking a stock one. If it's a 741 case 3rd member, yeah, probably small u-joint, 742 or 489 case could have several options depending on what it came out of.
Mostly agree, but I think it would be significantly cheaper to shorten and balance the old shaft than to have a new one made up. At least, that was the case when I first put an 8 3/4 in my 65 Barracuda back in the seventies. Only reason I ever replaced that shaft was I switched to a later trans, then found out a Duster 340 manual trans drive shaft bolted right in despite the wheelbase difference between the Duster and my Barracuda. That's also when I found out about the difference in low gear ratios. Was an unhappy camper for a couple of years until I found out my original gearset with 3.09 low gear fit inside my newer trans.