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