UNPKG

@riadvargas/svelte-algolia-instantsearch

Version:
84 lines (83 loc) 2.54 kB
import type { SearchBoxConnectorParams } from "instantsearch.js/es/connectors/search-box/connectSearchBox"; 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 SearchBox: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<SearchBoxConnectorParams & { placeholder?: string; searchAsYouType?: boolean; classes?: Partial<{ /** * Class names to apply to the root element */ root: string; /** * Class names to apply to the form element */ form: string; /** * Class names to apply to the input element */ input: string; /** * Class names to apply to the submit button */ submit: string; /** * Class names to apply to the submit button icon */ submitIcon: string; /** * Class names to apply to the reset button */ reset: string; /** * Class names to apply to the reset button icon */ resetIcon: string; /** * Class names to apply to the loading indicator */ loadingIndicator: string; /** * Class names to apply to the loading indicator icon */ loadingIcon: string; }>; translations?: Partial<{ /** * The alternative text of the submit button. */ submitButtonTitle: string; /** * The alternative text of the reset button. */ resetButtonTitle: string; }>; }, { submitIcon: {}; resetIcon: {}; loadingIcon: {}; }>, { [evt: string]: CustomEvent<any>; }, { submitIcon: {}; resetIcon: {}; loadingIcon: {}; }, {}, string>; type SearchBox = InstanceType<typeof SearchBox>; export default SearchBox;