/** * @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/aichat/ui/feed/aichatfeedsuggestionitemactionsview */ import { type Locale } from '@ckeditor/ckeditor5-utils'; import { View } from '@ckeditor/ckeditor5-ui'; export declare const AI_REPLY_ACTIONS: readonly ["applySuggestion", "insertSuggestion"]; /** * A view for the actions of an AI suggestion item in the AI chat feed. * * It hosts a dropdown with actions that can be applied to the suggestion. */ export declare class AIChatFeedSuggestionItemActionsView extends View { /** * Specifies whether the view should be interactive or not. */ isEnabled: boolean; /** * Specifies whether the view should be visible or not. */ isVisible: boolean; /** * @observable */ isTrackChangesOn: boolean; /** * @inheritDoc */ constructor(locale: Locale, availableActions?: Array, areActionsDisabled?: boolean); /** * Updates the visibility of the actions view. */ updateVisibility(isVisible: boolean): void; } export type AIShowChangeInTextEvent = { name: 'showChangeInText'; args: [{ replyId: string; partIndex?: number; }]; }; export type AIInsertSuggestionEvent = { name: 'insertSuggestion'; args: [{ replyId: string; partIndex?: number; }]; }; export type AIApplySuggestionEvent = { name: 'applySuggestion'; args: [{ replyId: string; partIndex?: number; }]; }; export type AIRejectSuggestionEvent = { name: 'rejectSuggestion'; args: [{ replyId: string; partIndex: number; }]; }; export type AIMouseOverSuggestionEvent = { name: 'mouseOverSuggestion'; args: [{ replyId: string; partIndex: number; }]; }; export type AIMouseLeaveSuggestionEvent = { name: 'mouseLeaveSuggestion'; args: [{ replyId: string; partIndex: number; }]; }; export type AISuggestionActionName = typeof AI_REPLY_ACTIONS[number];