/** * @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 { Editor, EditorWatchdog } from 'ckeditor5'; import type { LifeCycleElementSemaphore } from './LifeCycleElementSemaphore.js'; import type { EditorWatchdogAdapter } from '../EditorWatchdogAdapter.js'; export type EditorSemaphoreMountResult = { /** * Holds the instance of the editor if `props.disableWatchdog` is set to true. */ instance: TEditor; /** * An instance of EditorWatchdog or an instance of EditorWatchdog-like adapter for ContextWatchdog. * It holds the instance of the editor under `this.watchdog.editor` if `props.disableWatchdog` is set to false. */ watchdog: EditorWatchdog | EditorWatchdogAdapter | null; }; export type LifeCycleEditorSemaphore = LifeCycleElementSemaphore>;