export declare type LabelPosition = 'left' | 'right'; export declare type IconSize = 'xsmall' | 'small' | 'medium' | 'large'; /** * @slot default - Use this for content that will be visible on render * @slot hidden - Use this for content that will be hidden on render * @part opened | closed - Represents the parent element when the `hidden` content is opened or closed * @part expansion-wrapper opened | closed - Represents the `div` wrapper for the button + hidden content. `opened` or `closed` is added depending on state. * @part button - Represents the button rendered that displays hidden content when clicked * @part button-label - Represents the `span` surrounding the button's label * @part hidden-content - Represents the `div` surrounding the hidden content * @part icon-close - Represents the `img` (if source provided) or default `svg` element * @part icon-expand - Represents the `img` (if source provided) or default `svg` element * @part icon-wrapper-expand - Represents the `span` that surrounds the expand icon * @part icon-wrapper-close - Represents the `span` that surrounds the close icon */ export declare class DxpTruncate { el: HTMLDxpTruncateElement; /** * (optional) Text displayed for expansion link */ labelExpand: string; /** * (optional) Icon to display alongside expand label */ iconSrcExpand?: string; /** * (optional) Text displayed for close link */ labelClose?: string; /** * (optional) Icon to display alongside close label */ iconSrcClose?: string; /** * (optional) Controls the icon size */ iconSize: IconSize; /** * (optional) Sets default state to open on render */ opened: boolean; /** * (optional) Changes which side the icon will appear on */ labelPosition: LabelPosition; hidden?: boolean; componentWillLoad(): void; private handleHiddenContent; private getTruncateLabel; private getIconSource; render(): any; }