import { BuildChartContext, ExtendedChartWidgetProps, NullableChartType } from '../types'; import { QueryState } from '../../../services/nlq/nlq-service'; export type GenerateChartParams = { dataSourceTitle: string; queryPrompt: string; chartPrompt: string; chartType: NullableChartType; chartTitle: string; /** Skip data fetch — load this exact prior result verbatim (e.g. from a prior buildQuery call). */ queryId?: string | null; /** Carry this state forward as incremental context for structural revisions. Ignored when queryId is set. */ priorQueryState?: QueryState; }; export type GenerateChartOutput = { widgetProps: ExtendedChartWidgetProps; }; export declare const generateChart: ({ dataSourceTitle, queryPrompt, chartPrompt, chartType, chartTitle, queryId, priorQueryState, }: GenerateChartParams, context: BuildChartContext) => Promise;