import type { EditorOptions, IEditor, LifecyclePluginState, PluginWithState, PluginEvent } from 'roosterjs-editor-types'; /** * @internal * Lifecycle plugin handles editor initialization and disposing */ export default class LifecyclePlugin implements PluginWithState { private editor; private state; private initialContent; private initializer; private disposer; private adjustColor; /** * Construct a new instance of LifecyclePlugin * @param options The editor options * @param contentDiv The editor content DIV */ constructor(options: EditorOptions, contentDiv: HTMLDivElement); /** * 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(): LifecyclePluginState; /** * Handle events triggered from editor * @param event PluginEvent object */ onPluginEvent(event: PluginEvent): void; }