import type { ICommentOption } from '../option'; import type { IRectangleShape } from './i-rectangle-shape'; export interface IComment extends IRectangleShape { new (option: ICommentOption, hoverOption: ICommentOption, errorOption: ICommentOption, id?: string): IComment; setComments(comments: Array): void; getComments(): Array; hasComment(comment: string): boolean; addComment(comment: string): void; removeComment(comment: string): void; }