Neither one - the air starter (basically a small turbine) is connected to the high pressure rotor via the accessory gearbox and a 'one way' clutch. So what you have is a small air driven turbine that spins up the hp rotor to sufficient speed to achieve lightoff when fuel and ignition is applied.
The starter motor continues to apply torque to help the engine accelerate towards idle until the starter air valve closes (typically around 50% N2/N3)