export declare enum TrimMode { Start = "start", Middle = "middle", End = "end" } export declare enum VerticalAlign { Top = "top", Middle = "middle", Bottom = "bottom" } export declare enum FitMode { Wrap = "wrap", Trim = "trim" } export declare enum TextAlign { Left = "left", Center = "center", Right = "right" } export type UnovisText = { text: string; fontSize?: number; fontFamily?: string; fontWeight?: number; color?: string; lineHeight?: number; marginTop?: number; marginBottom?: number; fontWidthToHeightRatio?: number; className?: string; width?: number; separator?: string | string[]; wordBreak?: boolean; }; export type UnovisWrappedText = UnovisText & { _lines: string[]; _maxWidth: number; _estimatedHeight: number; }; export type UnovisTextOptions = { x?: number; y?: number; width?: number; separator?: string | string[]; verticalAlign?: VerticalAlign | string; textAlign?: TextAlign | string; textRotationAngle?: number; fastMode?: boolean; wordBreak?: boolean; }; export type UnovisTextFrameOptions = UnovisTextOptions & { height?: number; }; export type UnovisFontInfo = { font: string; fontFamily: string; fontSizePx: number; };