import { type Y } from '@blockeditor/store'; import type { SerializedXYWH } from '../index.js'; import { Bound } from '../utils/bound.js'; import type { IVec2 } from '../utils/vec.js'; import { type BaseProps, ElementModel } from './base.js'; import { FontFamily, type FontStyle, FontWeight, type TextAlign } from './common.js'; export type TextElementProps = BaseProps & { text: Y.Text; color: string; fontSize: number; fontFamily: FontFamily; fontWeight?: FontWeight; fontStyle?: FontStyle; textAlign: 'left' | 'center' | 'right'; hasMaxWidth?: boolean; }; export declare class TextElementModel extends ElementModel { static propsToY(props: Record): Record; xywh: SerializedXYWH; rotate: number; text: Y.Text; color: string; fontSize: number; fontFamily: FontFamily; fontWeight: FontWeight; fontStyle: FontStyle; textAlign: TextAlign; hasMaxWidth?: boolean; get type(): string; getNearestPoint(point: IVec2): IVec2; containedByBounds(bounds: Bound): boolean; intersectWithLine(start: IVec2, end: IVec2): import("../index.js").PointLocation[] | null; hitTest(x: number, y: number): boolean; } //# sourceMappingURL=text.d.ts.map