/** * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options */ import type { Editor, EditorConfig, EditorWatchdogCreatorFunction, WatchdogConfig } from 'ckeditor5'; /** * A dummy watchdog class is used when the watchdog is disabled. * * It provides a compatible API but does not perform any monitoring or restarting. */ export declare class DisabledEditorWatchdog { /** * The editor instance. */ editor: TEditor | null; /** * The creator function. */ private _creator?; /** * The destructor function. */ private _destructor?; constructor(_editorConstructor: { create(sourceElementOrData: HTMLElement | string, config?: EditorConfig): Promise; }, _config?: WatchdogConfig); /** * Sets the creator function. */ setCreator(creator: EditorWatchdogCreatorFunction): void; /** * Sets the destructor function. */ setDestructor(destructor: (editor: TEditor) => Promise): void; /** * A dummy implementation of the `on` method. */ on(_event: string, _callback: (...args: Array) => void): void; /** * Creates the editor instance. */ create(elementOrData: HTMLElement | string, config?: EditorConfig): Promise; /** * Destroys the editor instance. */ destroy(): Promise; }