import { CreateLimitTextProps, CreateTextProps } from '../../types'; /** * Easy way to calculate text data. */ export declare function createText(props: T): Omit & { x: number; y: number; value: string; textHeight: number; textWidth: number; }; /** * Determine the anchor point position of the arc text based on the angle. */ export declare function createArcText(props: Omit & { angle: number; }): Omit<{ position: "top" | "bottom" | "center" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom"; x: number; y: number; value: Maybe; style?: Partial; stroke: MaybeGroup; strokeWidth: MaybeGroup; opacity: MaybeGroup; fillOpacity: MaybeGroup; strokeOpacity: MaybeGroup; strokeDasharray: MaybeGroup; rotation: MaybeGroup; hidden: boolean; mapping: (config: Pick, "container" | "theme"> & import("../../types").ElConfig<"area" | "arc" | "circle" | "curve" | "ellipse" | "image" | "line" | "path" | "polygon" | "rect" | "text"> & AnyObject) => void | Partial>; }> & { writingMode: "horizontal-tb" | "vertical-rl"; textDecoration: MaybeGroup<"line-through" | "overline" | "underline" | "none">; fontFamily: MaybeGroup; fontWeight: MaybeGroup; fontSize: MaybeGroup; shadow: MaybeGroup; format: Partial<{ percentage: boolean; thousandth: boolean; decimals: number; formatter: (value: Maybe) => string; }>; offset: Vec2; }> | undefined; offset?: number | undefined; angle: number; }, "x" | "y" | "value" | "style" | "offset" | "position"> & { x: number; y: number; value: string; textHeight: number; textWidth: number; }; /** * Determine the center point position of the arc text based on the angle. */ export declare function createRotatedArcText(props: Omit & { angle: number; radius: number; }): { rotation: number; angle: number; radius: number; x: number; y: number; value: string; textHeight: number; textWidth: number; }; /** * Control text width by resizing fontSize. */ export declare function createLimitText(props: CreateLimitTextProps): { fontSize: number; maxTextWidth: number; x: number; y: number; value: string; textHeight: number; textWidth: number; }; /** * TextBox Collision Detection. * @returns * Return collision or not. */ export declare function isTextCollision(text1: ReturnType, text2: ReturnType, paddingFactor?: number): boolean;