import { MonacoEditorProps, RefEditorInstance } from "@uiw/react-monacoeditor"; import * as monaco from "monaco-editor"; import React, { MutableRefObject } from "react"; export interface MonacoOptions { /** * Will receive the reference to the editor instance, the monaco instance, and the container * element. */ refs?: MutableRefObject[]; /** * Additional props to pass to the editor component. This will override the defaults defined by * this component. */ props?: Partial; /** * Additional options to pass to the editor component. This will override the defaults defined * by this compnent. */ options?: Partial; } export interface XmlEditorProps { /** * The xml to display in the editor. */ xml: string; /** * Whether this editor is currently active and visible to the user. */ active: boolean; /** * Callback to execute whenever the diagram's xml changes. * * @param xml The new xml */ onChanged: (xml: string) => void; /** * The options to pass to the monaco editor. */ monacoOptions?: MonacoOptions; /** * The class name applied to the host of the modeler. */ className?: string; } declare const _default: React.NamedExoticComponent; export default _default;