import { TextAnimationType, TextTypographyType } from './meta/types'; import { TypographyTagType } from "../../type/text"; import { TypographyTruncateType } from "../../type/text"; import { TypographyVariants } from "../../type/typography"; /** * @slot - Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here. * @category content */ export declare class MdsText { private randomTextOptions; private randomText; host: HTMLMdsTextElement; /** * Specifies if the text is animated when it is rendered */ readonly animation?: TextAnimationType; /** * Specifies the HTML tag of the element. With `p`, `li` or `figcaption` the text stops at the * reading measure (`max-w-text`), as the reset does for the plain tags */ tag: TypographyTagType; /** * Specifies the text string to the component instead of passing an HTML node */ readonly text?: string; /** * Specifies if the text shoud be truncated or should behave as a normal text */ readonly truncate?: TypographyTruncateType; /** * Specifies the font typography of the element. A title is written by its role (`page`, * `section`, `dialog`, `part`, `group`), which takes the style of that role, and the tag of * the level it is styled as unless `tag` gives the level of its place in the outline */ readonly typography: TextTypographyType; /** * Specifies the variant for `typography` */ readonly variant?: TypographyVariants; private animateText; /** * Read when the animation starts, not once at load. A text that loads outside the flat tree * (in the light DOM of a host that has not rendered its `` yet) gets `""` for every * custom property, its own `:host` ones included: a speed of 0 never lets the loop reach the * text. By the time the text changes the host is rendered, and a value set after load (a * theme, a class, `animation="yugop"` itself) is picked up too. */ private readAnimationCustomProps; componentWillRender(): void; textHandler(newValue?: string): void; render(): any; }