import type { WidgetProps } from '../../../../../domains/widgets/components/widget/types.js'; import type { ChartProps, PivotTableProps } from '../../../../../props.js'; import type { DataSourceJSON, WidgetConfigJSON } from '../../types.js'; export type WidgetMeta = { readonly id: string; readonly title?: string; readonly description?: string; readonly dataSource?: DataSourceJSON; readonly config?: WidgetConfigJSON; 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; /** * Maps pivot table component props (with `dataSet`) to pivot widget props (with `dataSource`). * * @internal */ export declare const toPivotTableWidgetProps: (pivotProps: PivotTableProps, meta: WidgetMeta) => Extract;