/*!
 * Jodit Editor (https://xdsoft.net/jodit/)
 * Released under MIT see LICENSE.txt in the project root for license information.
 * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
 */
/**
 * @module selection
 */
import type { Nullable } from "../../../types/index";
/**
 * Ranges of a selection that lies inside the given shadow tree.
 *
 * `window.getSelection()` stops at the shadow boundary and reports the host
 * instead of the node the caret is really in. `getComposedRanges` is the
 * standard way to ask past that boundary.
 *
 * @returns `null` when the browser has no `getComposedRanges`, or when neither
 * call shape returned ranges that point inside the shadow tree — in which case
 * there is nothing better to offer than the plain window selection.
 */
export declare function composedRanges(selection: Selection, shadowRoot: ShadowRoot): Nullable<StaticRange[]>;
