import React from 'react'; import '../../styles/base.module.css'; import { AllElementPropsWithoutRef, MergeAndOverrideProps } from '../../utils/elementTypings'; type Language = 'en' | 'fi' | 'sv'; export interface PaginationCustomTheme { /** * Colour of the active page background. Use black, white or any of the brand colours. */ '--active-page-background-color'?: string; } export type PaginationProps = MergeAndOverrideProps, { /** * If true, hide the next-page button * @default false */ hideNextButton?: boolean; /** * If true, hide the previous-page button * @default false */ hidePrevButton?: boolean; /** * The language of the pagination component. * @default fi */ language?: Language; /** * Callback fired when the page is changed */ onChange?: (event: React.MouseEvent | React.MouseEvent, index: number) => void; /** * The total number of pages */ pageCount: number; /** * A function for generating the href of pages */ pageHref: (index: number) => string; /** * The active page index */ pageIndex: number; /** * Aria-label for the pagination nav element */ paginationAriaLabel: string; /** * Number of always visible pages before and after the current page * @default 1 */ siblingCount?: number; /** * Theme prop for customisation of the Pagination component */ theme?: PaginationCustomTheme; }>; export declare const Pagination: ({ "data-testid": dataTestId, hideNextButton, hidePrevButton, language, onChange, pageCount, pageHref, pageIndex, paginationAriaLabel, siblingCount, theme, className, ...rest }: PaginationProps) => React.JSX.Element; export {};