import type { IEditor, PendingFormatStatePluginState, PluginEvent, PluginWithState } from 'roosterjs-editor-types'; /** * @internal * PendingFormatStatePlugin handles pending format state management */ export default class PendingFormatStatePlugin implements PluginWithState { private editor; private state; /** * Construct a new instance of PendingFormatStatePlugin * @param options The editor options * @param contentDiv The editor content DIV */ constructor(); /** * Get a friendly name of this plugin */ getName(): string; /** * Initialize this plugin. This should only be called from Editor * @param editor Editor instance */ initialize(editor: IEditor): void; /** * Dispose this plugin */ dispose(): void; /** * Get plugin state object */ getState(): PendingFormatStatePluginState; /** * Handle events triggered from editor * @param event PluginEvent object */ onPluginEvent(event: PluginEvent): void; private clear; private getCurrentPosition; private createPendingFormatSpan; }