import type { WidgetHeaderConfig } from '../../../../domains/widgets/shared/widget-header/types.js'; import type { ChartWidgetProps } from './types.js'; export type UseChartWidgetCsvDownloadParams = Pick & { /** Base header config */ baseHeaderConfig: WidgetHeaderConfig; }; export type UseChartWidgetCsvDownloadResult = { headerConfig: WidgetHeaderConfig; }; /** * Enhances a chart widget's header with CSV download capabilities: * - Adds the "Download > CSV File" header menu item. * - Executes the CSV query and downloads the result as a CSV file. * * @param props - Chart widget props and base header config * @returns Header config for {@link WidgetContainer} */ export declare function useChartWidgetCsvDownload(props: UseChartWidgetCsvDownloadParams): UseChartWidgetCsvDownloadResult;