import { ShapeTypeEnum } from '../../constants'; import type { TextAttributes } from '../../types'; export type ID = string; interface BaseShapeProps { attributes: Record; } export interface GeometryProps extends BaseShapeProps { type: ShapeTypeEnum.Rectangle | ShapeTypeEnum.Circle | ShapeTypeEnum.Ellipse | ShapeTypeEnum.Line | ShapeTypeEnum.Polyline | ShapeTypeEnum.Polygon | ShapeTypeEnum.Path | ShapeTypeEnum.Image; } export interface TextProps extends BaseShapeProps { type: ShapeTypeEnum.Text; textContent: string; attributes: TextAttributes; } export type ElementProps = GeometryProps | TextProps; export {};