/** * This file centralizes the commands generated related to comment components */ import { MMELComment } from '../../../serialize/interface/supportinterface'; import { ModelAction } from '../model'; /** * Add a new comment to the model * @param m the comment object * @param pid the process ID where the comment is given on * @param parent the comment that this comment replys to. Undefined if this comment is not replying to others */ export declare function addCommentCommand(m: MMELComment, pid: string, parent?: string): import("../components/itemTemplate").AddAction & { act: "comment"; } & { attach?: { id: string; parent?: string | undefined; } | undefined; cascade?: ModelAction[] | undefined; } & { type: "model"; }; /** * Mark the comment as resolved or unresolved * @param com the comment to toggle the resolved flag */ export declare function resolveCommentCommand(com: MMELComment): import("../components/itemTemplate").EditAction & { act: "comment"; } & { attach?: { id: string; parent?: string | undefined; } | undefined; cascade?: ModelAction[] | undefined; } & { type: "model"; }; /** * Delete the comment * @param cid the comment ID * @param pid The process ID where the comment is given on. Not really needed in the action but it needed for undo. * @param parent The parent comment ID. Required for undo action. Undefined if it is not replying to other comments */ export declare function deleteCommentCommand(cid: string, pid: string, parent?: string): import("../components/itemTemplate").DeleteAction & { act: "comment"; } & { attach?: { id: string; parent?: string | undefined; } | undefined; cascade?: ModelAction[] | undefined; } & { type: "model"; }; //# sourceMappingURL=comment.d.ts.map