/** * Paragraph-level builder functions for DOCX documents. * * Includes paragraph, textParagraph, heading, hyperlink, bookmarks, * comment markers, and track-change run wrappers. */ import type { Paragraph, ParagraphProperties, ParagraphChild, Run, RunProperties, CommentRangeStart, CommentRangeEnd, CommentReference, InsertedRun, DeletedRun, MovedFromRun, MovedToRun, MoveRangeMarker, RevisionInfo } from "../types.js"; /** Create a paragraph. */ export declare function paragraph(children: ParagraphChild[], properties?: ParagraphProperties): Paragraph; /** Create a simple text paragraph. */ export declare function textParagraph(content: string, properties?: ParagraphProperties & { run?: RunProperties; }): Paragraph; /** Create a heading paragraph. Accepts plain text or an array of runs for mixed formatting. */ export declare function heading(content: string | ParagraphChild[], level: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9): Paragraph; /** Create a hyperlink. */ export declare function hyperlink(linkText: string, options: { rId?: string; url?: string; anchor?: string; tooltip?: string; /** Document location bookmark / fragment id (`w:docLocation`). */ docLocation?: string; /** Target frame name for web views (`w:tgtFrame`). */ tgtFrame?: string; /** Whether the hyperlink has been visited (`w:history`). */ history?: boolean; properties?: RunProperties; }): ParagraphChild; /** Create a bookmark start. */ export declare function bookmarkStart(id: number, name: string): ParagraphChild; /** Create a bookmark end. */ export declare function bookmarkEnd(id: number): ParagraphChild; /** Create a comment range start marker. */ export declare function commentRangeStart(id: number): CommentRangeStart; /** Create a comment range end marker. */ export declare function commentRangeEnd(id: number): CommentRangeEnd; /** Create a comment reference (inside paragraph children). */ export declare function commentReference(id: number): CommentReference; /** Create an inserted run (track changes). */ export declare function insertedRun(run: Run, revision: RevisionInfo): InsertedRun; /** Create a deleted run (track changes). */ export declare function deletedRun(run: Run, revision: RevisionInfo): DeletedRun; /** Create a moved-from run (track changes — source of a move). */ export declare function movedFromRun(run: Run, revision: RevisionInfo): MovedFromRun; /** Create a moved-to run (track changes — destination of a move). */ export declare function movedToRun(run: Run, revision: RevisionInfo): MovedToRun; /** Create a move range start marker. */ export declare function moveFromRangeStart(id: number, author: string, options?: { date?: string; name?: string; }): MoveRangeMarker; /** Create a move range end marker. */ export declare function moveFromRangeEnd(id: number): MoveRangeMarker; /** Create a move-to range start marker. */ export declare function moveToRangeStart(id: number, author: string, options?: { date?: string; name?: string; }): MoveRangeMarker; /** Create a move-to range end marker. */ export declare function moveToRangeEnd(id: number): MoveRangeMarker;