import { BuilderQueriesMap } from '@plitzi/sdk-shared';
import { KeyedMutator, SWRConfiguration } from 'swr';
declare function useGraphQL<K extends keyof BuilderQueriesMap>(queryKey: K | null, transform?: undefined, variables?: Record<string, unknown>, config?: SWRConfiguration<BuilderQueriesMap[K]>): {
    data: BuilderQueriesMap[K] | undefined;
    error: Error | undefined;
    isLoading: boolean;
    mutate: KeyedMutator<BuilderQueriesMap[K]>;
};
declare function useGraphQL<K extends keyof BuilderQueriesMap, TK>(queryKey: K | null, transform: (data: BuilderQueriesMap[K] | undefined) => TK | undefined, variables?: Record<string, unknown>, config?: SWRConfiguration<BuilderQueriesMap[K]>): {
    data: TK | undefined;
    error: Error | undefined;
    isLoading: boolean;
    mutate: KeyedMutator<BuilderQueriesMap[K]>;
};
export default useGraphQL;
