/** * @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/aisdk/dataidassigner */ import { type Editor } from "@ckeditor/ckeditor5-core"; import { type ViewDocumentFragment, type ViewElement } from "@ckeditor/ckeditor5-engine"; /** * Assigns a unique `data-id` to the structural view elements that lack one — container, empty and raw elements, plus * any element containing an id-bearing descendant (skipping `
`). Existing ids are preserved. */ export declare class DataIdAssigner { constructor(editor: Editor); /** * Assigns the missing `data-id`s across the given view fragment (or element). */ assign(view: ViewElement | ViewDocumentFragment): void; }