@firecms/core
Version:
Awesome Firebase/Firestore-based headless open-source CMS
17 lines (16 loc) • 775 B
TypeScript
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 {};