import { BuilderQueriesMap, PageInfo } from '@plitzi/sdk-shared';
import { SWRInfiniteConfiguration } from 'swr/infinite';
declare const useInfiniteGraphQL: <K extends keyof BuilderQueriesMap, T>(queryKey: K | null, transform: (data: BuilderQueriesMap[K] | undefined) => {
    edges: T[];
    pageInfo: PageInfo;
} | undefined, variables?: Record<string, unknown>, config?: SWRInfiniteConfiguration<BuilderQueriesMap[K]> & {
    pageSize?: number;
}) => {
    data: (T | undefined)[];
    error: Error | undefined;
    size: number;
    setSize: (size: number | ((_size: number) => number)) => Promise<BuilderQueriesMap[K][] | undefined>;
    isLoading: boolean;
    isValidating: boolean;
    isEmpty: boolean;
    mutate: import('swr/infinite').SWRInfiniteKeyedMutator<BuilderQueriesMap[K][]>;
};
export default useInfiniteGraphQL;
