import type { QueryClient, QueryKey } from '@tanstack/react-query'; import type { CommonFetchFn } from '../services'; interface PropsType { reactQueryClient: QueryClient; queryFn: (client: QueryClient, variables: TVariables) => Promise; queryKey: (variables?: TVariables) => QueryKey; } export declare function useReactQueryLazy>({ reactQueryClient, queryFn, queryKey, }: PropsType): { fetch: CommonFetchFn; loading?: boolean | undefined; error?: string | Error | null | undefined; data?: TData | undefined; refetch?: ((variables: TVariables) => Promise) | undefined; fetchMore?: ((variables: TVariables) => Promise) | undefined; fetchPreviousPage?: ((variables: TVariables) => Promise) | undefined; hasMore?: boolean | undefined; isFetchingNextPage?: boolean | undefined; isRefetching?: boolean | undefined; }; export {};