If looking to avoid eslint markings this sort of pattern also works
(component as unknown as { router: Router }).router,