UNPKG

@riadvargas/svelte-algolia-instantsearch

Version:
135 lines (134 loc) 4.03 kB
import type { PaginationConnectorParams } from "instantsearch.js/es/connectors/pagination/connectPagination"; 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 Pagination: $$__sveltets_2_IsomorphicComponent<PaginationConnectorParams & { 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 the first page element */ firstPageItem: string; /** * Class names to apply to the previous page element */ previousPageItem: string; /** * Class names to apply to each page element */ pageItem: string; /** * Class names to apply to a selected page element */ selectedItem: string; /** * Class names to apply to a disabled page element */ disabledItem: string; /** * Class names to apply to the next page element */ nextPageItem: string; /** * Class names to apply to the last page element */ lastPageItem: string; /** * Class names to apply to each link element */ link: string; }>; translations?: Partial<{ /** * The label for the first page's button. */ firstPageItemText: string; /** * The label for the previous page's button. */ previousPageItemText: string; /** * The label for the next page's button. */ nextPageItemText: string; /** * The label for the last page's button. */ lastPageItemText: string; /** * The label for a page's button. */ pageItemText(options: { /** * The page number to be displayed. */ currentPage: number; /** * The total number of pages. */ nbPages: number; }): string; /** * The accessible label for the first page's button. */ firstPageItemAriaLabel: string; /** * The accessible label for the previous page's button. */ previousPageItemAriaLabel: string; /** * The accessible label for the next page's button. */ nextPageItemAriaLabel: string; /** * The accessible label for the last page's button. */ lastPageItemAriaLabel: string; /** * The accessible label for a page's button. */ pageItemAriaLabel(options: { /** * The page number to be displayed. */ currentPage: number; /** * The total number of pages. */ nbPages: number; }): string; }>; showFirst?: boolean; showPrevious?: boolean; showNext?: boolean; showLast?: boolean; }, { [evt: string]: CustomEvent<any>; }, {}, {}, string>; type Pagination = InstanceType<typeof Pagination>; export default Pagination;