Former World Number four Johanna Konta believes Ashleigh Barty is in a good position after she announced her retirement from tennis.