UNPKG

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