import type { WidgetHeaderConfig } from '../../../domains/widgets/shared/widget-header/types.js'; export type UseWithCsvDownloadMenuParams = { /** Base header config. */ baseHeaderConfig: WidgetHeaderConfig; /** Whether the "Download CSV" menu item is enabled. */ enabled: boolean; /** Triggers CSV query execution and browser download. */ onClick: () => void; }; /** * Appends a "Download > CSV File" item to the widget header menu when enabled. * * If a "Download" group already exists in the menu, the "CSV File" item is added to its `items`. * Otherwise a new "Download" group containing "CSV File" is appended. * * @param params.baseHeaderConfig - Base header config. * @param params.enabled - Whether the "Download CSV" menu item is enabled. * @param params.onClick - Click handler for the "CSV File" leaf item. * @returns Header config to pass to {@link WidgetContainer} * @internal */ export declare function useWithCsvDownloadMenuItem({ baseHeaderConfig, enabled, onClick, }: UseWithCsvDownloadMenuParams): WidgetHeaderConfig;