Insurance Question

I was involved in an auto accident. I want to repair my vehicle, but the insurance company may want to total it. What options will the insurance company give me?

TIA