import type { WidgetProps } from '../../../../domains/widgets/components/widget/types.js'; import type { NlqTranslationResult } from '../../types.js'; import type { WidgetJSON } from '../types.js'; /** * Translates CSDK widget props to NLQ WidgetJSON format. * Direction: CSDK → JSON. * * Dispatches to the appropriate sub-translator based on `widgetType`: * - `'chart'` → `translateChartToJSON` * - `'pivot'` → `translatePivotTableToJSON` * - `'text'` → pass-through of styleOptions * - `'narrative'` → pass-through of title, styleOptions, config and dashboardId * - `'custom'` → filters/highlights translated; dataOptions passed through as opaque JSON. * * @param widgetProps - Widget props with widgetType discriminant (id required). * @returns NlqTranslationResult with WidgetJSON or errors. * @sisenseInternal */ export declare const translateWidgetToJSON: (widgetProps: WidgetProps) => NlqTranslationResult;