/** * @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/aicore/aicore * @publicApi */ import { ContextPlugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core"; import { AIConnector } from "./aiconnector.js"; import { AIModels } from "./model/aimodels.js"; import { AIContextLibrary } from "./model/aicontextlibrary.js"; /** * A shared, context-level home for cross-feature AI state. * * It owns a single {@link module:ai/aicore/model/aimodels~AIModels} instance so the model list is * fetched once and shared across all AI features (chat, quick actions, review mode, gateway) instead * of each feature building its own. Access it via {@link #models}. * * It owns a single {@link module:ai/aicore/model/aicontextlibrary~AIContextLibrary} instance * so the list of contexts available to the current token is fetched once and shared. Access it via * {@link #contextLibrary}. */ export declare class AICore extends ContextPlugin { /** * The shared model registry — fetched once and shared across all AI features. */ models: AIModels; /** * The shared context library, fetched once and shared across all AI features. */ contextLibrary: AIContextLibrary; /** * @inheritDoc */ static get pluginName(): "AICore"; /** * @inheritDoc */ static override get isOfficialPlugin(): true; /** * @inheritDoc */ static override get isPremiumPlugin(): true; /** * @inheritDoc */ static get requires(): PluginDependenciesOf<[AIConnector]>; /** * @inheritDoc */ init(): void; }