@riadvargas/svelte-algolia-instantsearch
Version:
Svelte wrapper for Algolia InstantSearch
65 lines (64 loc) • 2.15 kB
TypeScript
import { type ShowMoreButtonTranslations } from "../components/ShowMoreButton.svelte";
import type { MenuConnectorParams } from "instantsearch.js/es/connectors/menu/connectMenu";
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 Menu: $$__sveltets_2_IsomorphicComponent<MenuConnectorParams & {
classes?: Partial<{
/**
* Class names to apply to the root element
*/
root: string;
/**
* Class names to apply to the root element when there are no refinements possible
*/
noRefinementRoot: string;
/**
* Class names to apply to the list element
*/
list: string;
/**
* Class names to apply to each item element
*/
item: string;
/**
* Class names to apply to each selected item element
*/
selectedItem: string;
/**
* Class names to apply to each link element
*/
link: string;
/**
* Class names to apply to each label element
*/
label: string;
/**
* Class names to apply to each facet count element
*/
count: string;
/**
* Class names to apply to the "Show more" button
*/
showMore: string;
/**
* Class names to apply to the "Show more" button if it's disabled
*/
disabledShowMore: string;
}>;
translations?: Partial<ShowMoreButtonTranslations>;
}, {
[evt: string]: CustomEvent<any>;
}, {}, {}, string>;
type Menu = InstanceType<typeof Menu>;
export default Menu;