import { ExtendedChartWidgetProps } from '../types'; import { HttpClient } from '@sisense/sdk-rest-client'; import { QueryExecutionResult, QueryState } from '../../../services/nlq/nlq-service'; import { QueryResult } from '../../build-query/types'; /** Internal synthetic ids for chart-inline prior NLQ; never part of LLM-facing schemas. */ export declare const INLINE_PRIOR_NLQ_ID_PREFIX = "__inline_prior_nlq__:"; /** * Minimal {@link QueryResult} for {@link buildQueryEngine}'s `retrieveQuery` — * only `nlqResult.queryState` is read when resolving `priorQueryId`. */ export declare function minimalQueryResultShimFromQueryState(queryState: QueryState, syntheticQueryId: string): QueryResult; export type GenerateChartTableResult = { widgetProps: ExtendedChartWidgetProps; }; /** * Build table-phase chart widget props from an NLQ execution result (translate query JSON → columns). */ export declare function tableWidgetPropsFromNlqExecution(nlqResult: QueryExecutionResult, chartTitle: string): ExtendedChartWidgetProps; /** * Load table-phase widget props from a stored build-query result (verbatim reuse; no NLQ round-trip). */ export declare function loadChartTableFromQueryId(queryId: string, retrieveQuery: (queryId: string) => QueryResult | null, fallbackTitle: string): Promise; /** * Run NLQ / build-query and materialize a table-phase chart widget (no verbatim `queryId` path). * For verbatim reuse of a stored query, use {@link loadChartTableFromQueryId} from the caller. */ export declare const generateChartTable: (dataSourceTitle: string, queryPrompt: string, isNlqV3Enabled?: boolean, httpClient?: HttpClient, nlqCommonFilters?: unknown, priorQueryState?: QueryState, isNlqDeltaEnabled?: boolean, retrieveQuery?: (queryId: string) => QueryResult | null) => Promise; //# sourceMappingURL=generate-chart-table.d.ts.map