import type { WidgetConfig, WidgetProps } from '../../../../../domains/widgets/components/widget/types.js';
import type { ChartProps, PivotTableProps } from '../../../../../props.js';
import type { DataSourceJSON } from '../../types.js';
export type WidgetMeta = {
    readonly id: string;
    readonly title?: string;
    readonly description?: string;
    readonly dataSource?: DataSourceJSON;
    readonly config?: WidgetConfig;
    readonly highlightSelectionDisabled?: boolean;
};
/**
 * Maps chart component props (with `dataSet`) to chart widget props (with `dataSource`).
 *
 * @internal
 */
export declare const toChartWidgetProps: (chartProps: ChartProps, meta: WidgetMeta) => Extract<WidgetProps, {
    widgetType: 'chart';
}>;
/**
 * Maps pivot table component props (with `dataSet`) to pivot widget props (with `dataSource`).
 *
 * @internal
 */
export declare const toPivotTableWidgetProps: (pivotProps: PivotTableProps, meta: WidgetMeta) => Extract<WidgetProps, {
    widgetType: 'pivot';
}>;
