package com.ama.core.architecture.page


import com.ama.core.architecture.util.LoadState
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableStateFlow


@Suppress("KDocUnresolvedReference")
interface RefreshRepository<Value : Any> : OnRepositoryRefreshListener {
    val loadState: MutableStateFlow<LoadState?>
    val dataListFlow: Flow<List<Value>?>
}


interface RefreshLoadMoreRepository<Value : Any> : RefreshRepository<Value>,
    OnRepositoryLoadMoreListener