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