import type { RefAttributes } from "react"; import type { DOMProps } from "../../types"; import type { AccordionProps } from "../Accordion/Accordion"; import type { TextProps } from "../Text/Text"; import "./ExpandableText.css"; export type ExpandableTextElementType = HTMLDivElement; export interface ExpandableTextProps extends DOMProps, RefAttributes { /** The text content to display (can be plain text or HTML) */ text: string; /** Maximum number of lines to show when collapsed */ maxLines?: number; /** Breakpoint at which collapsing should be applied. If not provided, collapsing is always applied */ breakpoint?: "xs" | "sm" | "md" | "lg" | "xl"; /** Text for the expand trigger */ showText?: string; /** Text for the collapse trigger */ hideText?: string; /** Custom class name for the container */ className?: string; /** Props to pass to the Text component */ textProps?: Partial; /** Props to pass to the Accordion component */ accordionProps?: Partial; /** Callback when expansion state changes */ onToggle?: (expanded: boolean) => void; } export declare function ExpandableText({ ref, ...props }: ExpandableTextProps): import("react/jsx-runtime").JSX.Element; export declare namespace ExpandableText { var displayName: string; }