UNPKG

svelte-meilisearch-instantsearch

Version:

Svelte wrapper for Meilisearch InstantSearch

42 lines (41 loc) 2.74 kB
import { SvelteComponentTyped } from "svelte"; declare const __propDef: { props: { setUiState?: ((state: any) => void) | undefined; refresh?: (() => void) | undefined; indexName: string; searchClient: import("instantsearch.js").SearchClient & import("@algolia/client-search").SearchClient & { readonly initIndex: (indexName: string) => import("algoliasearch/lite").SearchIndex; readonly search: <TObject>(queries: readonly import("@algolia/client-search").MultipleQueriesQuery[], requestOptions?: (import("@algolia/transporter").RequestOptions & import("@algolia/client-search").MultipleQueriesOptions) | undefined) => Readonly<Promise<import("@algolia/client-search").MultipleQueriesResponse<TObject>>>; readonly searchForFacetValues: (queries: readonly { readonly indexName: string; readonly params: import("@algolia/client-search").SearchForFacetValuesQueryParams & import("@algolia/client-search").SearchOptions; }[], requestOptions?: import("@algolia/transporter").RequestOptions | undefined) => Readonly<Promise<readonly import("@algolia/client-search").SearchForFacetValuesResponse[]>>; readonly customRequest: <TResponse>(request: import("@algolia/transporter").Request, requestOptions?: import("@algolia/transporter").RequestOptions | undefined) => Readonly<Promise<TResponse>>; }; numberLocale?: string | undefined; onStateChange?: ((params: { uiState: import("instantsearch.js").UiState; setUiState: (uiState: import("instantsearch.js").UiState | ((previousUiState: import("instantsearch.js").UiState) => import("instantsearch.js").UiState)) => void; }) => void) | undefined; initialUiState?: import("instantsearch.js").UiState | undefined; stalledSearchDelay?: number | undefined; routing?: boolean | import("instantsearch.js/es/middlewares").RouterProps<import("instantsearch.js").UiState, import("instantsearch.js").UiState> | undefined; insights?: boolean | import("instantsearch.js/es/middlewares").InsightsProps | undefined; insightsClient?: import("instantsearch.js").InsightsClient | undefined; }; events: { [evt: string]: CustomEvent<any>; }; slots: { default: {}; }; }; export type InstantSearchProps = typeof __propDef.props; export type InstantSearchEvents = typeof __propDef.events; export type InstantSearchSlots = typeof __propDef.slots; export default class InstantSearch extends SvelteComponentTyped<InstantSearchProps, InstantSearchEvents, InstantSearchSlots> { get setUiState(): (state: any) => void; get refresh(): () => void; } export {};