import { MacroAttributes, MacroProvider, Providers } from '@uidu/editor-common/provider-factory';
import { Node as PmNode } from 'prosemirror-model';
import { EditorState } from 'prosemirror-state';
import { EditorView } from 'prosemirror-view';
import { CommandDispatch } from '../../types';
export declare const insertMacroFromMacroBrowser: (macroProvider: MacroProvider, macroNode?: PmNode, isEditing?: boolean) => (state: EditorState, dispatch?: CommandDispatch) => Promise<boolean>;
export declare const resolveMacro: (macro?: MacroAttributes, state?: EditorState, optionalAttrs?: object) => PmNode | null;
export declare const runMacroAutoConvert: (state: EditorState, text: String) => PmNode | null;
export declare const setMacroProvider: (provider: Providers['macroProvider']) => (view: EditorView) => Promise<boolean>;
