The variables in the first part are "destructured" from the return value of the function call to refreshableUiStateFrom which takes an argument of type function (I'm not sure on the signature of the function from the sample), and the value being passed to it is the function getPosts contained inside the type postsRepository.
Hope that helps.