import type { DiagramEditor } from "embed-drawio/dist/es/core/editor"; import type { DiagramViewer } from "embed-drawio/dist/es/core/viewer"; export declare const loadEditor: () => Promise; export declare const loadViewer: () => Promise; export declare const getSvg: (xml: XMLDocument | string) => Promise; export declare const makeEditor: (lang: "en" | "zh", init: string | null, onSave: (xml: Element) => void) => Promise<{ start: () => void; }>; export declare const diagramPreview: (xml: string) => Promise; export declare const diagramDownload: (xml: string) => Promise;