type CollapsibleProps = { text: string; /** * Overrides default `Collapsed Lines` count with an explicit pixel value, snapped to whole text rows * internally. Treated as a max-height cap unless `reserveCollapsedHeight` is true. */ maxCollapsedHeightPx?: number; /** * Maximum height of the expanded state in pixels. * Content scrolls rather than exceeding this limit. No cap when omitted. */ maxExpandedHeightPx?: number; /** * When true the component always occupies exactly `collapsedHeight` pixels even when * text is shorter — prevents widget layout shifts during data loads. * Defaults to false (`max-height` behaviour, container shrinks to content). */ reserveCollapsedHeight?: boolean; /** Disables collapsing entirely. */ noCollapse?: boolean; /** * Shows a loading overlay at the settled collapsed height. * Only renders `LoadingOverlay` (which requires SisenseContext) when this is `true`. */ isLoading?: boolean; /** Shows an error state instead of content. */ isError?: boolean; /** Fired when the collapsed state toggles. */ onCollapsedChange?: (isCollapsed: boolean) => void; /** Additional CSS class applied to the text container. */ textClassName?: string; /** * When true, renders an AI disclaimer line below the narrative text. * The disclaimer is always visible (not clipped when collapsed) but its height is * subtracted from the available text area so the total component height stays within * the configured limit. Defaults to false. */ showDisclaimer?: boolean; }; /** * Text container with an expand/collapse button for text that overflows the collapsed height. * * Uses `max-height` + `overflow: hidden` when collapsed (not `line-clamp`), because * `white-space: pre-wrap` is incompatible with `-webkit-line-clamp` in browsers. * * @internal */ export default function Collapsible({ text, maxCollapsedHeightPx, maxExpandedHeightPx, reserveCollapsedHeight, noCollapse, isLoading, isError, onCollapsedChange, textClassName, showDisclaimer, }: CollapsibleProps): import("react/jsx-runtime").JSX.Element; export {};