@rentnerkev/pdf 0.0.0-stage → 1.0.0

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 (355) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +134 -2
  3. package/THIRD_PARTY_NOTICES.md +152 -0
  4. package/dist/components/Types/host.d.ts +3 -0
  5. package/dist/components/Types/host.d.ts.map +1 -0
  6. package/dist/components/Types/host.js +2 -0
  7. package/dist/components/Types/host.js.map +1 -0
  8. package/dist/components/Types/props.d.ts +504 -0
  9. package/dist/components/Types/props.d.ts.map +1 -0
  10. package/dist/components/Types/props.js +2 -0
  11. package/dist/components/Types/props.js.map +1 -0
  12. package/dist/components/components.d.ts +87 -0
  13. package/dist/components/components.d.ts.map +1 -0
  14. package/dist/components/components.js +86 -0
  15. package/dist/components/components.js.map +1 -0
  16. package/dist/components/host.d.ts +7 -0
  17. package/dist/components/host.d.ts.map +1 -0
  18. package/dist/components/host.js +15 -0
  19. package/dist/components/host.js.map +1 -0
  20. package/dist/engine/Types/backend.d.ts +120 -0
  21. package/dist/engine/Types/backend.d.ts.map +1 -0
  22. package/dist/engine/Types/backend.js +2 -0
  23. package/dist/engine/Types/backend.js.map +1 -0
  24. package/dist/engine/Types/engine.d.ts +192 -0
  25. package/dist/engine/Types/engine.d.ts.map +1 -0
  26. package/dist/engine/Types/engine.js +2 -0
  27. package/dist/engine/Types/engine.js.map +1 -0
  28. package/dist/engine/Types/errors.d.ts +16 -0
  29. package/dist/engine/Types/errors.d.ts.map +1 -0
  30. package/dist/engine/Types/errors.js +2 -0
  31. package/dist/engine/Types/errors.js.map +1 -0
  32. package/dist/engine/Types/limits.d.ts +55 -0
  33. package/dist/engine/Types/limits.d.ts.map +1 -0
  34. package/dist/engine/Types/limits.js +2 -0
  35. package/dist/engine/Types/limits.js.map +1 -0
  36. package/dist/engine/Types/render-options.d.ts +71 -0
  37. package/dist/engine/Types/render-options.d.ts.map +1 -0
  38. package/dist/engine/Types/render-options.js +2 -0
  39. package/dist/engine/Types/render-options.js.map +1 -0
  40. package/dist/engine/Types/render-result.d.ts +80 -0
  41. package/dist/engine/Types/render-result.d.ts.map +1 -0
  42. package/dist/engine/Types/render-result.js +2 -0
  43. package/dist/engine/Types/render-result.js.map +1 -0
  44. package/dist/engine/abort.d.ts +23 -0
  45. package/dist/engine/abort.d.ts.map +1 -0
  46. package/dist/engine/abort.js +71 -0
  47. package/dist/engine/abort.js.map +1 -0
  48. package/dist/engine/assets.d.ts +22 -0
  49. package/dist/engine/assets.d.ts.map +1 -0
  50. package/dist/engine/assets.js +40 -0
  51. package/dist/engine/assets.js.map +1 -0
  52. package/dist/engine/backend.d.ts +16 -0
  53. package/dist/engine/backend.d.ts.map +1 -0
  54. package/dist/engine/backend.js +43 -0
  55. package/dist/engine/backend.js.map +1 -0
  56. package/dist/engine/backends/native.d.ts +11 -0
  57. package/dist/engine/backends/native.d.ts.map +1 -0
  58. package/dist/engine/backends/native.js +62 -0
  59. package/dist/engine/backends/native.js.map +1 -0
  60. package/dist/engine/backends/wasm.d.ts +16 -0
  61. package/dist/engine/backends/wasm.d.ts.map +1 -0
  62. package/dist/engine/backends/wasm.js +216 -0
  63. package/dist/engine/backends/wasm.js.map +1 -0
  64. package/dist/engine/channel.d.ts +41 -0
  65. package/dist/engine/channel.d.ts.map +1 -0
  66. package/dist/engine/channel.js +140 -0
  67. package/dist/engine/channel.js.map +1 -0
  68. package/dist/engine/create-engine.d.ts +8 -0
  69. package/dist/engine/create-engine.d.ts.map +1 -0
  70. package/dist/engine/create-engine.js +120 -0
  71. package/dist/engine/create-engine.js.map +1 -0
  72. package/dist/engine/default-fonts.d.ts +9 -0
  73. package/dist/engine/default-fonts.d.ts.map +1 -0
  74. package/dist/engine/default-fonts.js +42 -0
  75. package/dist/engine/default-fonts.js.map +1 -0
  76. package/dist/engine/encode.d.ts +9 -0
  77. package/dist/engine/encode.d.ts.map +1 -0
  78. package/dist/engine/encode.js +199 -0
  79. package/dist/engine/encode.js.map +1 -0
  80. package/dist/engine/errors.d.ts +37 -0
  81. package/dist/engine/errors.d.ts.map +1 -0
  82. package/dist/engine/errors.js +71 -0
  83. package/dist/engine/errors.js.map +1 -0
  84. package/dist/engine/fonts.d.ts +9 -0
  85. package/dist/engine/fonts.d.ts.map +1 -0
  86. package/dist/engine/fonts.js +14 -0
  87. package/dist/engine/fonts.js.map +1 -0
  88. package/dist/engine/lifecycle.d.ts +40 -0
  89. package/dist/engine/lifecycle.d.ts.map +1 -0
  90. package/dist/engine/lifecycle.js +104 -0
  91. package/dist/engine/lifecycle.js.map +1 -0
  92. package/dist/engine/markup.d.ts +13 -0
  93. package/dist/engine/markup.d.ts.map +1 -0
  94. package/dist/engine/markup.js +14 -0
  95. package/dist/engine/markup.js.map +1 -0
  96. package/dist/engine/options.d.ts +12 -0
  97. package/dist/engine/options.d.ts.map +1 -0
  98. package/dist/engine/options.js +71 -0
  99. package/dist/engine/options.js.map +1 -0
  100. package/dist/engine/pdf-bytes.d.ts +8 -0
  101. package/dist/engine/pdf-bytes.d.ts.map +1 -0
  102. package/dist/engine/pdf-bytes.js +9 -0
  103. package/dist/engine/pdf-bytes.js.map +1 -0
  104. package/dist/engine/prepare.d.ts +17 -0
  105. package/dist/engine/prepare.d.ts.map +1 -0
  106. package/dist/engine/prepare.js +44 -0
  107. package/dist/engine/prepare.js.map +1 -0
  108. package/dist/engine/render-many.d.ts +14 -0
  109. package/dist/engine/render-many.d.ts.map +1 -0
  110. package/dist/engine/render-many.js +156 -0
  111. package/dist/engine/render-many.js.map +1 -0
  112. package/dist/engine/render-result.d.ts +12 -0
  113. package/dist/engine/render-result.d.ts.map +1 -0
  114. package/dist/engine/render-result.js +62 -0
  115. package/dist/engine/render-result.js.map +1 -0
  116. package/dist/engine/render-stream.d.ts +7 -0
  117. package/dist/engine/render-stream.d.ts.map +1 -0
  118. package/dist/engine/render-stream.js +56 -0
  119. package/dist/engine/render-stream.js.map +1 -0
  120. package/dist/engine/render.d.ts +15 -0
  121. package/dist/engine/render.d.ts.map +1 -0
  122. package/dist/engine/render.js +23 -0
  123. package/dist/engine/render.js.map +1 -0
  124. package/dist/fonts/NotoSans-Bold.ttf +0 -0
  125. package/dist/fonts/NotoSans-BoldItalic.ttf +0 -0
  126. package/dist/fonts/NotoSans-Italic.ttf +0 -0
  127. package/dist/fonts/NotoSans-Regular.ttf +0 -0
  128. package/dist/fonts/OFL.txt +94 -0
  129. package/dist/fonts/sources.json +32 -0
  130. package/dist/index.d.ts +26 -0
  131. package/dist/index.d.ts.map +1 -0
  132. package/dist/index.js +11 -0
  133. package/dist/index.js.map +1 -0
  134. package/dist/ir/Types/input.d.ts +111 -0
  135. package/dist/ir/Types/input.d.ts.map +1 -0
  136. package/dist/ir/Types/input.js +2 -0
  137. package/dist/ir/Types/input.js.map +1 -0
  138. package/dist/ir/factories.d.ts +108 -0
  139. package/dist/ir/factories.d.ts.map +1 -0
  140. package/dist/ir/factories.js +410 -0
  141. package/dist/ir/factories.js.map +1 -0
  142. package/dist/ir/ir.generated.d.ts +811 -0
  143. package/dist/ir/ir.generated.d.ts.map +1 -0
  144. package/dist/ir/ir.generated.js +4 -0
  145. package/dist/ir/ir.generated.js.map +1 -0
  146. package/dist/ir/version.d.ts +9 -0
  147. package/dist/ir/version.d.ts.map +1 -0
  148. package/dist/ir/version.js +13 -0
  149. package/dist/ir/version.js.map +1 -0
  150. package/dist/jsx/Types/context.d.ts +24 -0
  151. package/dist/jsx/Types/context.d.ts.map +1 -0
  152. package/dist/jsx/Types/context.js +2 -0
  153. package/dist/jsx/Types/context.js.map +1 -0
  154. package/dist/jsx/Types/element.d.ts +30 -0
  155. package/dist/jsx/Types/element.d.ts.map +1 -0
  156. package/dist/jsx/Types/element.js +2 -0
  157. package/dist/jsx/Types/element.js.map +1 -0
  158. package/dist/jsx/Types/evaluate.d.ts +61 -0
  159. package/dist/jsx/Types/evaluate.d.ts.map +1 -0
  160. package/dist/jsx/Types/evaluate.js +2 -0
  161. package/dist/jsx/Types/evaluate.js.map +1 -0
  162. package/dist/jsx/Types/jsx.d.ts +16 -0
  163. package/dist/jsx/Types/jsx.d.ts.map +1 -0
  164. package/dist/jsx/Types/jsx.js +2 -0
  165. package/dist/jsx/Types/jsx.js.map +1 -0
  166. package/dist/jsx/context.d.ts +21 -0
  167. package/dist/jsx/context.d.ts.map +1 -0
  168. package/dist/jsx/context.js +49 -0
  169. package/dist/jsx/context.js.map +1 -0
  170. package/dist/jsx/element.d.ts +10 -0
  171. package/dist/jsx/element.d.ts.map +1 -0
  172. package/dist/jsx/element.js +19 -0
  173. package/dist/jsx/element.js.map +1 -0
  174. package/dist/jsx/evaluate.d.ts +16 -0
  175. package/dist/jsx/evaluate.d.ts.map +1 -0
  176. package/dist/jsx/evaluate.js +616 -0
  177. package/dist/jsx/evaluate.js.map +1 -0
  178. package/dist/jsx/source.d.ts +13 -0
  179. package/dist/jsx/source.d.ts.map +1 -0
  180. package/dist/jsx/source.js +49 -0
  181. package/dist/jsx/source.js.map +1 -0
  182. package/dist/jsx-dev-runtime.d.ts +9 -0
  183. package/dist/jsx-dev-runtime.d.ts.map +1 -0
  184. package/dist/jsx-dev-runtime.js +24 -0
  185. package/dist/jsx-dev-runtime.js.map +1 -0
  186. package/dist/jsx-runtime.d.ts +12 -0
  187. package/dist/jsx-runtime.d.ts.map +1 -0
  188. package/dist/jsx-runtime.js +15 -0
  189. package/dist/jsx-runtime.js.map +1 -0
  190. package/dist/native/binding.generated.d.ts +227 -0
  191. package/dist/native/loader.d.ts +22 -0
  192. package/dist/native/loader.d.ts.map +1 -0
  193. package/dist/native/loader.js +98 -0
  194. package/dist/native/loader.js.map +1 -0
  195. package/dist/native/rentnerpdf.linux-arm64-gnu.node +0 -0
  196. package/dist/native/rentnerpdf.linux-arm64-musl.node +0 -0
  197. package/dist/native/rentnerpdf.linux-x64-gnu.node +0 -0
  198. package/dist/native/rentnerpdf.linux-x64-musl.node +0 -0
  199. package/dist/native/rentnerpdf.win32-arm64-msvc.node +0 -0
  200. package/dist/native/rentnerpdf.win32-x64-msvc.node +0 -0
  201. package/dist/node.d.ts +3 -0
  202. package/dist/node.d.ts.map +1 -0
  203. package/dist/node.js +6 -0
  204. package/dist/node.js.map +1 -0
  205. package/dist/react/Types/preview.d.ts +74 -0
  206. package/dist/react/Types/preview.d.ts.map +1 -0
  207. package/dist/react/Types/preview.js +2 -0
  208. package/dist/react/Types/preview.js.map +1 -0
  209. package/dist/react/Types/render.d.ts +24 -0
  210. package/dist/react/Types/render.d.ts.map +1 -0
  211. package/dist/react/Types/render.js +2 -0
  212. package/dist/react/Types/render.js.map +1 -0
  213. package/dist/react/attributes.d.ts +8 -0
  214. package/dist/react/attributes.d.ts.map +1 -0
  215. package/dist/react/attributes.js +44 -0
  216. package/dist/react/attributes.js.map +1 -0
  217. package/dist/react/components.d.ts +60 -0
  218. package/dist/react/components.d.ts.map +1 -0
  219. package/dist/react/components.js +266 -0
  220. package/dist/react/components.js.map +1 -0
  221. package/dist/react/pdf-preview.d.ts +16 -0
  222. package/dist/react/pdf-preview.d.ts.map +1 -0
  223. package/dist/react/pdf-preview.js +26 -0
  224. package/dist/react/pdf-preview.js.map +1 -0
  225. package/dist/react/pdf-render.d.ts +15 -0
  226. package/dist/react/pdf-render.d.ts.map +1 -0
  227. package/dist/react/pdf-render.js +60 -0
  228. package/dist/react/pdf-render.js.map +1 -0
  229. package/dist/react/registry.d.ts +44 -0
  230. package/dist/react/registry.d.ts.map +1 -0
  231. package/dist/react/registry.js +105 -0
  232. package/dist/react/registry.js.map +1 -0
  233. package/dist/react/render.d.ts +36 -0
  234. package/dist/react/render.d.ts.map +1 -0
  235. package/dist/react/render.js +212 -0
  236. package/dist/react/render.js.map +1 -0
  237. package/dist/react/same-document.d.ts +8 -0
  238. package/dist/react/same-document.d.ts.map +1 -0
  239. package/dist/react/same-document.js +59 -0
  240. package/dist/react/same-document.js.map +1 -0
  241. package/dist/react/static.d.ts +13 -0
  242. package/dist/react/static.d.ts.map +1 -0
  243. package/dist/react/static.js +65 -0
  244. package/dist/react/static.js.map +1 -0
  245. package/dist/react/use-pdf.d.ts +25 -0
  246. package/dist/react/use-pdf.d.ts.map +1 -0
  247. package/dist/react/use-pdf.js +59 -0
  248. package/dist/react/use-pdf.js.map +1 -0
  249. package/dist/react.d.ts +9 -0
  250. package/dist/react.d.ts.map +1 -0
  251. package/dist/react.js +10 -0
  252. package/dist/react.js.map +1 -0
  253. package/dist/tailwind/Types/merge-config.d.ts +28 -0
  254. package/dist/tailwind/Types/merge-config.d.ts.map +1 -0
  255. package/dist/tailwind/Types/merge-config.js +2 -0
  256. package/dist/tailwind/Types/merge-config.js.map +1 -0
  257. package/dist/tailwind/merge-config.d.ts +45 -0
  258. package/dist/tailwind/merge-config.d.ts.map +1 -0
  259. package/dist/tailwind/merge-config.js +46 -0
  260. package/dist/tailwind/merge-config.js.map +1 -0
  261. package/dist/tailwind-merge.d.ts +3 -0
  262. package/dist/tailwind-merge.d.ts.map +1 -0
  263. package/dist/tailwind-merge.js +4 -0
  264. package/dist/tailwind-merge.js.map +1 -0
  265. package/dist/tailwind.css +61 -0
  266. package/dist/theme/Types/css-imports.d.ts +38 -0
  267. package/dist/theme/Types/css-imports.d.ts.map +1 -0
  268. package/dist/theme/Types/css-imports.js +2 -0
  269. package/dist/theme/Types/css-imports.js.map +1 -0
  270. package/dist/theme/Types/theme.d.ts +70 -0
  271. package/dist/theme/Types/theme.d.ts.map +1 -0
  272. package/dist/theme/Types/theme.js +2 -0
  273. package/dist/theme/Types/theme.js.map +1 -0
  274. package/dist/theme/Types/warnings.d.ts +9 -0
  275. package/dist/theme/Types/warnings.d.ts.map +1 -0
  276. package/dist/theme/Types/warnings.js +2 -0
  277. package/dist/theme/Types/warnings.js.map +1 -0
  278. package/dist/theme/css-imports.d.ts +11 -0
  279. package/dist/theme/css-imports.d.ts.map +1 -0
  280. package/dist/theme/css-imports.js +138 -0
  281. package/dist/theme/css-imports.js.map +1 -0
  282. package/dist/theme/normalize.d.ts +15 -0
  283. package/dist/theme/normalize.d.ts.map +1 -0
  284. package/dist/theme/normalize.js +51 -0
  285. package/dist/theme/normalize.js.map +1 -0
  286. package/dist/theme/package-imports.d.ts +16 -0
  287. package/dist/theme/package-imports.d.ts.map +1 -0
  288. package/dist/theme/package-imports.js +90 -0
  289. package/dist/theme/package-imports.js.map +1 -0
  290. package/dist/theme/theme-from-css-file.d.ts +35 -0
  291. package/dist/theme/theme-from-css-file.d.ts.map +1 -0
  292. package/dist/theme/theme-from-css-file.js +223 -0
  293. package/dist/theme/theme-from-css-file.js.map +1 -0
  294. package/dist/theme/theme-from-css.d.ts +28 -0
  295. package/dist/theme/theme-from-css.d.ts.map +1 -0
  296. package/dist/theme/theme-from-css.js +62 -0
  297. package/dist/theme/theme-from-css.js.map +1 -0
  298. package/dist/theme/warnings.d.ts +13 -0
  299. package/dist/theme/warnings.d.ts.map +1 -0
  300. package/dist/theme/warnings.js +34 -0
  301. package/dist/theme/warnings.js.map +1 -0
  302. package/dist/vite/Types/plugin.d.ts +47 -0
  303. package/dist/vite/Types/plugin.d.ts.map +1 -0
  304. package/dist/vite/Types/plugin.js +5 -0
  305. package/dist/vite/Types/plugin.js.map +1 -0
  306. package/dist/vite/plugin.d.ts +30 -0
  307. package/dist/vite/plugin.d.ts.map +1 -0
  308. package/dist/vite/plugin.js +80 -0
  309. package/dist/vite/plugin.js.map +1 -0
  310. package/dist/vite.d.ts +3 -0
  311. package/dist/vite.d.ts.map +1 -0
  312. package/dist/vite.js +6 -0
  313. package/dist/vite.js.map +1 -0
  314. package/dist/wasm/binding.generated.d.ts +259 -0
  315. package/dist/wasm/loader.d.ts +17 -0
  316. package/dist/wasm/loader.d.ts.map +1 -0
  317. package/dist/wasm/loader.js +74 -0
  318. package/dist/wasm/loader.js.map +1 -0
  319. package/dist/wasm/pkg/rentnerpdf_wasm.d.ts +259 -0
  320. package/dist/wasm/pkg/rentnerpdf_wasm.js +883 -0
  321. package/dist/wasm/pkg/rentnerpdf_wasm_bg.wasm +0 -0
  322. package/dist/wasm/pkg/rentnerpdf_wasm_bg.wasm.d.ts +40 -0
  323. package/dist/worker/Types/connection.d.ts +25 -0
  324. package/dist/worker/Types/connection.d.ts.map +1 -0
  325. package/dist/worker/Types/connection.js +2 -0
  326. package/dist/worker/Types/connection.js.map +1 -0
  327. package/dist/worker/Types/protocol.d.ts +62 -0
  328. package/dist/worker/Types/protocol.d.ts.map +1 -0
  329. package/dist/worker/Types/protocol.js +2 -0
  330. package/dist/worker/Types/protocol.js.map +1 -0
  331. package/dist/worker/Types/worker-engine.d.ts +91 -0
  332. package/dist/worker/Types/worker-engine.d.ts.map +1 -0
  333. package/dist/worker/Types/worker-engine.js +2 -0
  334. package/dist/worker/Types/worker-engine.js.map +1 -0
  335. package/dist/worker/client.d.ts +20 -0
  336. package/dist/worker/client.d.ts.map +1 -0
  337. package/dist/worker/client.js +131 -0
  338. package/dist/worker/client.js.map +1 -0
  339. package/dist/worker/connection.d.ts +5 -0
  340. package/dist/worker/connection.d.ts.map +1 -0
  341. package/dist/worker/connection.js +119 -0
  342. package/dist/worker/connection.js.map +1 -0
  343. package/dist/worker/protocol.d.ts +24 -0
  344. package/dist/worker/protocol.d.ts.map +1 -0
  345. package/dist/worker/protocol.js +71 -0
  346. package/dist/worker/protocol.js.map +1 -0
  347. package/dist/worker/serve.d.ts +26 -0
  348. package/dist/worker/serve.d.ts.map +1 -0
  349. package/dist/worker/serve.js +119 -0
  350. package/dist/worker/serve.js.map +1 -0
  351. package/dist/worker.d.ts +4 -0
  352. package/dist/worker.d.ts.map +1 -0
  353. package/dist/worker.js +8 -0
  354. package/dist/worker.js.map +1 -0
  355. package/package.json +80 -5
@@ -0,0 +1,811 @@
1
+ export type Document = {
2
+ /**
3
+ * IR version; must equal [`IR_VERSION`].
4
+ */
5
+ v: number;
6
+ meta?: Meta;
7
+ pages: ReadonlyArray<Page>;
8
+ /**
9
+ * The columnar channel with the cells of data-driven tables.
10
+ */
11
+ channel?: DataChannel;
12
+ /**
13
+ * Standards the PDF conforms to, at most one of each family, for
14
+ * example `["pdf-a-3b"]`.
15
+ */
16
+ standards?: ReadonlyArray<Standard>;
17
+ /**
18
+ * Files embedded in the PDF, in the order viewers list them.
19
+ */
20
+ attachments?: ReadonlyArray<Attachment>;
21
+ /**
22
+ * The Factur-X / ZUGFeRD descriptor in the XMP metadata.
23
+ */
24
+ facturX?: FacturX;
25
+ /**
26
+ * Writes a tagged PDF: a structure tree in reading order (headings,
27
+ * paragraphs, lists, tables with their headers, figures with alt
28
+ * text, links), with headers, footers, page numbers and decoration
29
+ * marked as artifacts. Default `false`; the standard `pdf-ua-1`
30
+ * implies it.
31
+ */
32
+ tagged?: boolean;
33
+ };
34
+ export type Meta = {
35
+ title?: string;
36
+ author?: string;
37
+ subject?: string;
38
+ keywords?: ReadonlyArray<string>;
39
+ /**
40
+ * Natural language of the document as a BCP 47 tag, for example `de-DE`.
41
+ */
42
+ lang?: string;
43
+ /**
44
+ * Base direction of every page, like `dir` on HTML's root element;
45
+ * nodes inherit it unless they set their own.
46
+ */
47
+ dir?: Dir;
48
+ /**
49
+ * The application that created the content, for example `Billing 4.2`.
50
+ * The producer is always `RentnerPDF` with its version.
51
+ */
52
+ creator?: string;
53
+ /**
54
+ * Creation date, for example `2026-12-01T09:30:00Z`: a date
55
+ * (`YYYY-MM-DD`) or a date and time (`THH:MM`, optional `:SS` and
56
+ * fraction, which is dropped) with `Z` or an offset (`+01:00`). There is
57
+ * no default, so the same input always gives the same bytes.
58
+ */
59
+ creationDate?: string;
60
+ };
61
+ export type Standard = "pdf-a-2b" | "pdf-a-2u" | "pdf-a-3b" | "pdf-a-3u" | "pdf-ua-1";
62
+ export type Attachment = {
63
+ /**
64
+ * Index of the file's bytes in the asset buffers passed next to the
65
+ * JSON (D-06); an attachment needs a buffer no node uses.
66
+ */
67
+ asset: number;
68
+ /**
69
+ * The file name viewers show and save the file as, for example
70
+ * `factur-x.xml`; unique in the document.
71
+ */
72
+ name: string;
73
+ /**
74
+ * MIME type, for example `text/xml` or `application/pdf`. Required by
75
+ * PDF/A-3.
76
+ */
77
+ mimeType?: string;
78
+ /**
79
+ * A description viewers show next to the file. Required by PDF/A-3.
80
+ */
81
+ description?: string;
82
+ /**
83
+ * How the file relates to the document (`/AFRelationship`); default
84
+ * `Unspecified`. Written in PDF/A-3, whose associated files carry it;
85
+ * other PDFs (PDF 1.7) have no associated files.
86
+ */
87
+ relationship?: Relationship;
88
+ /**
89
+ * The file's modification date, in the format of `meta.creationDate`.
90
+ * The engine never reads the clock: without it the file has no date,
91
+ * except in PDF/A-3, which requires one and gets the document's
92
+ * `creationDate`.
93
+ */
94
+ modificationDate?: string;
95
+ };
96
+ export type Relationship = "Source" | "Data" | "Alternative" | "Supplement" | "Unspecified";
97
+ export type FacturX = {
98
+ /**
99
+ * The profile of the invoice XML.
100
+ */
101
+ conformanceLevel: FacturXLevel;
102
+ /**
103
+ * The attachment that holds the invoice XML; default `factur-x.xml`
104
+ * (XRechnung in ZUGFeRD uses `xrechnung.xml`).
105
+ */
106
+ documentFileName?: string;
107
+ };
108
+ export type FacturXLevel = "MINIMUM" | "BASIC WL" | "BASIC" | "EN 16931" | "EXTENDED" | "XRECHNUNG";
109
+ export type Page = {
110
+ size?: PageSize;
111
+ orientation?: Orientation;
112
+ /**
113
+ * Tailwind CSS v4 utility classes for the page box, for example `p-page`
114
+ * for the page margins or `bg-paper`.
115
+ */
116
+ className?: string;
117
+ /**
118
+ * Typed style properties; they win over `className` like inline styles.
119
+ */
120
+ style?: Style;
121
+ /**
122
+ * A page of an existing PDF drawn behind the content of every page of
123
+ * this template, for example company stationery.
124
+ */
125
+ letterhead?: Letterhead;
126
+ /**
127
+ * Content at the top of every page's content box, laid out at the
128
+ * content width; placeholders in it show each page's values.
129
+ */
130
+ header?: Node;
131
+ /**
132
+ * Content at the bottom of every page's content box.
133
+ */
134
+ footer?: Node;
135
+ /**
136
+ * Overrides for the template's first page.
137
+ */
138
+ first?: PageVariant;
139
+ /**
140
+ * Overrides for odd pages (page 1, 3, … of the document).
141
+ */
142
+ odd?: PageVariant;
143
+ /**
144
+ * Overrides for even pages of the document.
145
+ */
146
+ even?: PageVariant;
147
+ /**
148
+ * Overrides for the template's last page, the page where its content
149
+ * ends.
150
+ */
151
+ last?: PageVariant;
152
+ /**
153
+ * Restarts or restyles the page numbers from this template on.
154
+ */
155
+ numbering?: PageNumbering;
156
+ children?: ReadonlyArray<Node>;
157
+ };
158
+ export type PageVariant = {
159
+ /**
160
+ * The header of these pages; `null` for none.
161
+ */
162
+ header?: Node | null;
163
+ /**
164
+ * The footer of these pages; `null` for none.
165
+ */
166
+ footer?: Node | null;
167
+ /**
168
+ * The letterhead of these pages; `null` for none.
169
+ */
170
+ letterhead?: Letterhead | null;
171
+ };
172
+ export type PageNumbering = {
173
+ /**
174
+ * The number of the template's first page; without it, numbering
175
+ * continues from the previous page. From 1.
176
+ */
177
+ start?: number;
178
+ /**
179
+ * How `pageNumber` placeholders and the PDF page labels write the
180
+ * numbers; default decimal.
181
+ */
182
+ format?: PageNumberFormat;
183
+ };
184
+ export type PageNumberFormat = "decimal" | "lower-roman" | "upper-roman" | "lower-alpha" | "upper-alpha";
185
+ export type Letterhead = {
186
+ /**
187
+ * Index of the PDF file in the asset buffers passed next to the JSON
188
+ * (D-06).
189
+ */
190
+ asset: number;
191
+ /**
192
+ * Page of the PDF, from 0; default 0.
193
+ */
194
+ page?: number;
195
+ };
196
+ export type PageSize = NamedPageSize | CustomPageSize;
197
+ export type NamedPageSize = "A3" | "A4" | "A5" | "Letter" | "Legal";
198
+ export type CustomPageSize = {
199
+ width: number;
200
+ height: number;
201
+ };
202
+ export type Orientation = "portrait" | "landscape";
203
+ export type Dir = "ltr" | "rtl" | "auto";
204
+ export type Node = ({
205
+ "t": "view";
206
+ } & ViewNode) | ({
207
+ "t": "text";
208
+ } & TextNode) | ({
209
+ "t": "image";
210
+ } & ImageNode) | ({
211
+ "t": "svg";
212
+ } & SvgNode) | ({
213
+ "t": "table";
214
+ } & TableNode);
215
+ export type ViewNode = {
216
+ children?: ReadonlyArray<Node>;
217
+ /**
218
+ * Tailwind CSS v4 utility classes, for example `flex gap-4`.
219
+ */
220
+ className?: string;
221
+ /**
222
+ * Typed style properties; they win over `className` like inline styles.
223
+ */
224
+ style?: Style;
225
+ /**
226
+ * Structure role for tagged PDF: `section`, `article`, `part`, `div`,
227
+ * `blockquote`, `caption`, `figure` (with `alt`), `list`, `listitem`,
228
+ * `label`, `p`, `h1`–`h6`, `presentation` (no element of its own, the
229
+ * default) or `artifact` (decoration: the subtree is left out of the
230
+ * structure).
231
+ */
232
+ role?: string;
233
+ /**
234
+ * Replacement text for assistive technology; describes a `figure`.
235
+ */
236
+ alt?: string;
237
+ /**
238
+ * Language of this subtree as a BCP 47 tag.
239
+ */
240
+ lang?: string;
241
+ /**
242
+ * Base direction of this subtree.
243
+ */
244
+ dir?: Dir;
245
+ /**
246
+ * Anchor name that links (`#id`) and the outline point to; unique in
247
+ * the document.
248
+ */
249
+ id?: string;
250
+ /**
251
+ * Makes the box a link: `#id` jumps to the node with that `id`; an
252
+ * `http`, `https`, `mailto` or `tel` URI opens in the viewer's
253
+ * application. Each page fragment of the box is clickable.
254
+ */
255
+ href?: string;
256
+ bookmark?: false | Bookmark;
257
+ /**
258
+ * Running markers set where the box starts (`{ name, value }`), shown
259
+ * by `marker` placeholders in headers and footers.
260
+ */
261
+ markers?: ReadonlyArray<MarkerSet>;
262
+ };
263
+ export type TextNode = {
264
+ /**
265
+ * The text, or strings and placeholders (`pageNumber`, `totalPages`,
266
+ * `marker`) that the engine fills per page.
267
+ */
268
+ text: TextContent;
269
+ /**
270
+ * Tailwind CSS v4 utility classes, for example `text-sm text-gray-600`.
271
+ */
272
+ className?: string;
273
+ /**
274
+ * Typed style properties; they win over `className` like inline styles.
275
+ */
276
+ style?: Style;
277
+ /**
278
+ * Structure role for tagged PDF: `p` (the default), `h1`–`h6`,
279
+ * `caption`, `blockquote`, `code`, `label` (a list item's bullet or
280
+ * number), `presentation` (the text belongs to the enclosing element)
281
+ * or `artifact` (decoration, left out of the structure).
282
+ */
283
+ role?: string;
284
+ /**
285
+ * Language of this text as a BCP 47 tag.
286
+ */
287
+ lang?: string;
288
+ /**
289
+ * Base direction of this text; `auto` detects it per line.
290
+ */
291
+ dir?: Dir;
292
+ /**
293
+ * Replacement text for assistive technology.
294
+ */
295
+ alt?: string;
296
+ /**
297
+ * Anchor name that links (`#id`) and the outline point to; unique in
298
+ * the document.
299
+ */
300
+ id?: string;
301
+ bookmark?: false | Bookmark;
302
+ /**
303
+ * Running markers set where the text starts; a marker without a value
304
+ * takes the text.
305
+ */
306
+ markers?: ReadonlyArray<MarkerSet>;
307
+ };
308
+ export type TextContent = string | ReadonlyArray<TextPart>;
309
+ export type TextPart = string | Placeholder;
310
+ export type Placeholder = ({
311
+ "t": "pageNumber";
312
+ } & PageNumberField) | ({
313
+ "t": "totalPages";
314
+ } & TotalPagesField) | ({
315
+ "t": "marker";
316
+ } & MarkerField);
317
+ export type PageNumberField = {
318
+ /**
319
+ * How the number is written; default the page template's
320
+ * `numbering.format`, else decimal.
321
+ */
322
+ format?: PageNumberFormat;
323
+ };
324
+ export type TotalPagesField = {
325
+ /**
326
+ * Default `document`.
327
+ */
328
+ scope?: PageScope;
329
+ /**
330
+ * How the count is written; default decimal.
331
+ */
332
+ format?: PageNumberFormat;
333
+ };
334
+ export type PageScope = "document" | "section";
335
+ export type MarkerField = {
336
+ /**
337
+ * The marker's name, as content nodes set it (`markers`).
338
+ */
339
+ name: string;
340
+ /**
341
+ * Which value: default `first`.
342
+ */
343
+ select?: MarkerSelect;
344
+ };
345
+ export type MarkerSelect = "first" | "last" | "start" | "first-except";
346
+ export type MarkerSet = {
347
+ name: string;
348
+ /**
349
+ * The marker's value; a text node defaults to its text, other nodes
350
+ * need one.
351
+ */
352
+ value?: string;
353
+ };
354
+ export type ImageNode = {
355
+ /**
356
+ * Index of the image bytes in the asset buffers passed next to the
357
+ * JSON; bytes never travel inside the IR (D-06).
358
+ */
359
+ asset: number;
360
+ /**
361
+ * Replacement text for assistive technology.
362
+ */
363
+ alt?: string;
364
+ /**
365
+ * Tailwind CSS v4 utility classes, for example `w-32 object-contain`.
366
+ */
367
+ className?: string;
368
+ /**
369
+ * Typed style properties; they win over `className` like inline styles.
370
+ */
371
+ style?: Style;
372
+ /**
373
+ * Structure role for tagged PDF: `figure` (the default) or
374
+ * `artifact` for a decorative image, which needs no `alt`.
375
+ */
376
+ role?: string;
377
+ /**
378
+ * Anchor name that links (`#id`) and the outline point to; unique in
379
+ * the document.
380
+ */
381
+ id?: string;
382
+ bookmark?: false | Bookmark;
383
+ };
384
+ export type SvgNode = {
385
+ /**
386
+ * Index of the SVG markup (UTF-8) in the asset buffers passed next to
387
+ * the JSON (D-06).
388
+ */
389
+ asset: number;
390
+ /**
391
+ * Replacement text for assistive technology.
392
+ */
393
+ alt?: string;
394
+ /**
395
+ * Tailwind CSS v4 utility classes, for example `w-48 object-contain`.
396
+ */
397
+ className?: string;
398
+ /**
399
+ * Typed style properties; they win over `className` like inline styles.
400
+ */
401
+ style?: Style;
402
+ /**
403
+ * Structure role for tagged PDF: `figure` (the default) or
404
+ * `artifact` for a decorative graphic, which needs no `alt`.
405
+ */
406
+ role?: string;
407
+ /**
408
+ * Anchor name that links (`#id`) and the outline point to; unique in
409
+ * the document.
410
+ */
411
+ id?: string;
412
+ bookmark?: false | Bookmark;
413
+ };
414
+ export type Bookmark = {
415
+ /**
416
+ * The entry's text; text nodes default to their text, other nodes
417
+ * need one.
418
+ */
419
+ title?: string;
420
+ /**
421
+ * Nesting level from 1; defaults to the heading level of a heading,
422
+ * else 1.
423
+ */
424
+ level?: number;
425
+ };
426
+ export type TableNode = {
427
+ children?: ReadonlyArray<TableChild>;
428
+ /**
429
+ * Column descriptions in order. Columns without one (or tables
430
+ * without `columns`) are `auto`; the column count is the larger of
431
+ * this list and the widest row.
432
+ */
433
+ columns?: ReadonlyArray<TableColumn>;
434
+ /**
435
+ * Classes every cell gets before its own `className`, including the
436
+ * cells of generated running-total rows, for example `px-2 py-1`.
437
+ */
438
+ cellClassName?: string;
439
+ /**
440
+ * Repeat the header rows at the top of every page the table spans.
441
+ * Default `true`.
442
+ */
443
+ repeatHeader?: boolean;
444
+ /**
445
+ * Repeat the footer rows at the bottom of every page the table spans.
446
+ * Default `true`; with `false` they appear once, after the last body
447
+ * row. Data tables: repeats the `totals` row, default `false` (it
448
+ * holds the grand totals).
449
+ */
450
+ repeatFooter?: boolean;
451
+ /**
452
+ * Carried-forward and brought-forward rows with the running sums of
453
+ * the `sum` columns at every page break of the table.
454
+ */
455
+ runningTotals?: RunningTotals;
456
+ /**
457
+ * Makes this a data-driven table with this many body rows, whose
458
+ * cells the columns reference in the document's columnar channel
459
+ * (`text` and `values`). A data table has no `children`.
460
+ */
461
+ rows?: number;
462
+ /**
463
+ * Data tables: classes of every body row, for example `odd:bg-gray-50`;
464
+ * `first:`, `last:`, `odd:` and `even:` count the body rows.
465
+ */
466
+ rowClassName?: string;
467
+ /**
468
+ * Data tables: classes of the header row built from the columns'
469
+ * `header`s, for example `font-bold border-b`.
470
+ */
471
+ headerClassName?: string;
472
+ /**
473
+ * Data tables: a row after the body rows with the totals of the
474
+ * `sum` columns.
475
+ */
476
+ totals?: TableTotals;
477
+ /**
478
+ * Tailwind CSS v4 utility classes of the table box, for example `text-sm`.
479
+ */
480
+ className?: string;
481
+ /**
482
+ * Typed style properties; they win over `className` like inline styles.
483
+ */
484
+ style?: Style;
485
+ /**
486
+ * Structure role for tagged PDF: `table` (the default),
487
+ * `presentation` for a table that only arranges content (its cells'
488
+ * content belongs to the enclosing element) or `artifact`.
489
+ */
490
+ role?: string;
491
+ /**
492
+ * Language of this subtree as a BCP 47 tag.
493
+ */
494
+ lang?: string;
495
+ /**
496
+ * Base direction: `rtl` places the first column at the right.
497
+ */
498
+ dir?: Dir;
499
+ /**
500
+ * Anchor name that links (`#id`) and the outline point to; unique in
501
+ * the document.
502
+ */
503
+ id?: string;
504
+ bookmark?: false | Bookmark;
505
+ };
506
+ export type TableChild = {
507
+ "t": "row";
508
+ } & RowNode;
509
+ export type TableColumn = {
510
+ /**
511
+ * Points as a number, or `"auto"` (default; sized by the content),
512
+ * a fraction of the free space such as `"1fr"`, a CSS length such as
513
+ * `"30mm"`, or a percentage of the table width. A column is never
514
+ * narrower than its longest word.
515
+ */
516
+ width?: StyleLength;
517
+ /**
518
+ * Default text alignment of the column's cells; a cell's own classes win.
519
+ */
520
+ align?: TextAlign;
521
+ /**
522
+ * Sum the cells' `value`s in the running totals.
523
+ */
524
+ sum?: boolean;
525
+ /**
526
+ * How the cells' `value`s and the running sums are written.
527
+ */
528
+ format?: NumberFormat;
529
+ /**
530
+ * Data tables: the row property the column shows, for messages.
531
+ */
532
+ key?: string;
533
+ /**
534
+ * Data tables: the text of the column's header cell.
535
+ */
536
+ header?: string;
537
+ /**
538
+ * Data tables: classes of the column's body cells, after the table's
539
+ * `cellClassName`.
540
+ */
541
+ className?: string;
542
+ /**
543
+ * Data tables: the column's text cells, `len` consecutive entries of
544
+ * the channel's `ends` from `at`.
545
+ */
546
+ text?: ChannelRange;
547
+ /**
548
+ * Data tables: the column's number cells in integer minor units,
549
+ * `len` consecutive entries of the channel's `values` from `at`.
550
+ */
551
+ values?: ChannelRange;
552
+ };
553
+ export type NumberFormat = {
554
+ /**
555
+ * Digits after the decimal separator, 0 to 18. Default 0.
556
+ */
557
+ minorUnits?: number;
558
+ /**
559
+ * Decimal separator. Default `.`.
560
+ */
561
+ decimal?: string;
562
+ /**
563
+ * Thousands separator. Default none.
564
+ */
565
+ group?: string;
566
+ /**
567
+ * Text before the number, after the sign.
568
+ */
569
+ prefix?: string;
570
+ /**
571
+ * Text after the number.
572
+ */
573
+ suffix?: string;
574
+ };
575
+ export type RunningTotals = {
576
+ /**
577
+ * Label of the row at the bottom of a page, for example `Übertrag`.
578
+ */
579
+ carryForwardLabel: string;
580
+ /**
581
+ * Label of the row at the top of the next page.
582
+ */
583
+ broughtForwardLabel: string;
584
+ /**
585
+ * Classes of both generated rows, for example `font-semibold bg-gray-100`.
586
+ */
587
+ className?: string;
588
+ };
589
+ export type RowNode = {
590
+ children?: ReadonlyArray<RowChild>;
591
+ /**
592
+ * A header row: placed before the body rows and repeated on every page.
593
+ */
594
+ header?: boolean;
595
+ /**
596
+ * A footer row: placed after the body rows and repeated on every page.
597
+ */
598
+ footer?: boolean;
599
+ /**
600
+ * Tailwind CSS v4 utility classes. `odd:`, `even:`, `first:` and
601
+ * `last:` count rows within their header, body or footer section.
602
+ */
603
+ className?: string;
604
+ /**
605
+ * Typed style properties; they win over `className` like inline styles.
606
+ */
607
+ style?: Style;
608
+ };
609
+ export type RowChild = {
610
+ "t": "cell";
611
+ } & CellNode;
612
+ export type CellNode = {
613
+ children?: ReadonlyArray<Node>;
614
+ /**
615
+ * Columns the cell spans, 1 to 1,000. Default 1.
616
+ */
617
+ colSpan?: number;
618
+ /**
619
+ * Rows the cell spans within its section, 1 to 65,534. Default 1.
620
+ */
621
+ rowSpan?: number;
622
+ /**
623
+ * A number in integer minor units (for example cents), at most
624
+ * 2^53 - 1 in magnitude. A cell without children shows it with its
625
+ * column's `format`; `sum` columns add it to the running totals.
626
+ */
627
+ value?: number;
628
+ /**
629
+ * Tailwind CSS v4 utility classes, for example `px-2 align-top`.
630
+ */
631
+ className?: string;
632
+ /**
633
+ * Typed style properties; they win over `className` like inline styles.
634
+ */
635
+ style?: Style;
636
+ /**
637
+ * Structure role for tagged PDF: `th` for a header cell or `td` for a
638
+ * data cell. Cells of header rows default to `th`, other cells to `td`.
639
+ */
640
+ role?: string;
641
+ /**
642
+ * Header cells: the cells the header applies to. Default `col` in
643
+ * header rows and `row` elsewhere.
644
+ */
645
+ scope?: HeaderScope;
646
+ /**
647
+ * Language of this cell as a BCP 47 tag.
648
+ */
649
+ lang?: string;
650
+ /**
651
+ * Base direction of this cell's content.
652
+ */
653
+ dir?: Dir;
654
+ };
655
+ export type HeaderScope = "col" | "row" | "both";
656
+ export type TableTotals = {
657
+ /**
658
+ * For example `Total`.
659
+ */
660
+ label?: string;
661
+ /**
662
+ * Classes of the totals row, for example `font-bold border-t`.
663
+ */
664
+ className?: string;
665
+ };
666
+ export type Style = {
667
+ display?: Display;
668
+ width?: StyleLength;
669
+ height?: StyleLength;
670
+ minWidth?: StyleLength;
671
+ minHeight?: StyleLength;
672
+ maxWidth?: StyleLength;
673
+ maxHeight?: StyleLength;
674
+ padding?: StyleLength;
675
+ paddingTop?: StyleLength;
676
+ paddingRight?: StyleLength;
677
+ paddingBottom?: StyleLength;
678
+ paddingLeft?: StyleLength;
679
+ margin?: StyleLength;
680
+ marginTop?: StyleLength;
681
+ marginRight?: StyleLength;
682
+ marginBottom?: StyleLength;
683
+ marginLeft?: StyleLength;
684
+ flexDirection?: FlexDirection;
685
+ flexWrap?: FlexWrap;
686
+ flexGrow?: number;
687
+ flexShrink?: number;
688
+ flexBasis?: StyleLength;
689
+ alignItems?: AlignItems;
690
+ alignSelf?: AlignSelf;
691
+ justifyContent?: JustifyContent;
692
+ gap?: StyleLength;
693
+ rowGap?: StyleLength;
694
+ columnGap?: StyleLength;
695
+ /**
696
+ * A CSS track list, for example `"30mm 1fr auto"` or `"repeat(3, 1fr)"`.
697
+ */
698
+ gridTemplateColumns?: string;
699
+ gridTemplateRows?: string;
700
+ /**
701
+ * A CSS color: hex, `rgb()`, `hsl()`, `oklch()`, `oklab()`,
702
+ * `color-mix()` or a basic named color.
703
+ */
704
+ backgroundColor?: string;
705
+ borderWidth?: StyleLength;
706
+ borderColor?: string;
707
+ borderStyle?: BorderStyle;
708
+ borderRadius?: StyleLength;
709
+ /**
710
+ * 0 to 1.
711
+ */
712
+ opacity?: number;
713
+ color?: string;
714
+ /**
715
+ * A CSS font family list, for example `"Inter, sans-serif"`.
716
+ */
717
+ fontFamily?: string;
718
+ fontSize?: StyleLength;
719
+ /**
720
+ * 1 to 1000; 400 is normal, 700 bold.
721
+ */
722
+ fontWeight?: number;
723
+ fontStyle?: FontStyle;
724
+ /**
725
+ * Width of the face: condensed or expanded faces, the `wdth` axis of
726
+ * variable fonts.
727
+ */
728
+ fontStretch?: FontStretch;
729
+ /**
730
+ * Axis positions of variable fonts as CSS `font-variation-settings`,
731
+ * for example `"'wght' 650, 'GRAD' 50"`, or `"normal"`.
732
+ */
733
+ fontVariationSettings?: string;
734
+ lineHeight?: LineHeight;
735
+ letterSpacing?: StyleLength;
736
+ textAlign?: TextAlign;
737
+ textDecoration?: TextDecoration;
738
+ textTransform?: TextTransform;
739
+ /**
740
+ * Where words may be hyphenated; `auto` uses the patterns of the
741
+ * node's `lang`.
742
+ */
743
+ hyphens?: Hyphens;
744
+ /**
745
+ * How lines are chosen: `pretty` breaks the whole paragraph at once
746
+ * (Knuth–Plass), `balance` evens out the line lengths.
747
+ */
748
+ textWrapStyle?: TextWrapStyle;
749
+ breakBefore?: BreakBetween;
750
+ breakAfter?: BreakBetween;
751
+ breakInside?: BreakInside;
752
+ widows?: number;
753
+ orphans?: number;
754
+ /**
755
+ * How an image fills its content box.
756
+ */
757
+ objectFit?: ObjectFit;
758
+ /**
759
+ * Where an image sits in its content box when it does not fill it.
760
+ */
761
+ objectPosition?: ObjectPosition;
762
+ /**
763
+ * Vertical alignment of a table cell's content (rows pass theirs to
764
+ * their cells); cells default to `middle`, as in HTML.
765
+ */
766
+ verticalAlign?: VerticalAlign;
767
+ };
768
+ export type StyleLength = number | string;
769
+ export type LineHeight = number | string;
770
+ export type FontStretch = number | string;
771
+ export type Display = "block" | "inline" | "inline-block" | "flex" | "inline-flex" | "grid" | "inline-grid" | "none";
772
+ export type FlexDirection = "row" | "row-reverse" | "column" | "column-reverse";
773
+ export type FlexWrap = "nowrap" | "wrap" | "wrap-reverse";
774
+ export type AlignItems = "start" | "end" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch";
775
+ export type AlignSelf = "auto" | "start" | "end" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch";
776
+ export type JustifyContent = "normal" | "start" | "end" | "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch";
777
+ export type BorderStyle = "solid" | "dashed" | "dotted" | "double" | "hidden" | "none";
778
+ export type FontStyle = "normal" | "italic";
779
+ export type TextAlign = "left" | "center" | "right" | "justify" | "start" | "end";
780
+ export type TextDecoration = "none" | "underline" | "overline" | "line-through";
781
+ export type TextTransform = "none" | "uppercase" | "lowercase" | "capitalize";
782
+ export type Hyphens = "none" | "manual" | "auto";
783
+ export type TextWrapStyle = "auto" | "balance" | "pretty";
784
+ export type BreakBetween = "auto" | "avoid" | "avoid-page" | "page" | "left" | "right" | "column" | "all";
785
+ export type BreakInside = "auto" | "avoid" | "avoid-page" | "avoid-column";
786
+ export type ObjectFit = "fill" | "contain" | "cover" | "none" | "scale-down";
787
+ export type ObjectPosition = "center" | "top" | "bottom" | "left" | "right" | "top left" | "top right" | "bottom left" | "bottom right";
788
+ export type VerticalAlign = "baseline" | "top" | "middle" | "bottom" | "text-top" | "text-bottom" | "sub" | "super";
789
+ type ChannelRange = {
790
+ at: number;
791
+ len: number;
792
+ };
793
+ type DataChannel = {
794
+ /**
795
+ * Asset index of the text cells, concatenated as one UTF-8 buffer.
796
+ */
797
+ text?: number;
798
+ /**
799
+ * Asset index of one `u32` per text cell: where it ends in `text`,
800
+ * in UTF-16 code units (JavaScript string lengths) from the start.
801
+ * A cell starts where the previous one ends.
802
+ */
803
+ ends?: number;
804
+ /**
805
+ * Asset index of one `f64` per number cell: an integer in minor units
806
+ * within ±(2^53 − 1), or NaN for an empty cell.
807
+ */
808
+ values?: number;
809
+ };
810
+ export {};
811
+ //# sourceMappingURL=ir.generated.d.ts.map