import { EditorState, EditorView, Schema, Plugin, PluginKey } from '../../prosemirror';
export declare type StateChangeHandler = (state: ClearFormattingState) => any;
export declare class ClearFormattingState {
    formattingIsPresent: boolean;
    private state;
    private markTypes;
    private activeMarkTypes;
    private changeHandlers;
    constructor(state: EditorState<any>);
    subscribe(cb: StateChangeHandler): void;
    unsubscribe(cb: StateChangeHandler): void;
    update(newEditorState: EditorState<any>): void;
    clearFormatting(view: EditorView): void;
    private triggerOnChange();
    private markIsActive(mark);
    private blockStylingIsPresent;
}
export declare const stateKey: PluginKey;
export declare const plugin: Plugin;
declare const plugins: (schema: Schema<any, any>) => Plugin[];
export default plugins;
