import { ChartType } from '@sisense/sdk-ui'; import { DataOptionsJSON } from '@sisense/sdk-ui/analytics-composer'; import { ColumnJSON, ExtendedChartWidgetProps, axesMappingSchema as axesMappingSchema } from '../types'; import { QueryExecutionResult } from '../../../services/nlq/nlq-service'; import { z } from 'zod/v4'; export type AssembleChartWidgetParams = { nlqResult: QueryExecutionResult; chartType: ChartType; axesMapping: z.infer; columnsJSON: ColumnJSON[]; title?: string; chartTitle: string; /** When rebinding, preserve the prior widget entity id. */ widgetId?: string; artifactId?: string; }; export declare const assembleChartWidget: ({ nlqResult, chartType, axesMapping, columnsJSON, title, chartTitle, widgetId, artifactId, }: AssembleChartWidgetParams) => ExtendedChartWidgetProps; /** * Assemble a chart widget reusing already-resolved DataOptionsJSON (skips generateChartRecommendations). * Returns null when translateChartFromJSON fails, allowing the caller to fall back gracefully. */ export declare const assembleChartWidgetFromDataOptions: ({ nlqResult, chartType, dataOptions, title, chartTitle, widgetId, artifactId, }: { nlqResult: QueryExecutionResult; chartType: string; dataOptions: DataOptionsJSON; title?: string; chartTitle: string; widgetId?: string; artifactId?: string; }) => ExtendedChartWidgetProps | null;