Security question about tRCP

If I export the tRCP router as type in order to import that type in my client JS, wouldn't it mean the entire backend code of my tRCP router would leak to the client file?