/** * @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 engine/model/utils/getselectedcontent */ import { type ModelDocumentFragment } from "../documentfragment.js"; import { type ModelDocumentSelection } from "../documentselection.js"; import { type Model } from "../model.js"; import { type ModelSelection } from "../selection.js"; /** * Gets a clone of the selected content. * * For example, for the following selection: * * ```html *

x

y

fir[st

se]cond

z

* ``` * * It will return a document fragment with such a content: * * ```html * st

se

* ``` * * @param model The model in context of which the selection modification should be performed. * @param selection The selection of which content will be returned. * @internal */ export declare function getSelectedContent(model: Model, selection: ModelSelection | ModelDocumentSelection): ModelDocumentFragment;