UNPKG

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