import { ApiResponse } from './types'; interface UseInfiniteQueryOptions { queryKey: string[]; queryFn: (params: { pageParam: number; }) => Promise>; initialPageParam: number; getNextPageParam: (lastPage: ApiResponse) => number | undefined; filterFn?: (data: ApiResponse) => ApiResponse; } interface UseInfiniteQueryResult { data: { pages: ApiResponse[]; } | undefined; error: Error | null; fetchNextPage: () => void; hasNextPage: boolean; isFetchingNextPage: boolean; status: "pending" | "error" | "success"; } export declare const useInfiniteQuery: ({ queryKey, queryFn, initialPageParam, getNextPageParam, filterFn, }: UseInfiniteQueryOptions) => UseInfiniteQueryResult; export {};