import { FetchStateAndError, ID } from '../../../commonStateTypes/common'; import { SelectorView } from '../../../commonStateTypes/viewAndReport/viewAndReport'; import { GlobalMerchantBase, TenantMerchant } from '../../../entity/globalMerchant/globalMerchantState'; import { RootState } from '../../../rootStateTypes'; import { GlobalMerchantAutoCompleteView } from '../../globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewSelector'; import { GlobalVendorReviewRowCurrentSelection } from '../common/state/commonTypes'; import { RecommendedNonExistingGlobalMerchant } from '../common/state/recommendedNonExistingGlobalMerchant'; import { VendorGlobalReviewViewUIState } from './vendorGlobalReviewViewState'; export interface VendorGlobalReview { approveStatus: FetchStateAndError; currentSelection: GlobalVendorReviewRowCurrentSelection; merchant: TenantMerchant; recommendations: RecommendedNonExistingGlobalMerchant[]; rejectStatus: FetchStateAndError; selectedMerchantId: ID; } export interface VendorGlobalReviewViewSelectorView extends SelectorView { allGlobalMerchants: GlobalMerchantBase[]; globalMerchantAutoCompleteView: GlobalMerchantAutoCompleteView; uiState: VendorGlobalReviewViewUIState; vendorGlobalReviewData: VendorGlobalReview[]; } export declare const getVendorGlobalReviewView: (state: RootState) => VendorGlobalReviewViewSelectorView; export declare const getTenantMerchantByMerchantId: (state: RootState, merchantId: ID) => TenantMerchant | undefined;