/** * @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 */ /** * @module ai/aieditorintegration/aieditorintegration * @publicApi */ import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core"; import { Dialog } from "@ckeditor/ckeditor5-ui"; import { AIToggleButtonUI } from "./aitogglebutton/aitogglebuttonui.js"; import { AIChatBalloon } from "../aichat/aichatballoon.js"; import { SuggestionsConversion } from "@ckeditor/ckeditor5-collaboration-core"; /** * The AI Editor Integration plugin. It registers AI-related components in the editor * and provides the necessary UI elements for AI functionality. * * This plugin works alongside context plugins that provide specific AI features, * handling the editor-level integration and toolbar controls. */ export declare class AIEditorIntegration extends Plugin { /** * @inheritDoc */ static get requires(): PluginDependenciesOf<[AIToggleButtonUI, AIChatBalloon, SuggestionsConversion]>; /** * The `Dialog` plugin used by this editor's AI features. * * `AIEditorIntegration` is the single point that has a real, direct dependency on `Dialog` * (via `AIChatBalloon`). Exposing it here lets `ContextPlugin`s — which cannot declare `Dialog` * in their own `requires`, since it is not a context plugin — reach it through this integration * point instead of looking it up on the editor's plugin collection by string name. */ get dialog(): Dialog; /** * @inheritDoc */ static get pluginName(): "AIEditorIntegration"; /** * @inheritDoc */ static override get isOfficialPlugin(): true; /** * @inheritDoc */ static override get isPremiumPlugin(): true; }