UNPKG

501 BTypeScriptView Raw
1import type { StatsProps as StatsUiComponentProps } from '../ui/Stats';
2import type { UseStatsProps } from 'react-instantsearch-core';
3type UiProps = Pick<StatsUiComponentProps, 'nbHits' | 'nbSortedHits' | 'processingTimeMS' | 'areHitsSorted' | 'translations'>;
4export type StatsProps = Omit<StatsUiComponentProps, keyof UiProps> & UseStatsProps & {
5 translations?: Partial<UiProps['translations']>;
6};
7export declare function Stats({ translations, ...props }: StatsProps): JSX.Element;
8export {};