import type { AsyncFnReturn } from "react-use/lib/useAsyncFn";
import { type DownloadQueryResultsOpts } from "../../../redux/downloads";
export type UseDownloadDataParams = Pick<DownloadQueryResultsOpts, "question" | "result" | "dashboardId" | "dashcardId" | "uuid" | "token" | "params" | "visualizationSettings">;
type HandleDataDownloadParams = Pick<DownloadQueryResultsOpts, "type" | "enableFormatting" | "enablePivot">;
export declare const useDownloadData: ({ question, result, dashboardId, dashcardId, uuid, token, params, visualizationSettings, }: UseDownloadDataParams) => AsyncFnReturn<(options: HandleDataDownloadParams) => Promise<void>>;
export {};
