import type { TextAlign, TextColor, TextSize, TextTag, TextWeight } from './types'; import type { Theme } from '../../utils/styles'; /** * @component diwa-text * * A semantically correct text renderer that maps a visual type scale onto * the correct HTML element. Mirrors the Diwa text API contract. * * Usage: * Section title * Supporting detail * Truncated text * * @slot default — Text content. Can include inline elements. */ export declare class DiwaText { /** Per-component theme override. */ theme: Theme; /** HTML element to render. Choose based on semantic context. */ tag: TextTag; /** Font size tier. Maps to the diwa type scale. */ size: TextSize; /** Font weight. */ weight: TextWeight; /** Horizontal alignment. `start` and `end` are RTL-aware. */ align: TextAlign; /** * Colour alias. Use `inherit` to pass through the surrounding colour unchanged — * useful inside buttons, table cells, or other styled containers. */ color: TextColor; /** * Clip overflow to a single line with a trailing ellipsis. * The host element must have a defined width for this to take effect. */ ellipsis: boolean; render(): any; } //# sourceMappingURL=diwa-text.d.ts.map