import React from 'react'; import type { InfiniteHitsProps as InfiniteHitsUiComponentProps } from '../ui/InfiniteHits'; import type { BaseHit, Hit } from 'instantsearch.js'; import type { UseInfiniteHitsProps } from 'react-instantsearch-core'; type UiProps = Pick>, 'hits' | 'banner' | 'bannerComponent' | 'sendEvent' | 'onShowPrevious' | 'onShowMore' | 'isFirstPage' | 'isLastPage' | 'translations'>; export type InfiniteHitsProps = Omit>, keyof UiProps> & { bannerComponent?: React.JSXElementConstructor<{ banner: Required>>['banner']; className: string; }> | false; } & UseInfiniteHitsProps & { /** * Displays the "Show Previous" button when the UI is loaded from a page * beyond the first one. * @default true */ showPrevious?: boolean; translations?: Partial['translations']>; }; export declare function InfiniteHits({ showPrevious: shouldShowPrevious, cache, escapeHTML, showPrevious: userShowPrevious, transformItems, translations, bannerComponent: BannerComponent, ...props }: InfiniteHitsProps): React.JSX.Element; export {};