import React from "react"; import { DmnModelerOptions, DmnPropertiesPanelOptions } from "./editor/DmnEditor"; import { MonacoOptions } from "./editor/XmlEditor"; import { Event } from "./events"; export interface ModelerTabOptions { /** * This option disables the modeler tab. */ disabled?: boolean; /** * The options passed to the bpmn-js modeler. * * CAUTION: When this options object is changed, the old editor instance will be destroyed * and a new one will be created without automatic saving! */ dmnJsOptions?: any; /** * The options to control the appearance of the properties panel. */ propertiesPanelOptions?: DmnPropertiesPanelOptions; /** * The options to control the appearance of the modeler. */ modelerOptions?: DmnModelerOptions; /** * The class name to apply to the modeler tab root element. */ className?: string; } export interface XmlTabOptions { /** * This option disables the XML tab. */ disabled?: boolean; /** * The options to pass to the monaco editor. */ monacoOptions?: MonacoOptions; /** * The class name applied to the host of the modeler. */ className?: string; } export interface DmnModelerProps { /** * The class name applied to the root element. */ className?: string; /** * The xml to display in the editor. */ xml: string; /** * Called whenever an event occurs. */ onEvent: (event: Event) => void; /** * Options to customize the modeler tab. */ modelerTabOptions?: ModelerTabOptions; /** * Options to customize the XML tab. */ xmlTabOptions?: XmlTabOptions; } declare const DmnModeler: React.FC; export default DmnModeler;