import type { Dispatch, PropsWithChildren, SetStateAction } from "react"; import { Pagination } from "."; export * from "./PaginationNav"; export * from "./PaginationPerPage"; type Dispatchable = [T, Dispatch>]; type GetProps = T extends React.ComponentType | React.Component ? P : never; export declare function usePagination(): { cursor: Dispatchable; loading: Dispatchable; perPage: Dispatchable; total: Dispatchable; name: string; data: unknown[]; inheritProps: { renderRow({ data }: { data: unknown; }): JSX.Element; fetch(cursor: number, perPage: number): Promise<{ data: unknown[]; total: number; }>; refetchInterval?: number | undefined; refetchOnWindowFocus?: boolean | undefined; name: string; cursor?: number | undefined; perPage?: number | undefined; className?: import("clsx").ClassValue; searchParams?: Record | undefined; } & { children?: import("react").ReactNode; }; refetch(options?: { passive?: boolean | undefined; } | undefined): Promise; } & { data: T[]; }; export declare function PaginationClient(props: PropsWithChildren & { cursor: number; perPage: number; total: number; data: T[]; }>): import("react/jsx-runtime").JSX.Element;