Typehinting the router class