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 * - `'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 * @internal */ export declare const translateWidgetToJSON: (widgetProps: WidgetProps) => NlqTranslationResult;