1 | import type { TrendingItemsProps as TrendingItemsUiComponentProps } from 'instantsearch-ui-components';
|
2 | import type { BaseHit } from 'instantsearch.js';
|
3 | import type { UseTrendingItemsProps } from 'react-instantsearch-core';
|
4 | type UiProps<TItem extends BaseHit> = Pick<TrendingItemsUiComponentProps<TItem>, 'items' | 'itemComponent' | 'headerComponent' | 'emptyComponent' | 'layout' | 'status' | 'sendEvent'>;
|
5 | export type TrendingItemsProps<TItem extends BaseHit> = Omit<TrendingItemsUiComponentProps<TItem>, keyof UiProps<TItem>> & UseTrendingItemsProps & {
|
6 | itemComponent?: TrendingItemsUiComponentProps<TItem>['itemComponent'];
|
7 | headerComponent?: TrendingItemsUiComponentProps<TItem>['headerComponent'];
|
8 | emptyComponent?: TrendingItemsUiComponentProps<TItem>['emptyComponent'];
|
9 | layoutComponent?: TrendingItemsUiComponentProps<TItem>['layout'];
|
10 | };
|
11 | export declare function TrendingItems<TItem extends BaseHit = BaseHit>({ facetName, facetValue, limit, threshold, fallbackParameters, queryParameters, escapeHTML, transformItems, itemComponent, headerComponent, emptyComponent, layoutComponent, ...props }: TrendingItemsProps<TItem>): JSX.Element;
|
12 | export {};
|