import type { TextRun } from './model.js'; import type { RelationshipAllocator } from './relationship-allocator.js'; import { type ParagraphRanges } from './write-ranges.js'; import { type XmlDocument, type XmlElement } from './xml.js'; /** * One modeled run's source element, with the hyperlink or simple field that wrapped it (if any). * A simple field without a cached result has a slot with no element. */ export interface InlineSlot { element?: XmlElement; container?: XmlElement; } /** * Collects the paragraph's modeled runs in the same order the parser produced them. Returns * `undefined` when the paragraph holds inline content this editor cannot safely regenerate. * `w:pPr` and bookmarks are handled by the caller. */ export declare function collectInlineSlots(paragraph: XmlElement): InlineSlot[] | undefined; /** Top-level paragraph children that `buildInlineContent` output replaces. */ export declare function replaceableInlineChildren(paragraph: XmlElement): XmlElement[]; /** Builds the paragraph's ordered top-level inline nodes from the model's flat run list. */ export declare function buildInlineContent(doc: XmlDocument, runs: TextRun[], base: TextRun[] | undefined, slots: InlineSlot[], allocator?: RelationshipAllocator, ranges?: ParagraphRanges): XmlElement[]; //# sourceMappingURL=write-inline.d.ts.map