import type { Dispatch } from 'redux'; import type { ReviewListFilterInput, ReviewsSliceState } from '../types/reviews'; type FetchReviewsState = { reviews: Pick; }; /** * Request product reviews for a product by the given id. * @param productId The product ID. * @param limit The maximum number of reviews to fetch. * @param offset The list offset (defaults to 0). With cursor pagination any offset above 0 means * "next page": the stored cursor is sent instead. Without a stored cursor for the requested * sort and filter the first page is requested. * @param sort Sorting, passed through to the pipeline unchanged. * @param filters Filter values by request parameter; only active filters are sent. * @returns The dispatched action. It resolves with `null` when an identical request * is still in flight. */ declare function fetchReviews(productId: string, limit?: number, offset?: number, sort?: string, filters?: ReviewListFilterInput): (dispatch: Dispatch, getState: () => FetchReviewsState) => Promise; /** @mixes {MutableFunction} */ declare const _default: typeof fetchReviews; export default _default; //# sourceMappingURL=fetchReviews.d.ts.map