import type { WidgetProps } from '../../../../domains/widgets/components/widget/types.js'; import type { NlqTranslationResult } from '../../types.js'; import type { WidgetInput } from '../types.js'; /** * Translates NLQ WidgetJSON format to CSDK widget props. * Direction: JSON → CSDK * * Dispatches to the appropriate sub-translator based on `widgetType`: * - `'chart'` → `translateChartFromJSON` * - `'pivot'` → `translatePivotTableFromJSON` * - `'text'` → pass-through (no data translation) * - `'custom'` → filters/highlights translated; dataOptions passed through as opaque JSON * * * @param input - WidgetInput containing widgetJSON and data schema context * @returns NlqTranslationResult with WidgetProps or errors * @internal */ export declare const translateWidgetFromJSON: (input: WidgetInput) => NlqTranslationResult;