import type { Reducer } from 'redux'; import { RECEIVE_USER_REVIEW, RECEIVE_SUBMIT_REVIEW } from '../constants'; import type { ReceiveProductReviewsAction } from '../action-creators/receiveProductReviews'; import type { ReceiveReviewsAction } from '../action-creators/receiveReviews'; import type { ReceiveReviewVoteAction } from '../action-creators/receiveReviewVote'; import type { Review, ReviewsById } from '../types/reviews'; type ReceiveSingleReviewAction = { type: typeof RECEIVE_SUBMIT_REVIEW | typeof RECEIVE_USER_REVIEW; review?: Partial; }; type ReviewsByIdAction = ReceiveProductReviewsAction | ReceiveReviewsAction | ReceiveReviewVoteAction | ReceiveSingleReviewAction; /** * Stores a collection of products by the related hash of the request parameters. * @param state The current state. * @param action The current redux action. * @returns The new state. */ declare const reviewsById: Reducer; export default reviewsById; //# sourceMappingURL=reviewsById.d.ts.map