There are few options:
1. The one that most companies used to do is pay your TR and 100% comes out of your salary over 3-5 years
2.You pay your TR (100% cash) and start the job with the company doing your line training and base training without charging you and you get paid(no ties up)
3.Pay to fly - you pay your type rating and line training and some number of hours and at the end you get kicked out or maybe you might get given a chance to be employed.