import type { WatermarkFormat } from './WatermarkFormat'; import type { EditorPlugin, IEditor, PluginEvent } from 'roosterjs-content-model-types'; /** * A watermark plugin to manage watermark string for roosterjs */ export declare class WatermarkPlugin implements EditorPlugin { protected watermark: string; private editor; private format; private isShowing; private darkTextColor; private disposer; /** * Create an instance of Watermark plugin * @param watermark The watermark string */ constructor(watermark: string, format?: WatermarkFormat); /** * 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; /** * Handle events triggered from editor * @param event PluginEvent object */ onPluginEvent(event: PluginEvent): void; private onCompositionStart; private update; private showHide; protected show(editor: IEditor): void; private applyWatermarkStyle; protected hide(editor: IEditor): void; }