UNPKG

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