/** * This file centralizes the commands generated related to registry and data class */ import { MMELReference } from '../../../serialize/interface/supportinterface'; import { EditorDataClass } from '../../editormodel'; import { RegistryCombined } from '../components/element/registry'; import { ModelAction } from '../model'; /** * Delete the registries from the model * @param ids an array of registry IDs */ export declare function delRegistryCommand(ids: string[]): import("../components/itemTemplate").DeleteAction & { act: "elements"; } & { subtask: "registry"; } & { act: "elements"; cascade?: ModelAction[] | undefined; } & { type: "model"; }; /** * Add the registries to the model * @param reg an array of Registry objects to be added to the model */ export declare function addRegistryCommand(reg: RegistryCombined): import("../components/itemTemplate").AddAction & { act: "elements"; } & { subtask: "registry"; } & { act: "elements"; cascade?: ModelAction[] | undefined; } & { type: "model"; }; /** * Edit the registry * @param id the registry ID * @param value the updated content of the Registry object */ export declare function editRegistryCommand(id: string, value: RegistryCombined): import("../components/itemTemplate").EditAction & { act: "elements"; } & { subtask: "registry"; } & { act: "elements"; cascade?: ModelAction[] | undefined; } & { type: "model"; }; /** * Add a new attribute to the registry. New reference may be created here. * @param id The ID of the Registry * @param value The updated contents of the Registry * @param refs The new references to be added to the model */ export declare function editImportRegistryCommand(id: string, value: RegistryCombined, refs: MMELReference[]): import("../hybird/distributor").RegistryImportReference & { act: "hybird"; actions?: ModelAction[] | undefined; } & { type: "model"; }; /** * Delete data classes from the model * @param ids an array of IDs of data classes */ export declare function delDCCommand(ids: string[]): import("../components/itemTemplate").DeleteAction & { act: "elements"; } & { subtask: "dc"; } & { act: "elements"; cascade?: ModelAction[] | undefined; } & { type: "model"; }; /** * Add new data classes to the model * @param dc the new data class object */ export declare function addDCCommand(dc: EditorDataClass): import("../components/itemTemplate").AddAction & { act: "elements"; } & { subtask: "dc"; } & { act: "elements"; cascade?: ModelAction[] | undefined; } & { type: "model"; }; /** * Edit the contents of the data class * @param id The ID of the data class object * @param value The updated content of the data class object */ export declare function editDCCommand(id: string, value: EditorDataClass): import("../components/itemTemplate").EditAction & { act: "elements"; } & { subtask: "dc"; } & { act: "elements"; cascade?: ModelAction[] | undefined; } & { type: "model"; }; /** * Add a new attribute to the data class. May add new references * @param id The ID of the data class * @param value The updated content of the data class * @param refs The new reference to be added to the model * @returns */ export declare function editImportDCCommand(id: string, value: EditorDataClass, refs: MMELReference[]): import("../hybird/distributor").DCImportReference & { act: "hybird"; actions?: ModelAction[] | undefined; } & { type: "model"; }; //# sourceMappingURL=data.d.ts.map