UNPKG

1.24 kBTypeScriptView Raw
1import type { LookingSimilarProps as LookingSimilarPropsUiComponentProps } from 'instantsearch-ui-components';
2import type { AlgoliaHit, BaseHit } from 'instantsearch.js';
3import type { UseLookingSimilarProps } from 'react-instantsearch-core';
4type UiProps<THit extends BaseHit> = Pick<LookingSimilarPropsUiComponentProps<AlgoliaHit<THit>>, 'items' | 'itemComponent' | 'headerComponent' | 'emptyComponent' | 'layout' | 'status' | 'sendEvent'>;
5export type LookingSimilarProps<THit extends BaseHit> = Omit<LookingSimilarPropsUiComponentProps<AlgoliaHit<THit>>, keyof UiProps<THit>> & UseLookingSimilarProps<THit> & {
6 itemComponent?: LookingSimilarPropsUiComponentProps<THit>['itemComponent'];
7 headerComponent?: LookingSimilarPropsUiComponentProps<THit>['headerComponent'];
8 emptyComponent?: LookingSimilarPropsUiComponentProps<THit>['emptyComponent'];
9 layoutComponent?: LookingSimilarPropsUiComponentProps<THit>['layout'];
10};
11export declare function LookingSimilar<THit extends BaseHit = BaseHit>({ objectIDs, limit, threshold, queryParameters, fallbackParameters, escapeHTML, transformItems, itemComponent, headerComponent, emptyComponent, layoutComponent, ...props }: LookingSimilarProps<THit>): JSX.Element;
12export {};