import * as React from 'react';
export interface UsePageProps {
    defaultPageSize?: number;
    defaultCurrentPage?: number;
    onPageChange?: (pageInfo: {
        currentPage: number;
        pageSize: number;
        total: number;
        pageSizeList: number[];
    }) => void;
    pageProps?: {
        total?: number;
        current?: number;
        pageSize?: number;
        pageSizeList?: number[];
        [key: string]: any;
    };
    pageSizeList?: number[];
    dataSource?: any[];
}
export declare const usePage: (props: UsePageProps) => {
    total: number;
    setTotal: (v: React.SetStateAction<number>, ...args: any[]) => void;
    pageSize: number;
    setPageSize: (v: React.SetStateAction<number>, ...args: any[]) => void;
    currentPage: number;
    setCurrent: (v: React.SetStateAction<number>, ...args: any[]) => void;
    setCurrentPage: (v: React.SetStateAction<number>, ...args: any[]) => void;
    pageSizeList: number[];
    setPageSizeList: (v: React.SetStateAction<number[]>, ...args: any[]) => void;
    pageHasChange: React.RefObject<boolean>;
};
