import { SafePlugin } from '@uidu/editor-common/safe-plugin';
import { EditorView } from 'prosemirror-view';
import { Dispatch } from '../../event-dispatcher';
export declare function createPlugin(eventDispatch: Dispatch, onSave?: (editorView: EditorView) => void): SafePlugin | undefined;
declare const saveOnEnterPlugin: (onSave?: any) => {
    name: string;
    pmPlugins(): {
        name: string;
        plugin: ({ dispatch }: {
            dispatch: any;
        }) => SafePlugin<any, any>;
    }[];
};
export default saveOnEnterPlugin;
