/** * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options */ import type { EditorRelaxedConstructor } from '@ckeditor/ckeditor5-integrations-common'; import type { Editor, EditorConfig, 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: EditorRelaxedConstructor, _config?: WatchdogConfig); /** * Sets the creator function. */ setCreator(creator: EditorRelaxedCreatorFunction): 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(sourceElementOrData: HTMLElement | string, config: EditorConfig): Promise; create(config: EditorConfig): Promise; /** * Destroys the editor instance. */ destroy(): Promise; } export type EditorRelaxedCreatorFunction = (...args: any) => Promise;