import type { RecommendClient, RecommendationsQuery } from '@algolia/recommend'; import { ProductRecord, RecordWithObjectID } from './types'; export type RecommendationsProps = { /** * The `objectID`s of the items to get recommendations for. */ objectIDs: string[]; /** * 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 GetRecommendationsProps = RecommendationsProps & Omit; export type GetRecommendationsResult = { recommendations: Array>; }; export declare function getRecommendations({ objectIDs, recommendClient, transformItems, fallbackParameters, indexName, maxRecommendations, model, queryParameters, threshold, }: GetRecommendationsProps): Promise>;