This commit also deprecates the types returned by deprecated methods as they will be removed as well in the future. See gh-34239
This commit also deprecates the types returned by deprecated methods as they will be removed as well in the future. See gh-34239