import { fsm2 } from "@heydovetail/ui-components"; import { Plugin, EditorState } from "prosemirror-state"; export interface PluginState { type: "default"; /** * The color of the selection. */ color: string; } export declare const transition: (state: CurrentStateShape) => CurrentStateShape extends PluginState ? fsm2.Transition { type: "default"; color: string; }; }; }, { default: { withColor: ({ type }: PluginState, { color }: { color: string; }) => { type: "default"; color: string; }; }; } extends { [key in CurrentStateShape["type"]]: infer T; } ? T : never> : never; declare const setPluginState: (env: { state: EditorState>; tr?: import("prosemirror-state").Transaction> | undefined; dispatch?: ((tr: import("prosemirror-state").Transaction>) => void) | undefined; }, newPluginState: PluginState | ((prevPluginState: PluginState) => PluginState)) => void; export { setPluginState }; /** * A plugin that renders the visualises the editor selection when the editor is * blurred. */ export declare class BlurSelectionPlugin extends Plugin { constructor({ color, skip }: { color: string; skip: (editor: EditorState) => boolean; }); }