UNPKG

629 BTypeScriptView Raw
1import React from 'react';
2import type { PartialKeys } from '../types';
3import type { HighlightProps as HighlightUiComponentProps } from '../ui/Highlight';
4import type { BaseHit, Hit } from 'instantsearch.js';
5export type HighlightProps<THit extends Hit<BaseHit>> = {
6 hit: THit;
7 attribute: keyof THit | string[];
8} & PartialKeys<Omit<HighlightUiComponentProps, 'parts'>, 'highlightedTagName' | 'nonHighlightedTagName' | 'separator'>;
9export declare function Highlight<THit extends Hit<BaseHit>>({ hit, attribute, highlightedTagName, nonHighlightedTagName, separator, ...props }: HighlightProps<THit>): React.JSX.Element;