import { EditorNode } from '../../../editormodel'; import { ModelAction } from '../../model'; import { ElmAction } from '../elements'; /** * Handle the command to delete elements in the model * @param elms the elements in the model * @param ids Array of IDs of elements to be deleted * @returns The updated elements in the model */ export declare function delCommonElms(elms: Record, ids: string[]): Record; /** * Handle the command to add elements to the model * @param elms The elements in the model * @param items The new elements to be added * @returns The updated elements in the model */ export declare function addCommonElms(elms: Record, items: EditorNode[]): Record; /** * Handle the command to edit an element * @param elms The elements in the model * @param id The ID of the element to be edited * @param item The updated content of the element * @returns The updated elements in the model */ export declare function editCommonElms(elms: Record, id: string, item: EditorNode): Record; /** * Examine the action and generate cascade actions. * For edit action that the element ID is changed, a cascade action to replace all references of edges is issued * @param page Page ID * @param action The action about element * @returns The cascade action array for undo */ export declare function cascadeCheckElm(page: string, action: ElmAction): ModelAction[] | undefined; //# sourceMappingURL=common.d.ts.map