An agreement with defender Dani Alves for him to remain at Barcelona next season is understood to be imminent.