import type { HttpClient } from '@sisense/sdk-rest-client'; import type { NarrativeRequest, NarrativeResponse } from './narrative-api-types.js'; /** Unified narrative endpoint. Try first; fall back to legacy on 404. */ export declare const UNIFIED_NARRATIVE_ENDPOINT = "api/v2/ai/narrative"; /** Legacy endpoint (used when unified narrative returns 404). */ export declare const LEGACY_NARRATIVE_ENDPOINT = "api/v2/ai/nlg/queryResult"; /** * Options for getNarrative. All endpoint choice logic lives in this module. * * @internal */ export type GetNarrativeOptions = { isUnifiedNarrationEnabled?: boolean; isSisenseAiEnabled?: boolean; }; /** * Fetches Narrative. Single place for endpoint logic: isUnifiedNarrationEnabled === false → legacy only; * otherwise try unified endpoint first, fall back to legacy on 404. * * @param httpClient - HttpClient instance * @param request - Narration request payload * @param options - Optional; isUnifiedNarrationEnabled (from props.isUnifiedNarrationEnabled) * @returns Promise with narration response * @internal */ export declare function getNarrative(httpClient: HttpClient, request: NarrativeRequest, options?: GetNarrativeOptions): Promise;