import { Plugin, PluginKey } from 'prosemirror-state';
export declare type StateChangeHandler = (fromPos: number, toPos: number) => any;
export declare class ReactNodeViewState {
    private changeHandlers;
    constructor();
    subscribe(cb: StateChangeHandler): void;
    unsubscribe(cb: StateChangeHandler): void;
    notifyNewSelection(fromPos: number, toPos: number): void;
}
export declare const stateKey: PluginKey<any>;
export declare const plugin: Plugin<ReactNodeViewState>;
declare const plugins: () => Plugin<ReactNodeViewState>[];
export default plugins;
