UNPKG

@riadvargas/svelte-algolia-instantsearch

Version:
45 lines (44 loc) 1.56 kB
export type HighlightClassNames = { /** * Class names to apply to the root element */ root: string; /** * Class names to apply to the highlighted parts */ highlighted: string; /** * Class names to apply to the non-highlighted parts */ nonHighlighted: string; /** * Class names to apply to the separator between highlighted parts */ separator: string; }; import type { HitHighlightResult, HitSnippetResult } from "instantsearch.js"; interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> { new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & { $$bindings?: Bindings; } & Exports; (internal: unknown, props: Props & { $$events?: Events; $$slots?: Slots; }): Exports & { $set?: any; $on?: any; }; z_$$bindings?: Bindings; } declare const InternalHighlight: $$__sveltets_2_IsomorphicComponent<{ classes: HighlightClassNames; attribute: string; result: HitHighlightResult | HitSnippetResult | undefined; highlightedTagName?: keyof HTMLElementTagNameMap; nonHighlightedTagName?: keyof HTMLElementTagNameMap; separator?: string; }, { [evt: string]: CustomEvent<any>; }, {}, {}, string>; type InternalHighlight = InstanceType<typeof InternalHighlight>; export default InternalHighlight;