@arbidocs/blocks 0.4.100 → 0.4.102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/dist/agents/index.cjs +207 -207
  2. package/dist/agents/index.js +2 -2
  3. package/dist/{chunk-NJX774HB.js → chunk-5NQIBJPP.js} +3 -3
  4. package/dist/{chunk-NJX774HB.js.map → chunk-5NQIBJPP.js.map} +1 -1
  5. package/dist/chunk-6MG62I5B.cjs +272 -0
  6. package/dist/chunk-6MG62I5B.cjs.map +1 -0
  7. package/dist/{chunk-NW3LFDZL.cjs → chunk-DDYXFALG.cjs} +3 -3
  8. package/dist/{chunk-NW3LFDZL.cjs.map → chunk-DDYXFALG.cjs.map} +1 -1
  9. package/dist/chunk-EQB3WELX.js +269 -0
  10. package/dist/chunk-EQB3WELX.js.map +1 -0
  11. package/dist/{chunk-B7P73VHX.cjs → chunk-FAGQTB3D.cjs} +30 -214
  12. package/dist/chunk-FAGQTB3D.cjs.map +1 -0
  13. package/dist/{chunk-6HZNFOHW.js → chunk-G5JH2YMQ.js} +3 -3
  14. package/dist/{chunk-6HZNFOHW.js.map → chunk-G5JH2YMQ.js.map} +1 -1
  15. package/dist/{chunk-72PQ42YI.js → chunk-MYALCKDR.js} +34 -217
  16. package/dist/chunk-MYALCKDR.js.map +1 -0
  17. package/dist/{chunk-O24WPHLD.cjs → chunk-Y5XW57U4.cjs} +5 -5
  18. package/dist/{chunk-O24WPHLD.cjs.map → chunk-Y5XW57U4.cjs.map} +1 -1
  19. package/dist/{chunk-E2QWWLK5.js → chunk-YGREW5TZ.js} +3 -3
  20. package/dist/{chunk-E2QWWLK5.js.map → chunk-YGREW5TZ.js.map} +1 -1
  21. package/dist/{chunk-IE55TWIG.cjs → chunk-ZT2EBBSC.cjs} +5 -5
  22. package/dist/{chunk-IE55TWIG.cjs.map → chunk-ZT2EBBSC.cjs.map} +1 -1
  23. package/dist/connect/docx.cjs +6 -6
  24. package/dist/connect/docx.js +4 -4
  25. package/dist/connect/index.cjs +3 -3
  26. package/dist/connect/index.js +2 -2
  27. package/dist/document-tools/AdoptSignatureDialog.d.ts +25 -0
  28. package/dist/document-tools/DocumentToolButtons.d.ts +2 -0
  29. package/dist/document-tools/SignatureRequestBanner.d.ts +18 -0
  30. package/dist/document-tools/index.cjs +175 -0
  31. package/dist/document-tools/index.cjs.map +1 -1
  32. package/dist/document-tools/index.d.ts +3 -1
  33. package/dist/document-tools/index.js +168 -3
  34. package/dist/document-tools/index.js.map +1 -1
  35. package/dist/document-tools/viewer/GuidedSigningViewer.d.ts +26 -0
  36. package/dist/document-tools/viewer/SignatureFieldsOverlay.d.ts +41 -0
  37. package/dist/document-tools/viewer/SignatureRequestEditor.d.ts +26 -0
  38. package/dist/document-tools/viewer/index.cjs +983 -0
  39. package/dist/document-tools/viewer/index.cjs.map +1 -1
  40. package/dist/document-tools/viewer/index.d.ts +3 -0
  41. package/dist/document-tools/viewer/index.js +983 -5
  42. package/dist/document-tools/viewer/index.js.map +1 -1
  43. package/dist/docx/NativeDocxEditor.d.ts +1 -1
  44. package/dist/docx/definitions/DefinedTerms.d.ts +1 -12
  45. package/dist/docx/definitions/commands.d.ts +3 -27
  46. package/dist/docx/index.cjs +35 -39
  47. package/dist/docx/index.d.ts +1 -1
  48. package/dist/docx/index.js +3 -3
  49. package/dist/facts/index.cjs +1 -1
  50. package/dist/facts/index.js +1 -1
  51. package/dist/files/index.cjs +1 -1
  52. package/dist/files/index.js +1 -1
  53. package/dist/home/index.cjs +1 -1
  54. package/dist/home/index.js +1 -1
  55. package/dist/index.cjs +253 -253
  56. package/dist/index.js +3 -3
  57. package/dist/shell/index.cjs +1 -1
  58. package/dist/shell/index.js +1 -1
  59. package/dist/studio/index.cjs +1 -1
  60. package/dist/studio/index.js +1 -1
  61. package/dist/workflow-canvas/index.cjs +9 -9
  62. package/dist/workflow-canvas/index.js +2 -2
  63. package/node_modules/@arbidocs/coedit/LICENSE +21 -0
  64. package/node_modules/@arbidocs/coedit/dist/encoding.cjs +751 -0
  65. package/node_modules/@arbidocs/coedit/dist/encoding.cjs.map +1 -0
  66. package/node_modules/@arbidocs/coedit/dist/encoding.d.cts +192 -0
  67. package/node_modules/@arbidocs/coedit/dist/encoding.d.ts +192 -0
  68. package/node_modules/@arbidocs/coedit/dist/encoding.js +716 -0
  69. package/node_modules/@arbidocs/coedit/dist/encoding.js.map +1 -0
  70. package/node_modules/@arbidocs/coedit/dist/hocuspocus.cjs +1759 -0
  71. package/node_modules/@arbidocs/coedit/dist/hocuspocus.cjs.map +1 -0
  72. package/node_modules/@arbidocs/coedit/dist/hocuspocus.d.cts +39 -0
  73. package/node_modules/@arbidocs/coedit/dist/hocuspocus.d.ts +39 -0
  74. package/node_modules/@arbidocs/coedit/dist/hocuspocus.js +1736 -0
  75. package/node_modules/@arbidocs/coedit/dist/hocuspocus.js.map +1 -0
  76. package/node_modules/@arbidocs/coedit/dist/index.cjs +1692 -0
  77. package/node_modules/@arbidocs/coedit/dist/index.cjs.map +1 -0
  78. package/node_modules/@arbidocs/coedit/dist/index.d.cts +16 -0
  79. package/node_modules/@arbidocs/coedit/dist/index.d.ts +16 -0
  80. package/node_modules/@arbidocs/coedit/dist/index.js +1664 -0
  81. package/node_modules/@arbidocs/coedit/dist/index.js.map +1 -0
  82. package/node_modules/@arbidocs/coedit/dist/server.cjs +1852 -0
  83. package/node_modules/@arbidocs/coedit/dist/server.cjs.map +1 -0
  84. package/node_modules/@arbidocs/coedit/dist/server.d.cts +43 -0
  85. package/node_modules/@arbidocs/coedit/dist/server.d.ts +43 -0
  86. package/node_modules/@arbidocs/coedit/dist/server.js +1822 -0
  87. package/node_modules/@arbidocs/coedit/dist/server.js.map +1 -0
  88. package/node_modules/@arbidocs/coedit/dist/session-Cf9iu1Vt.d.cts +82 -0
  89. package/node_modules/@arbidocs/coedit/dist/session-Cf9iu1Vt.d.ts +82 -0
  90. package/node_modules/@arbidocs/coedit/dist/template.cjs +1627 -0
  91. package/node_modules/@arbidocs/coedit/dist/template.cjs.map +1 -0
  92. package/node_modules/@arbidocs/coedit/dist/template.d.cts +125 -0
  93. package/node_modules/@arbidocs/coedit/dist/template.d.ts +125 -0
  94. package/node_modules/@arbidocs/coedit/dist/template.js +1612 -0
  95. package/node_modules/@arbidocs/coedit/dist/template.js.map +1 -0
  96. package/node_modules/@arbidocs/coedit/dist/versions-DXiFQMA6.d.cts +8 -0
  97. package/node_modules/@arbidocs/coedit/dist/versions-DXiFQMA6.d.ts +8 -0
  98. package/node_modules/@arbidocs/coedit/package.json +68 -0
  99. package/node_modules/@docx-editor.dev/core/LICENSE +201 -0
  100. package/node_modules/@docx-editor.dev/core/README.md +125 -0
  101. package/node_modules/@docx-editor.dev/core/THIRD_PARTY_NOTICES.md +56 -0
  102. package/node_modules/@docx-editor.dev/core/dist/automation.cjs +1 -0
  103. package/node_modules/@docx-editor.dev/core/dist/automation.d.ts +162 -0
  104. package/node_modules/@docx-editor.dev/core/dist/automation.js +1 -0
  105. package/node_modules/@docx-editor.dev/core/dist/binding.cjs +1 -0
  106. package/node_modules/@docx-editor.dev/core/dist/binding.d.ts +164 -0
  107. package/node_modules/@docx-editor.dev/core/dist/binding.js +1 -0
  108. package/node_modules/@docx-editor.dev/core/dist/chunk-2GO5T2JU.cjs +1 -0
  109. package/node_modules/@docx-editor.dev/core/dist/chunk-2RC2EPND.js +3 -0
  110. package/node_modules/@docx-editor.dev/core/dist/chunk-4GBTELJV.cjs +28 -0
  111. package/node_modules/@docx-editor.dev/core/dist/chunk-4R3TEXMN.js +18 -0
  112. package/node_modules/@docx-editor.dev/core/dist/chunk-5CSUYANV.js +1 -0
  113. package/node_modules/@docx-editor.dev/core/dist/chunk-6APGXLBB.cjs +3 -0
  114. package/node_modules/@docx-editor.dev/core/dist/chunk-6AWEKBLB.cjs +1 -0
  115. package/node_modules/@docx-editor.dev/core/dist/chunk-6EYYL7FL.js +1 -0
  116. package/node_modules/@docx-editor.dev/core/dist/chunk-6JIJOZDW.js +1 -0
  117. package/node_modules/@docx-editor.dev/core/dist/chunk-BTQKU64Q.cjs +1 -0
  118. package/node_modules/@docx-editor.dev/core/dist/chunk-E7BQA6UP.js +2 -0
  119. package/node_modules/@docx-editor.dev/core/dist/chunk-EO4C5QJW.cjs +2 -0
  120. package/node_modules/@docx-editor.dev/core/dist/chunk-ETTO6GK3.js +1 -0
  121. package/node_modules/@docx-editor.dev/core/dist/chunk-FIJZIQXA.cjs +18 -0
  122. package/node_modules/@docx-editor.dev/core/dist/chunk-FRXAOVTB.js +28 -0
  123. package/node_modules/@docx-editor.dev/core/dist/chunk-J6BVWIDB.js +2 -0
  124. package/node_modules/@docx-editor.dev/core/dist/chunk-JGNVNT2A.cjs +2 -0
  125. package/node_modules/@docx-editor.dev/core/dist/chunk-K5U2PLDP.cjs +2 -0
  126. package/node_modules/@docx-editor.dev/core/dist/chunk-KKIJG3C6.js +2 -0
  127. package/node_modules/@docx-editor.dev/core/dist/chunk-LWDSDCMO.js +27 -0
  128. package/node_modules/@docx-editor.dev/core/dist/chunk-NBCVVZOM.cjs +1 -0
  129. package/node_modules/@docx-editor.dev/core/dist/chunk-O2AL2HSJ.cjs +1 -0
  130. package/node_modules/@docx-editor.dev/core/dist/chunk-O5INAWZQ.js +1 -0
  131. package/node_modules/@docx-editor.dev/core/dist/chunk-QMLCVPCD.cjs +1 -0
  132. package/node_modules/@docx-editor.dev/core/dist/chunk-RCHS4ZEH.cjs +27 -0
  133. package/node_modules/@docx-editor.dev/core/dist/chunk-RIYSCEFQ.js +2 -0
  134. package/node_modules/@docx-editor.dev/core/dist/chunk-S6J4O5XP.js +1 -0
  135. package/node_modules/@docx-editor.dev/core/dist/chunk-SRPILEWV.cjs +5 -0
  136. package/node_modules/@docx-editor.dev/core/dist/chunk-TSLBZ26X.js +1 -0
  137. package/node_modules/@docx-editor.dev/core/dist/chunk-UKVVUHZL.cjs +1 -0
  138. package/node_modules/@docx-editor.dev/core/dist/chunk-VDNNLG6X.js +2 -0
  139. package/node_modules/@docx-editor.dev/core/dist/chunk-VHAVHCQY.js +7 -0
  140. package/node_modules/@docx-editor.dev/core/dist/chunk-VX43VBAX.cjs +7 -0
  141. package/node_modules/@docx-editor.dev/core/dist/chunk-Z6WBFXJU.js +5 -0
  142. package/node_modules/@docx-editor.dev/core/dist/chunk-ZUHOMK52.cjs +2 -0
  143. package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.cjs +1 -0
  144. package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.d.ts +270 -0
  145. package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.js +1 -0
  146. package/node_modules/@docx-editor.dev/core/dist/collaboration.cjs +1 -0
  147. package/node_modules/@docx-editor.dev/core/dist/collaboration.d.ts +269 -0
  148. package/node_modules/@docx-editor.dev/core/dist/collaboration.js +1 -0
  149. package/node_modules/@docx-editor.dev/core/dist/contracts/document.cjs +1 -0
  150. package/node_modules/@docx-editor.dev/core/dist/contracts/document.d.ts +290 -0
  151. package/node_modules/@docx-editor.dev/core/dist/contracts/document.js +0 -0
  152. package/node_modules/@docx-editor.dev/core/dist/contracts/editor.cjs +1 -0
  153. package/node_modules/@docx-editor.dev/core/dist/contracts/editor.d.ts +22 -0
  154. package/node_modules/@docx-editor.dev/core/dist/contracts/editor.js +1 -0
  155. package/node_modules/@docx-editor.dev/core/dist/contracts/interaction.cjs +1 -0
  156. package/node_modules/@docx-editor.dev/core/dist/contracts/interaction.d.ts +103 -0
  157. package/node_modules/@docx-editor.dev/core/dist/contracts/interaction.js +0 -0
  158. package/node_modules/@docx-editor.dev/core/dist/contracts/modules.cjs +1 -0
  159. package/node_modules/@docx-editor.dev/core/dist/contracts/modules.d.ts +143 -0
  160. package/node_modules/@docx-editor.dev/core/dist/contracts/modules.js +1 -0
  161. package/node_modules/@docx-editor.dev/core/dist/contracts/types.cjs +1 -0
  162. package/node_modules/@docx-editor.dev/core/dist/contracts/types.d.ts +11 -0
  163. package/node_modules/@docx-editor.dev/core/dist/contracts/types.js +0 -0
  164. package/node_modules/@docx-editor.dev/core/dist/custom-node-writes-cvL5rhcD.d.ts +323 -0
  165. package/node_modules/@docx-editor.dev/core/dist/dist-PKZR6RSH.js +2 -0
  166. package/node_modules/@docx-editor.dev/core/dist/document-protection-BAGVGqaP.d.ts +20 -0
  167. package/node_modules/@docx-editor.dev/core/dist/editor-Ci7IZGmG.d.ts +2448 -0
  168. package/node_modules/@docx-editor.dev/core/dist/editor-scope-OHPwVQ5l.d.ts +84 -0
  169. package/node_modules/@docx-editor.dev/core/dist/editor.cjs +1 -0
  170. package/node_modules/@docx-editor.dev/core/dist/editor.css +15 -0
  171. package/node_modules/@docx-editor.dev/core/dist/editor.d.ts +1394 -0
  172. package/node_modules/@docx-editor.dev/core/dist/editor.js +1 -0
  173. package/node_modules/@docx-editor.dev/core/dist/export.cjs +2 -0
  174. package/node_modules/@docx-editor.dev/core/dist/export.d.ts +391 -0
  175. package/node_modules/@docx-editor.dev/core/dist/export.js +2 -0
  176. package/node_modules/@docx-editor.dev/core/dist/failure-NS2lsya4.d.ts +115 -0
  177. package/node_modules/@docx-editor.dev/core/dist/font-resolver-BVQB14qT.d.ts +256 -0
  178. package/node_modules/@docx-editor.dev/core/dist/harfbuzz.wasm +0 -0
  179. package/node_modules/@docx-editor.dev/core/dist/headless-document-view-qH331moE.d.ts +143 -0
  180. package/node_modules/@docx-editor.dev/core/dist/image-resources-BN-hUgCn.d.ts +211 -0
  181. package/node_modules/@docx-editor.dev/core/dist/index-Bsg7oIKP.d.ts +3869 -0
  182. package/node_modules/@docx-editor.dev/core/dist/index.cjs +1 -0
  183. package/node_modules/@docx-editor.dev/core/dist/index.d.ts +53 -0
  184. package/node_modules/@docx-editor.dev/core/dist/index.js +1 -0
  185. package/node_modules/@docx-editor.dev/core/dist/layout-shaping-BEyuiQOk.d.ts +246 -0
  186. package/node_modules/@docx-editor.dev/core/dist/layout.cjs +1 -0
  187. package/node_modules/@docx-editor.dev/core/dist/layout.d.ts +3151 -0
  188. package/node_modules/@docx-editor.dev/core/dist/layout.js +1 -0
  189. package/node_modules/@docx-editor.dev/core/dist/node-module-shim-TTKTT66I.js +1 -0
  190. package/node_modules/@docx-editor.dev/core/dist/note-properties-4Y9o6Gyk.d.ts +68 -0
  191. package/node_modules/@docx-editor.dev/core/dist/omml-equation-CuzBL5DD.d.ts +85 -0
  192. package/node_modules/@docx-editor.dev/core/dist/output.cjs +1 -0
  193. package/node_modules/@docx-editor.dev/core/dist/output.d.ts +97 -0
  194. package/node_modules/@docx-editor.dev/core/dist/output.js +1 -0
  195. package/node_modules/@docx-editor.dev/core/dist/protocol-Bqk4Izjc.d.ts +1651 -0
  196. package/node_modules/@docx-editor.dev/core/dist/review-pane-D9jm8DcY.d.ts +128 -0
  197. package/node_modules/@docx-editor.dev/core/dist/review-paragraph-order-DT-n6ouC.d.ts +85 -0
  198. package/node_modules/@docx-editor.dev/core/dist/revision-projection-DZ4kKVev.d.ts +242 -0
  199. package/node_modules/@docx-editor.dev/core/dist/semantic-cell-selection-D9D1KSXq.d.ts +464 -0
  200. package/node_modules/@docx-editor.dev/core/dist/semantic-interaction-CIC-PooQ.d.ts +135 -0
  201. package/node_modules/@docx-editor.dev/core/dist/semantic-paint-BME37OMv.d.ts +326 -0
  202. package/node_modules/@docx-editor.dev/core/dist/semantic-record-queries-CBlZqZNa.d.ts +177 -0
  203. package/node_modules/@docx-editor.dev/core/dist/semantic-records-4B3WwFAi.d.ts +3532 -0
  204. package/node_modules/@docx-editor.dev/core/dist/store.cjs +1 -0
  205. package/node_modules/@docx-editor.dev/core/dist/store.d.ts +2706 -0
  206. package/node_modules/@docx-editor.dev/core/dist/store.js +1 -0
  207. package/node_modules/@docx-editor.dev/core/dist/tree-package-fragment-BeeKxDw8.d.ts +1201 -0
  208. package/node_modules/@docx-editor.dev/core/dist/tree-session-contract-CVbmlMlq.d.ts +664 -0
  209. package/node_modules/@docx-editor.dev/core/dist/types-barrel-D3xCgQX6.d.ts +4269 -0
  210. package/node_modules/@docx-editor.dev/core/licenses/HarfBuzz-COPYING.txt +42 -0
  211. package/node_modules/@docx-editor.dev/core/package.json +140 -0
  212. package/node_modules/@docx-editor.dev/react/LICENSE +201 -0
  213. package/node_modules/@docx-editor.dev/react/README.md +141 -0
  214. package/node_modules/@docx-editor.dev/react/THIRD_PARTY_NOTICES.md +18 -0
  215. package/node_modules/@docx-editor.dev/react/dist/index.d.mts +4928 -0
  216. package/node_modules/@docx-editor.dev/react/dist/index.d.ts +4928 -0
  217. package/node_modules/@docx-editor.dev/react/dist/index.js +4 -0
  218. package/node_modules/@docx-editor.dev/react/dist/index.mjs +4 -0
  219. package/node_modules/@docx-editor.dev/react/package.json +74 -0
  220. package/node_modules/@docx-editor.dev/react/src/styles/editor.css +6 -0
  221. package/node_modules/@docx-editor.dev/react/src/styles/zIndex.ts +28 -0
  222. package/package.json +26 -15
  223. package/src/docx/README.md +2 -3
  224. package/dist/chunk-72PQ42YI.js.map +0 -1
  225. package/dist/chunk-B7P73VHX.cjs.map +0 -1
@@ -0,0 +1,125 @@
1
+ interface ApplyTemplateOptions {
2
+ /** Record the template in settings.xml (`w:attachedTemplate`), e.g. "House template.dotx". */
3
+ attachedTemplate?: string;
4
+ /** Also take the template's page setup, headers and footers for the final section. */
5
+ furniture?: boolean;
6
+ }
7
+ interface ApplyTemplateReport {
8
+ /** Template style ids written into the document (replaced or added). */
9
+ styles: string[];
10
+ /** Template style id → the document's id it was matched to by name (localised built-ins). */
11
+ renamed: Record<string, string>;
12
+ /** Template numId → new numId in the document. */
13
+ numbering: Record<string, string>;
14
+ }
15
+ /** Word's Organizer + attach template, optionally with the template's page furniture. */
16
+ declare function applyTemplate(document: Uint8Array, template: Uint8Array, options?: ApplyTemplateOptions): {
17
+ bytes: Uint8Array;
18
+ report: ApplyTemplateReport;
19
+ };
20
+ /**
21
+ * File › New from a template: the template package as a new document. A .dotx/.dotm main part
22
+ * becomes a document part (macros are not carried), the glossary stays behind, and the template
23
+ * is recorded as attached.
24
+ */
25
+ declare function newFromTemplate(template: Uint8Array, options?: {
26
+ attachedTemplate?: string;
27
+ }): Uint8Array;
28
+ /**
29
+ * Put content into the house shape: the template's styles, numbering, theme, fonts, settings and
30
+ * page furniture applied to `content` (an AI draft, a converted Markdown file).
31
+ */
32
+ declare function composeWithTemplate(content: Uint8Array, template: Uint8Array, attachedTemplate?: string): Uint8Array;
33
+
34
+ interface BuildingBlockInfo {
35
+ name: string;
36
+ gallery: string;
37
+ category: string;
38
+ description: string;
39
+ /** Plain text of the block, for a preview. */
40
+ text: string;
41
+ }
42
+ /** Quick Parts and AutoText first, as Word's Insert › Quick Parts lists them; sorted by category. */
43
+ declare function listBuildingBlocks(template: Uint8Array): BuildingBlockInfo[];
44
+ /**
45
+ * One building block as a fragment package: its `w:docPartBody` as the body, with the glossary's
46
+ * styles (without document defaults: pasted text takes the defaults of the document it lands in),
47
+ * numbering, and the media its relationships reach. Undefined when the template has no such block.
48
+ */
49
+ declare function buildingBlockFragment(template: Uint8Array, name: string): Uint8Array | undefined;
50
+ /** A fragment's body as clipboard HTML the editor's paste recognises as its own. */
51
+ declare function fragmentClipboardHtml(fragment: Uint8Array, covered?: boolean): string;
52
+
53
+ /** Who made a tracked change and when (`w:author`, `w:date`). */
54
+ interface Revision {
55
+ author: string;
56
+ /** ISO 8601, seconds precision, e.g. `2026-10-19T09:30:00Z`. */
57
+ date: string;
58
+ }
59
+ /**
60
+ * The fragment with every run wrapped in `w:ins` and every new paragraph mark marked inserted. A
61
+ * table row is marked inserted as a whole, its cells left as they are: the editor rejects an
62
+ * inserted row whose content is tracked as well only partly. A run is not descended into, so a
63
+ * text box goes in with its run. `covered`: the fragment's last paragraph mark is pasted too (a
64
+ * block before the caret's paragraph); otherwise the last paragraph runs into the text after the
65
+ * caret and its mark is not new.
66
+ */
67
+ declare function trackInsertion(fragment: Uint8Array, revision: Revision, covered: boolean): Uint8Array;
68
+
69
+ interface StyleDifference {
70
+ styleId: string;
71
+ name: string;
72
+ /** `changed`: defined differently; `missing`: the template defines it, the document does not. */
73
+ kind: 'changed' | 'missing';
74
+ }
75
+ interface StyleDivergence {
76
+ styles: StyleDifference[];
77
+ /** The documents' default paragraph and run formatting differ. */
78
+ docDefaults: boolean;
79
+ }
80
+ declare function styleDivergence(document: Uint8Array, template: Uint8Array): StyleDivergence;
81
+ /** The template a document records as attached (`w:attachedTemplate`), by file name. */
82
+ declare function attachedTemplateOf(document: Uint8Array): string | undefined;
83
+
84
+ /** numIds of the template's lists. */
85
+ declare const LEGAL_NUM: {
86
+ readonly clauses: 1;
87
+ readonly parties: 2;
88
+ readonly background: 3;
89
+ readonly schedules: 4;
90
+ };
91
+ interface BuildingBlockSpec {
92
+ name: string;
93
+ category: string;
94
+ description: string;
95
+ body: string;
96
+ }
97
+ /** Generic UK execution blocks and document markings: placeholders only, no names. */
98
+ declare const LEGAL_BUILDING_BLOCKS: readonly BuildingBlockSpec[];
99
+ interface LegalTemplateOptions {
100
+ /** A neutral placeholder letterhead on the first page and a continuation header after it. */
101
+ letterhead?: boolean;
102
+ /** A watermark (e.g. "DRAFT") in the page headers. */
103
+ watermark?: string;
104
+ /** Include the Quick Parts glossary (default true). */
105
+ buildingBlocks?: boolean;
106
+ /** Write a .docx instead of a .dotx (default false). */
107
+ asDocument?: boolean;
108
+ /** The starting body of a new document (paragraph XML); default one empty paragraph. */
109
+ body?: string;
110
+ }
111
+ declare function defaultLegalTemplate(options?: LegalTemplateOptions): Uint8Array;
112
+
113
+ interface LinkedLevel {
114
+ /** The style one level down (Tab), if the list has one. */
115
+ next?: string;
116
+ /** The style one level up (Shift+Tab). */
117
+ previous?: string;
118
+ }
119
+ declare function linkedLevelStyles(document: Uint8Array): Record<string, LinkedLevel>;
120
+
121
+ declare class TemplateError extends Error {
122
+ constructor(message: string);
123
+ }
124
+
125
+ export { type ApplyTemplateOptions, type ApplyTemplateReport, type BuildingBlockInfo, LEGAL_BUILDING_BLOCKS, LEGAL_NUM, type LegalTemplateOptions, type LinkedLevel, type Revision, type StyleDifference, type StyleDivergence, TemplateError, applyTemplate, attachedTemplateOf, buildingBlockFragment, composeWithTemplate, defaultLegalTemplate, fragmentClipboardHtml, linkedLevelStyles, listBuildingBlocks, newFromTemplate, styleDivergence, trackInsertion };