import { RecommendClient, TrendingItemsQuery } from '@algolia/recommend'; import { ProductRecord } from './types'; export type TrendingItemsProps = { /** * The initialized Algolia recommend client. */ recommendClient: RecommendClient; /** * A function to transform the retrieved items before passing them to the component. * * It’s useful to add or remove items, change them, or reorder them. */ transformItems?: (items: Array>) => Array>; }; export type GetTrendingItemsResult = { recommendations: Array>; }; export type GetTrendingItemsProps = TrendingItemsProps & TrendingItemsQuery; export declare function getTrendingItems({ recommendClient, transformItems, fallbackParameters, indexName, maxRecommendations, queryParameters, threshold, facetName, facetValue, }: GetTrendingItemsProps): Promise<{ recommendations: ProductRecord[]; }>;