import * as React from 'react'; import { TLBounds } from '@tldraw/core'; import { TextShape, TDMeta, TDShapeType, TransformInfo, AlignStyle, ListType } from '../../../types'; import { TDShapeUtil } from '../TDShapeUtil'; declare type T = TextShape; declare type E = HTMLDivElement; export declare class TextUtil extends TDShapeUtil { type: TDShapeType.Text; isAspectRatioLocked: boolean; canEdit: boolean; canBind: boolean; canClone: boolean; bindingDistance: number; getShape: (props: Partial) => T; texts: Map; Component: React.ForwardRefExoticComponent, "bounds" | "meta" | "isGhost" | "isEditing" | "isSelected" | "shape" | "isBinding" | "events" | "onShapeBlur" | "onShapeChange" | "asset" | "isHovered" | "isChildOfSelected"> & React.RefAttributes>; Indicator: (props: { shape: TextShape; meta: any; isHovered: boolean; isSelected: boolean; bounds: import("sn-wb-tldraw-core").TLBounds; }) => JSX.Element; getBounds: (shape: T) => TLBounds; shouldRender: (prev: T, next: T) => boolean; transform: (shape: T, bounds: TLBounds, { initialShape, scaleX, scaleY }: TransformInfo) => Partial; transformSingle: (shape: T, bounds: TLBounds, { initialShape, scaleX, scaleY, type }: TransformInfo) => Partial | void; getTextWidth(text: string, font: string): number; onDoubleClickBoundsHandle: (shape: T) => { style: { scale: number; color: import("../../../types").ColorStyle; size: import("../../../types").SizeStyle; dash: import("../../../types").DashStyle; font?: import("../../../types").FontStyle | undefined; textAlign?: AlignStyle | undefined; isFilled?: boolean | undefined; textWeight: import("../../../types").TextWeight; listType: ListType; textDecoration: string; fontStyle: string; bounds: number[]; }; point: number[]; }; getSvgElement: (shape: T) => SVGElement | void; } export {}; //# sourceMappingURL=TextUtil.d.ts.map