import type { EditorPlugin, IEditor, PluginEvent } from 'roosterjs-editor-types'; /** * Automatically transform -- into hyphen, if typed between two words. */ export default class AutoFormat implements EditorPlugin { private editor; private lastKeyTyped; /** * Get a friendly name of this plugin */ getName(): string; /** * Initialize this plugin * @param editor The editor instance */ initialize(editor: IEditor): void; /** * Dispose this plugin */ dispose(): void; /** * Handle events triggered from editor * @param event PluginEvent object */ onPluginEvent(event: PluginEvent): void; }