/** * @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/toolkit/createfragmentfromrange */ import { ModelDocumentFragment, ModelRange, type ModelNode } from "@ckeditor/ckeditor5-engine"; /** * Copies what a range covers, leaving the tree it was read from as it is. The copies belong to no parent, so they can * be put wherever they are needed - which is why this is nodes and not a fragment. * * @param range The range to copy. */ export declare function createNodesFromRange(range: ModelRange): Array; /** * The same copy as {@link ~createNodesFromRange}, as a model document fragment that also carries the markers. * * Only the markers the range covers whole come along, since a marker is carried as one: a marker reaching outside the * range would arrive cut down to the part inside it, which is worse than leaving it where it is. * * @param range The range to copy. Flat: both ends sit in one parent, which is how a change describes itself. */ export declare function createFragmentFromRange(range: ModelRange): ModelDocumentFragment;