import { UseMutationResult, UseQueryResult } from "@tanstack/react-query"; export type CombinedMutationResult = Omit, "mutate" | "mutateAsync" | "reset" | "data" | "variables" | "context">; /** * Combines two mutation results, showing the "loading state" of the two * mutations. For instance, if either mutation is pending, the combined * mutation result will be pending. * @param resultA - The first mutation result * @param resultB - The second mutation result * @returns The combined mutation result */ export declare function combineMutationResults(resultA: UseMutationResult, resultB: UseMutationResult): CombinedMutationResult; export type CombinedQueryResult = Omit, "data" | "refetch" | "promise">; /** * Combines two query results, showing the "loading state" of the two queries. * For instance, if either query is loading, the combined query result will be * loading. * @param resultA - The first query result * @param resultB - The second query result * @returns The combined query result */ export declare function combineQueryResults(resultA: UseQueryResult, resultB: UseQueryResult): CombinedQueryResult; //# sourceMappingURL=query-utils.d.ts.map