import type { VDTLine } from '../vdt.js'; import type { InlineSpan } from '../parse/index.js'; /** * Stamp the Markdown link targets of `spans` on the segments of `lines` * measured from them. The segments are matched character by character * against the spans' text — skipping the whitespace a line break swallows, * the soft hyphens and zero-width break opportunities the measurer inserted * and the hyphen a break adds — and a * segment holding any linked character takes that link's `href` (a word * glued to the link text, like its closing full stop, is part of the link * area). Characters the layout added (`inserted`: the 《》 of * `cjk.bookTitleMark: 'brackets'`, which are spans, and a warichu note's * brackets, which the composer adds and no span holds) are no character of * the text: their spans and segments are passed over, and never linked. * Returns `lines` itself when nothing is linked, or when the segments * cannot be matched (the block then simply has no live links). */ export declare function linkSegments(lines: VDTLine[], spans: readonly InlineSpan[]): VDTLine[]; //# sourceMappingURL=links.d.ts.map