Actually, it's not too difficult. You do have to get another transfer case as the 340h has the case attached to the transmission. For wiring, you just need to convince the computer the truck is in neutral. You do this by wiring the neutral safety switch into itself. Extending the hole for the shifter by a little bit is also needed. You have to drill a hole in the firewall for the clutch master cylinder, but a template of sorts already exists there. You have to run a line from the master cylinder to the slave cylinder.
You have to install a clutch/brake pedal brake from the same model truck. The transfer case cross member bolts right up, assuming you will be using a manual that came with that engine. You might have to get a new driveshaft made as well. It's a good idea to put a new clutch in while you're at it, as well as a flywheel, and use new master and slave cylinders as well. It's not difficult, just takes time. A friend of mine and I did it in a afternoon. We also put dual cases in, and headers as well.