import React from "react";
import { ReactivesearchPaginationProps } from "../types";
export declare const usePagination: (input: ReactivesearchPaginationProps) => {
    /** The current page number, indexed from 0 */
    currentPage: number;
    /** The total amount of pages */
    totalPages: number;
    /** The total amount of pages to show within pagination components */
    pagesToShow: Array<number>;
    /** If there is a next page */
    hasNextPage: boolean;
    /** If there is a previous page */
    hasPreviousPage: boolean;
    /** The _actual_ current page number, indexed from 1 */
    actualCurrentPage: number;
    /** Function to build a URL for a specific page number, useful for Href links */
    buildPagePath: (page: number) => string;
    /** Function to change to the next page, if an event is provided the preventDefault() method will be called */
    handleNextPage: (event?: React.SyntheticEvent) => void;
    /** Function to change to the previous page, if an event is provided the preventDefault() method will be called */
    handlePreviousPage: (event?: React.SyntheticEvent) => void;
    /** Function to change to any page, if an event is provided the preventDefault() method will be called */
    handlePageChange: (pageNumber: number, event?: React.SyntheticEvent) => void;
};
