/// <reference types="react" />
import type { EntityQuery } from "./types";
/**
 * @deprecated exists for backwards compatibility
 */
export declare const usePaginatedQuery: (entityQuery: EntityQuery, pageSize: number | undefined, initialPage: number | undefined) => {
    entityQuery: unknown;
    setHasMorePages: import("react").Dispatch<import("react").SetStateAction<boolean | null>>;
    hasMorePages?: undefined;
    isPaginated?: undefined;
    page?: undefined;
    onNextPage?: undefined;
    onPreviousPage?: undefined;
} | {
    entityQuery: {
        limit: number | undefined;
        offset: number | undefined;
    };
    hasMorePages: boolean | null;
    isPaginated: true;
    page: number;
    onNextPage: (() => void) | null;
    onPreviousPage: (() => void) | null;
    setHasMorePages: import("react").Dispatch<import("react").SetStateAction<boolean | null>>;
};
