/** * @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 collaboration-core/utils/confirmmixin */ import type { View } from '@ckeditor/ckeditor5-ui'; import type { Locale, Mixed } from '@ckeditor/ckeditor5-utils'; /** * Adds interface for showing confirmation view in the specific for `CommentThreadView` and `CommentView` structure * Confirm is always set to the `content` collection at the last position. */ export declare function ConfirmMixin) => View>(base: Base): Mixed; export interface ConfirmApi { isConfirm: boolean; locale: Locale; showConfirm(message: string, element: Element): Promise; cancelConfirm(): void; } export type RemoveConfirmEvent = { name: 'removeConfirm'; args: []; };