I bought a Lemond Road bike in 98? snapped it in 08? in that time i think the only original thing left was the front mech.
Took frame to Trek dealer, who contacted Trek, Trek came back and said we no longer make that frame but we do have stock of a similar but much nicer frame in the states (i had a 525 frame and got a Platinum OX frame back), they are unpainted so what colour would you like.
month or so later i had a brand new frame and fork. I did have to buy a headset though, £30 for a far nicer frame to replace a hammered 10 year old one, can’t complain!
Other manuafacturers, even other shops may result in a very different outcome.