///
import { WidgetProps } from '../../../domains/widgets/components/widget/types';
import type { WidgetNarrativeOptions } from '../core/widget-narrative-options.js';
/**
* Props for {@link WidgetNarrative}.
*
* @sisenseInternal
*/
export type WidgetNarrativeProps = {
/** Widget whose query drives the narrative (chart or pivot). */
widgetProps: WidgetProps;
/**
* `default` — collapsible narrative with AI feedback actions (same pattern as NLQ chart insights).
* `plain` — collapsible text only (similar to the `GetNlgInsights` component).
*/
variant?: 'default' | 'plain';
/** When false, the narrative query does not run (see {@link useWidgetNarrativeState}). */
enabled?: boolean;
} & WidgetNarrativeOptions;
/**
* Renders a natural-language narrative for chart or pivot `WidgetProps`. The request uses the same
* JAQL as the widget query (chart or pivot)—compose it next to or above a `ChartWidget` or
* `PivotTableWidget` with the same props.
*
* @example Widget header slot
* ```tsx
* }
* />
* ```
* @example Modal or custom layout (headless)
* ```tsx
* const { data, isLoading, supported } = useGetWidgetNarrative({ widgetProps });
* if (!supported) return null;
* return {isLoading ? '…' : data};
* ```
* @sisenseInternal
*/
export declare const WidgetNarrative: import("react").FunctionComponent;