UNPKG

@riadvargas/svelte-algolia-instantsearch

Version:
126 lines (125 loc) 4.43 kB
import type { InfiniteHitsConnectorParams } from "instantsearch.js/es/connectors/infinite-hits/connectInfiniteHits"; 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; } type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends { default: any; } ? Props extends Record<string, never> ? any : { children?: any; } : {}); declare const InfiniteHits: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<InfiniteHitsConnectorParams & { classes?: Partial<{ /** * Class names to apply to the root element */ root: string; /** * Class names to apply to the root element without results */ emptyRoot: string; /** * Class names to apply to the "load previous" button */ loadPrevious: string; /** * Class names to apply to the "load previous" button when it's disabled */ disabledLoadPrevious: string; /** * Class names to apply to the "load more" button */ loadMore: string; /** * Class names to apply to the "load more" button when it's disabled */ disabledLoadMore: string; /** * Class names to apply to the list element */ list: string; /** * Class names to apply to each item element */ item: string; }>; translations?: Partial<{ showPreviousButtonText: string; showMoreButtonText: string; }>; }, { default: { hit: { __position: number; __queryID?: string; } & { objectID: string; _highlightResult?: import("instantsearch.js").HitHighlightResult; _snippetResult?: import("instantsearch.js").HitSnippetResult; _rankingInfo?: { promoted: boolean; nbTypos: number; firstMatchedWord: number; proximityDistance?: number; geoDistance: number; geoPrecision?: number; nbExactWords: number; words: number; filters: number; userScore: number; matchedGeoLocation?: { lat: number; lng: number; distance: number; }; }; _distinctSeqID?: number; _geoloc?: import("instantsearch.js").GeoLoc; } & import("instantsearch.js").BaseHit & Record<string, any>; sendEvent: import("instantsearch.js/es/lib/utils").SendEventForHits; }; }>, { [evt: string]: CustomEvent<any>; }, { default: { hit: { __position: number; __queryID?: string; } & { objectID: string; _highlightResult?: import("instantsearch.js").HitHighlightResult; _snippetResult?: import("instantsearch.js").HitSnippetResult; _rankingInfo?: { promoted: boolean; nbTypos: number; firstMatchedWord: number; proximityDistance?: number; geoDistance: number; geoPrecision?: number; nbExactWords: number; words: number; filters: number; userScore: number; matchedGeoLocation?: { lat: number; lng: number; distance: number; }; }; _distinctSeqID?: number; _geoloc?: import("instantsearch.js").GeoLoc; } & import("instantsearch.js").BaseHit & Record<string, any>; sendEvent: import("instantsearch.js/es/lib/utils").SendEventForHits; }; }, {}, string>; type InfiniteHits = InstanceType<typeof InfiniteHits>; export default InfiniteHits;