import { Plugin, PluginKey, Transaction, EditorState } from "prosemirror-state";
import { DecorationSet } from "prosemirror-view";
export declare const loadingDecorationKey: PluginKey<LoadingDecorationState>;
interface LoadingDecorationState {
    decorationSet: DecorationSet;
    hasDecoration: boolean;
}
export declare const textLoadingCommands: {
    toggleLoadingDecoration: (state: EditorState, dispatch: ((tr: Transaction) => void) | undefined, loadingHtml?: string) => boolean;
    removeLoadingDecoration: (state: EditorState, dispatch: ((tr: Transaction) => void) | undefined) => boolean;
};
/**
 * This plugin is used to display streaming content from an LLM.
 */
export declare const textLoadingDecorationPlugin: () => Plugin<LoadingDecorationState>;
export {};
