When you enable ospf traffic-engineering, OSPF will generate LSAs that carry traffic engineering parameters.
Router builds TED according to these parameters and TED is used by Constrained Shortest Path First (CSPF) to compute MPLS LSPs.
OSPF database is used by SPF to calculate the best IGP routes.
You can check the TED by " show ted database"
Regards,
Moses N