/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import { useMutation, } from "@tanstack/react-query";
import { queryExportFeedbackQueryResults } from "../funcs/queryExportFeedbackQueryResults.js";
import { combineSignals } from "../lib/primitives.js";
import { unwrapAsync } from "../types/fp.js";
import { useInkeepAnalyticsContext } from "./_context.js";
/**
 * Export Feedback Query Results
 */
export function useQueryExportFeedbackQueryResultsMutation(options) {
    const client = useInkeepAnalyticsContext();
    return useMutation({
        ...buildQueryExportFeedbackQueryResultsMutation(client, options),
        ...options,
    });
}
export function mutationKeyQueryExportFeedbackQueryResults() {
    return ["@inkeep/inkeep-analytics", "Query", "exportFeedbackQueryResults"];
}
export function buildQueryExportFeedbackQueryResultsMutation(client$, hookOptions) {
    return {
        mutationKey: mutationKeyQueryExportFeedbackQueryResults(),
        mutationFn: function queryExportFeedbackQueryResultsMutationFn({ request, options, }) {
            const mergedOptions = {
                ...hookOptions,
                ...options,
                fetchOptions: {
                    ...hookOptions?.fetchOptions,
                    ...options?.fetchOptions,
                    signal: combineSignals(hookOptions?.fetchOptions?.signal, options?.fetchOptions?.signal),
                },
            };
            return unwrapAsync(queryExportFeedbackQueryResults(client$, request, mergedOptions));
        },
    };
}
//# sourceMappingURL=queryExportFeedbackQueryResults.js.map