import type { WidgetHeaderConfig } from '../../../../domains/widgets/shared/widget-header/types.js';
import type { CustomWidgetProps } from './types.js';
export type UseCustomWidgetExcelDownloadParams = Pick<CustomWidgetProps, 'title' | 'dataOptions' | 'filters' | 'highlights' | 'config' | 'dataSource' | 'customWidgetType' | 'id'> & {
    baseHeaderConfig: WidgetHeaderConfig;
};
export type UseCustomWidgetExcelDownloadResult = {
    headerConfig: WidgetHeaderConfig;
};
/**
 * Enhances a custom widget header with Excel download menu items when the server feature
 * **`exportingXlsxV2`** is active. **Repeat rows** sets `mergeRows: false`; **Merge rows** sets `mergeRows: true`.
 *
 * @param props - Custom widget data plus `baseHeaderConfig` (typically from {@link useCustomWidgetCsvDownload}).
 * @returns Header config for {@link WidgetContainer}
 */
export declare function useCustomWidgetExcelDownload(props: UseCustomWidgetExcelDownloadParams): UseCustomWidgetExcelDownloadResult;
