import type { MermaidConfig } from 'mermaid' with { 'resolution-mode': 'import' };
import type { Action, ExtensionAuto } from "../../../core/index.js";
import { MermaidAction } from "./MermaidSpecs/const.js";
export type MermaidOptions = {
    loadRuntimeScript: () => void;
    autoSave?: {
        enabled: boolean;
        delay?: number;
    };
    theme?: {
        dark: MermaidConfig['theme'];
        light: MermaidConfig['theme'];
    };
};
export declare const Mermaid: ExtensionAuto<MermaidOptions>;
declare global {
    namespace WysiwygEditor {
        interface Actions {
            [MermaidAction]: Action;
        }
    }
    interface Window {
        mermaidJsonp: Function[];
    }
}
