import type { Reducer } from 'redux'; import { RECEIVE_SUBMIT_REVIEW } from '../constants'; import type { RequestReviewsAction } from '../action-creators/requestReviews'; import type { ReceiveReviewsAction } from '../action-creators/receiveReviews'; import type { ErrorReviewsAction } from '../action-creators/errorReviews'; import type { ReviewsByHash } from '../types/reviews'; type ReceiveSubmitReviewAction = { type: typeof RECEIVE_SUBMIT_REVIEW; review: { productId: string; }; }; type ReviewsByHashAction = RequestReviewsAction | ReceiveReviewsAction | ErrorReviewsAction | ReceiveSubmitReviewAction; /** * Stores a collection of products by the related hash of the request parameters. * Responses are only applied when they belong to the latest request of a collection. * A first page replaces the collection, later pages are only appended for the same sort and * filter. A submitted review expires the list of its product without marking it as failed. * @param state The current state. * @param action The current redux action. * @returns The new state. */ declare const reviewsByHash: Reducer; export default reviewsByHash; //# sourceMappingURL=reviewsByHash.d.ts.map