import { ChartProps } from '../../../../props.js'; import { NlqTranslationResult } from '../../types.js'; import { ChartJSON } from '../types.js'; /** * Translates CSDK chart props to NLQ ChartJSON format. * Direction: CSDK → JSON * * Translates CSDK ChartProps object to chart JSON format compatible with NLQ API. * * @example * Input: * { * chartType: 'column', * dataOptions: { * category: [Attribute(...)], * value: [Measure(...)], * breakBy: [Attribute(...)] * }, * filters: [Filter(...)] * } * * Output: * { * chartType: 'column', * dataOptions: { * category: ['DM.Commerce.Date.Years'], * value: [ * { function: 'measureFactory.sum', args: ['DM.Commerce.Revenue', 'Total Revenue'] } * ], * breakBy: [{ column: 'DM.Commerce.Gender', sortType: 'sortAsc' }] * }, * filters: [ * { function: 'filterFactory.members', args: ['DM.Commerce.Date.Years', ['2024-01-01T00:00:00']] } * ] * } * * @param chartProps - Partial chart props with chartType and dataOptions * @returns NlqTranslationResult with ChartJSON or errors * @internal */ export declare const translateChartToJSON: (chartProps: Partial) => NlqTranslationResult;