///
import { WidgetProps } from '../../../domains/widgets/components/widget/types';
import type { HookEnableParam } from '../../../shared/hooks/types';
/**
* Props for {@link WidgetNarrative}.
*
* @remarks
* Narrative options are read from `widgetProps.config.narrative` for chart and pivot widgets.
* Accepts {@link HookEnableParam}; `enabled` is forwarded to {@link useWidgetNarrativeState}.
* @sisenseInternal
*/
export type WidgetNarrativeProps = {
/** Widget whose query drives the narrative (chart or pivot). */
widgetProps: WidgetProps;
/** Fired when the collapsed state of the narrative text changes (expand/collapse mode only). */
onCollapsedChange?: (isCollapsed: boolean) => void;
/** Forwarded to {@link NarrativeCollapsible} — external height constraint in pixels. */
constrainedHeightPx?: number;
/** Forwarded to {@link NarrativeCollapsible} — max height constraint in pixels. (Limit after 'show more' is expanded) */
maxConstrainedHeightPx?: number;
} & HookEnableParam;
/**
* 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;