import { default as React, ReactNode } from 'react'; import { BreakpointSupport } from '../../../helpers'; import { ButtonProps } from '../../buttons/button/button'; type TruncateBreakpointProps = { /** * Additional class name */ className?: string; /** * Maximum number of characters to display * @default 200 */ maxLength?: number; }; export interface TruncateProps extends BreakpointSupport { /** * Text that will be truncated */ children: string; /** * Custom content to display at the end of truncated text * @default '...' */ ellipsis?: ReactNode; /** * Whether the truncated text should be expandable * @default true */ expandable?: boolean; /** * Override default button properties */ button?: Partial & { onClick: (e: React.MouseEvent, isTruncated: boolean) => void; }>; } export declare const Truncate: (props: TruncateProps) => JSX.Element; export default Truncate;