import type { WidgetHeaderConfig } from '../../../../domains/widgets/shared/widget-header/types.js';
import type { PivotTableWidgetProps } from './types.js';
export type UsePivotWidgetExcelDownloadParams = Pick<PivotTableWidgetProps, 'title' | 'dataOptions' | 'config' | 'dataSource' | 'filters' | 'highlights' | 'id'> & {
    baseHeaderConfig: WidgetHeaderConfig;
};
export type UsePivotWidgetExcelDownloadResult = {
    headerConfig: WidgetHeaderConfig;
};
/**
 * Enhances a pivot table widget header with Excel download menu items.
 * Excel menu is shown only when the widget/dashboard allows download **and**
 * the Sisense server feature **`exportingXlsxV2`** is active (`api/globals` → `features`).
 * **Repeat rows** sets `mergeRows: false`; **Merge rows** sets `mergeRows: true`).
 *
 * @param props - Pivot data/config plus `baseHeaderConfig`. `id` is optional; when present it is forwarded as `widgetId` without validation.
 * @returns Header config for {@link WidgetContainer}
 */
export declare function usePivotWidgetExcelDownload(props: UsePivotWidgetExcelDownloadParams): UsePivotWidgetExcelDownloadResult;
