/** * @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/aireviewmode/aireviewmodecheckregistry */ import { type Context, type Editor, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core"; import { CKEditorError } from "@ckeditor/ckeditor5-utils"; import { AICore } from "../aicore/aicore.js"; import { AIConnector } from "../aicore/aiconnector.js"; import { AIErrorSink } from "../aicore/aierrorreporter.js"; import { AIReviewCoreCheckRegistry } from "../aireviewcore/aireviewcorecheckregistry.js"; import { type AIReviewCheckExtraDefinition } from "../aireviewcore/types.js"; import { AIReviewModeCheckList } from "./model/aireviewmodechecklist.js"; /** * Headless registry for the AI review check list. Owns the merge of built-in checks with `ai.review.extraCommands`, * the model list fetch required by custom/extra checks, and caching. * * Used by both `AIReviewModeController` (UI-driven flow) and `AIReviewGateway` (headless API) so they share the same source of truth * without the gateway depending on the UI controller. */ export declare class AIReviewModeCheckRegistry extends AIReviewCoreCheckRegistry { /** * @inheritDoc */ static get pluginName(): "AIReviewModeCheckRegistry"; /** * @inheritDoc */ static override get requires(): PluginDependenciesOf<[AIConnector, AIErrorSink, AICore]>; /** * @inheritDoc */ constructor(context: Context | Editor); /** * The error captured during the last models fetch, or `null` if the fetch succeeded * (or was not required because no custom/extra check was in scope). */ get modelsLoadError(): CKEditorError | null; /** * Reads the extra commands definitions from the configuration and returns * them as an array of `AIReviewCheckExtraDefinition` objects. */ getExtraChecks(): Array; }