import { ErrorReporter, ErrorReportingHandler } from '@uidu/editor-common';
import { MarkSpec } from 'prosemirror-model';
import { Plugin } from 'prosemirror-state';
import { AnalyticsHandler } from '../analytics';
import { EditorConfig, EditorPlugin, PMPluginCreateConfig } from '../types';
export declare function sortByRank(a: {
    rank: number;
}, b: {
    rank: number;
}): number;
export declare function fixExcludes(marks: {
    [key: string]: MarkSpec;
}): {
    [key: string]: MarkSpec;
};
export declare function processPluginsList(plugins: EditorPlugin[]): EditorConfig;
export declare function createPMPlugins(config: PMPluginCreateConfig): Plugin[];
export declare function createErrorReporter(errorReporterHandler?: ErrorReportingHandler): ErrorReporter;
export declare function initAnalytics(analyticsHandler?: AnalyticsHandler): void;
