import { GlobalSlimmers } from '../../vega-slimmer/vega-slimmer-core'; import { VegaTextTooltipProps } from './types'; import { VegaTextTooltipRenderer } from './slimmers/renderers/vega-text-tooltip-renderer'; import { VegaComponentUsageRuntimeMetricsSlimmer } from '../../helpers/slimmers/component-usage-runtime-metrics'; /** * @vegaVersion 1.9.1 */ export declare class VegaText { protected readonly globalSlimmers: GlobalSlimmers; protected readonly tooltipRenderer: VegaTextTooltipRenderer; protected vegaComponentUsageRuntimeMetricsSlimmer: VegaComponentUsageRuntimeMetricsSlimmer; host: HTMLVegaTextElement; /** * Specifies the behavior of text when it exceeds the * available space within its container. * * @vegaVersion 1.18.0 */ overflow: 'ellipsis' | 'newline'; /** * Specifies the text content to display. * * @vegaVersion 2.89.0 */ text: string; /** * The below method is e2e-test covered in * @see{module:vega-text-with-dynamic-update-content} */ /** Watching the text prop. */ watchText(): void; /** * Specifies the properties of the vega-tooltip in vega-text. * * @vegaVersion 2.0.0 */ tooltip: VegaTextTooltipProps; /** * The below method is e2e-test covered in * @see{module:vega-text-with-tooltip-placement} */ /** Watching the tooltip prop. */ watchTooltip(): void; componentDidLoad(): void; /** * Renders the VegaText component. * span.placeholder-text is used as a placeholder to maintain an optimal, fixed width when the displayed text changes, thereby preventing anomalous line breaks caused by secondary width adjustments within a flex container. * span.width-checker is used to calculate the maximum length of text that can be displayed without overflow based on the available width, which is essential for the tooltip functionality to determine when to show the tooltip and what content to display in it. * * @returns {VegaText} The rendered JSX element. */ render(): VegaText; }