import { UpdateExtension } from '@uidu/editor-common';
import { MacroProvider } from '@uidu/editor-common/provider-factory';
import { Node as PmNode, Schema, Slice } from 'prosemirror-model';
import { EditorState } from 'prosemirror-state';
import { Command, CommandDispatch } from '../../types';
export declare const updateExtensionParams: (updateExtension: UpdateExtension<object>, node: {
    node: PmNode;
    pos: number;
}) => (state: EditorState, dispatch?: CommandDispatch) => Promise<void>;
export declare const editExtension: (macroProvider: MacroProvider | null, allowNewConfigPanel?: boolean, updateExtension?: UpdateExtension<object>) => Command;
/**
 * Lift content out of "open" top-level bodiedExtensions.
 * Will not work if bodiedExtensions are nested, or when bodiedExtensions are not in the top level
 */
export declare const transformSliceToRemoveOpenBodiedExtension: (slice: Slice, schema: Schema) => Slice;
