Novak Djokovic described Maria Sharapova an an inspiration after the five-time grand slam champion announced her retirement from tennis.