import { Context } from '../Context.js'; import { Shape, ShapeConfig } from '../Shape.js'; import { GetSet } from '../types.js'; export declare function stringToArray(string: string): string[]; export interface TextConfig extends ShapeConfig { direction?: string; text?: string; fontFamily?: string; fontSize?: number; fontStyle?: string; fontVariant?: string; textDecoration?: string; align?: string; verticalAlign?: string; padding?: number; lineHeight?: number; letterSpacing?: number; wrap?: string; ellipsis?: boolean; } export declare class Text extends Shape { textArr: Array<{ text: string; width: number; lastInParagraph: boolean; }>; _partialText: string; _partialTextX: number; _partialTextY: number; textWidth: number; textHeight: number; constructor(config?: TextConfig); _sceneFunc(context: Context): void; _hitFunc(context: Context): void; setText(text: string): this; getWidth(): any; getHeight(): any; getTextWidth(): number; getTextHeight(): number; measureSize(text: any): { actualBoundingBoxAscent: any; actualBoundingBoxDescent: any; actualBoundingBoxLeft: any; actualBoundingBoxRight: any; alphabeticBaseline: any; emHeightAscent: any; emHeightDescent: any; fontBoundingBoxAscent: any; fontBoundingBoxDescent: any; hangingBaseline: any; ideographicBaseline: any; width: any; height: number; }; _getContextFont(): string; _addTextLine(line: string): number; _getTextWidth(text: string): number; _setTextData(): void; _shouldHandleEllipsis(currentHeightPx: number): boolean; _tryToAddEllipsisToLastLine(): void; getStrokeScaleEnabled(): boolean; _useBufferCanvas(): boolean; direction: GetSet; fontFamily: GetSet; fontSize: GetSet; fontStyle: GetSet; fontVariant: GetSet; align: GetSet; letterSpacing: GetSet; verticalAlign: GetSet; padding: GetSet; lineHeight: GetSet; textDecoration: GetSet; text: GetSet; wrap: GetSet; ellipsis: GetSet; }