import { type IExecutionConfig, type IGenAIVisualization, type IInsight } from "@gooddata/sdk-model"; import type { IChatConversationMultipartLocalPart } from "../model.js"; /** * A renderable what-if scenario with optional execution config overrides. * @internal */ export interface IWhatIfRenderableScenario { /** * Display label for the scenario. */ label: string; /** * Execution config with measure definition overrides. Undefined for baseline. */ execConfig?: IExecutionConfig; /** * Whether this scenario represents the unmodified baseline. */ isBaseline: boolean; } /** * Interface representing the definition of a "What-If" analysis. */ export interface IWhatIfDefinition { scenarios: IWhatIfRenderableScenario[]; insight: IInsight; } /** * Maps a visualization's what-if config to an array of renderable scenarios. * * @param visualization - The GenAI visualization definition. * @returns Array of renderable scenarios, or undefined if no what-if config is present. * @internal */ export declare function mapVisualizationWhatIfToScenarios(visualization?: IGenAIVisualization): IWhatIfRenderableScenario[] | undefined; /** * Loads what-if scenarios from a JSON file. * @returns Array of renderable scenarios, or undefined if the file is not found or invalid. * @internal */ export declare function loadWhatIfScenarios(parts?: IChatConversationMultipartLocalPart[]): IWhatIfDefinition | undefined; //# sourceMappingURL=whatIfMapping.d.ts.map