import { FlowBlock } from '../../../../../../../layout-engine/contracts/src/index.js';
export type DecorationRange = {
    from: number;
    to: number;
};
/**
 * Splits text runs in flow blocks at decoration boundaries so that no run
 * spans across a boundary. This allows the decoration bridge to apply
 * classes only to runs fully inside a decoration range — background on the
 * actual text (like the highlight mark) without applying a document mark.
 *
 * @param blocks - Flow blocks from toFlowBlocks
 * @param ranges - Decoration ranges (e.g. from collectDecorationRanges)
 * @returns New blocks with runs split at boundaries (does not mutate input)
 */
export declare function splitRunsAtDecorationBoundaries(blocks: FlowBlock[], ranges: DecorationRange[]): FlowBlock[];
//# sourceMappingURL=SplitRunsAtDecorationBoundaries.d.ts.map