import type { DomToModelOptionForSanitizing, EditorPlugin, IEditor, PluginEvent } from 'roosterjs-content-model-types'; /** * Paste plugin, handles BeforePaste event and reformat some special content, including: * 1. Content copied from Word * 2. Content copied from Excel * 3. Content copied from Word Online or OneNote Online * 4. Content copied from Power Point */ export declare class PastePlugin implements EditorPlugin { private allowExcelNoBorderTable?; private domToModelForSanitizing; private editor; /** * Construct a new instance of Paste class * @param unknownTagReplacement Replace solution of unknown tags, default behavior is to replace with SPAN * @param allowExcelNoBorderTable Allow table copied from Excel without border */ constructor(allowExcelNoBorderTable?: boolean | undefined, domToModelForSanitizing?: Pick); /** * Get name of this plugin */ getName(): string; /** * The first method that editor will call to a plugin when editor is initializing. * It will pass in the editor instance, plugin should take this chance to save the * editor reference so that it can call to any editor method or format API later. * @param editor The editor object */ initialize(editor: IEditor): void; /** * The last method that editor will call to a plugin before it is disposed. * Plugin can take this chance to clear the reference to editor. After this method is * called, plugin should not call to any editor method since it will result in error. */ dispose(): void; /** * Core method for a plugin. Once an event happens in editor, editor will call this * method of each plugin to handle the event as long as the event is not handled * exclusively by another plugin. * @param event The event to handle: */ onPluginEvent(event: PluginEvent): void; private setEventSanitizers; }