1 | import type { InfiniteHitsProps as InfiniteHitsUiComponentProps } from '../ui/InfiniteHits';
|
2 | import type { BaseHit, Hit } from 'instantsearch.js';
|
3 | import type { UseInfiniteHitsProps } from 'react-instantsearch-core';
|
4 | type UiProps<THit extends BaseHit = BaseHit> = Pick<InfiniteHitsUiComponentProps<Hit<THit>>, 'hits' | 'sendEvent' | 'onShowPrevious' | 'onShowMore' | 'isFirstPage' | 'isLastPage' | 'translations'>;
|
5 | export type InfiniteHitsProps<THit extends BaseHit = BaseHit> = Omit<InfiniteHitsUiComponentProps<Hit<THit>>, keyof UiProps<THit>> & UseInfiniteHitsProps<THit> & {
|
6 | |
7 |
|
8 |
|
9 |
|
10 |
|
11 | showPrevious?: boolean;
|
12 | translations?: Partial<UiProps<THit>['translations']>;
|
13 | };
|
14 | export declare function InfiniteHits<THit extends BaseHit = BaseHit>({ showPrevious: shouldShowPrevious, cache, escapeHTML, showPrevious: userShowPrevious, transformItems, translations, ...props }: InfiniteHitsProps<THit>): JSX.Element;
|
15 | export {};
|