/** * @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/extractselectionfromhtml */ import { type DocumentCompareSnapshotRange } from "./documentsnapshot.js"; /** * The marker group used to render a captured selection into serialized HTML. Each range is added as * `documentcompare-selection:` and downcast (opt-in via the `includeDocumentCompareSelection` option) to the * boundary elements below. */ export declare const SELECTION_MARKER = "documentcompare-selection"; /** The boundary element names the selection markers downcast to. */ export declare const SELECTION_START = "documentcompare-selection-start"; export declare const SELECTION_END = "documentcompare-selection-end"; /** * Strips the selection boundary elements from HTML serialized with the `includeDocumentCompareSelection` option. * * @param html HTML serialized with the selection boundary elements included. * @returns The clean HTML together with the selection as character offsets into it. */ export declare function extractSelectionFromHtml(html: string): { content: string; selection: Array; };