@xyne/xyne-cli-darwin-x64 0.1.10 → 0.1.12

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 (390) hide show
  1. package/node_modules/@opentui/core/3d/SpriteResourceManager.d.ts +74 -0
  2. package/node_modules/@opentui/core/3d/SpriteUtils.d.ts +13 -0
  3. package/node_modules/@opentui/core/3d/TextureUtils.d.ts +24 -0
  4. package/node_modules/@opentui/core/3d/ThreeRenderable.d.ts +40 -0
  5. package/node_modules/@opentui/core/3d/WGPURenderer.d.ts +61 -0
  6. package/node_modules/@opentui/core/3d/animation/ExplodingSpriteEffect.d.ts +71 -0
  7. package/node_modules/@opentui/core/3d/animation/PhysicsExplodingSpriteEffect.d.ts +76 -0
  8. package/node_modules/@opentui/core/3d/animation/SpriteAnimator.d.ts +124 -0
  9. package/node_modules/@opentui/core/3d/animation/SpriteParticleGenerator.d.ts +62 -0
  10. package/node_modules/@opentui/core/3d/canvas.d.ts +44 -0
  11. package/node_modules/@opentui/core/3d/index.d.ts +12 -0
  12. package/node_modules/@opentui/core/3d/physics/PlanckPhysicsAdapter.d.ts +19 -0
  13. package/node_modules/@opentui/core/3d/physics/RapierPhysicsAdapter.d.ts +19 -0
  14. package/node_modules/@opentui/core/3d/physics/physics-interface.d.ts +27 -0
  15. package/node_modules/@opentui/core/3d.d.ts +2 -0
  16. package/node_modules/@opentui/core/3d.js +34041 -0
  17. package/node_modules/@opentui/core/3d.js.map +155 -0
  18. package/node_modules/@opentui/core/LICENSE +21 -0
  19. package/node_modules/@opentui/core/NativeSpanFeed.d.ts +41 -0
  20. package/node_modules/@opentui/core/README.md +62 -0
  21. package/node_modules/@opentui/core/Renderable.d.ts +334 -0
  22. package/node_modules/@opentui/core/animation/Timeline.d.ts +126 -0
  23. package/node_modules/@opentui/core/ansi.d.ts +13 -0
  24. package/node_modules/@opentui/core/assets/javascript/highlights.scm +205 -0
  25. package/node_modules/@opentui/core/assets/javascript/tree-sitter-javascript.wasm +0 -0
  26. package/node_modules/@opentui/core/assets/markdown/highlights.scm +150 -0
  27. package/node_modules/@opentui/core/assets/markdown/injections.scm +27 -0
  28. package/node_modules/@opentui/core/assets/markdown/tree-sitter-markdown.wasm +0 -0
  29. package/node_modules/@opentui/core/assets/markdown_inline/highlights.scm +115 -0
  30. package/node_modules/@opentui/core/assets/markdown_inline/tree-sitter-markdown_inline.wasm +0 -0
  31. package/node_modules/@opentui/core/assets/typescript/highlights.scm +604 -0
  32. package/node_modules/@opentui/core/assets/typescript/tree-sitter-typescript.wasm +0 -0
  33. package/node_modules/@opentui/core/assets/zig/highlights.scm +284 -0
  34. package/node_modules/@opentui/core/assets/zig/tree-sitter-zig.wasm +0 -0
  35. package/node_modules/@opentui/core/buffer.d.ts +109 -0
  36. package/node_modules/@opentui/core/console.d.ts +143 -0
  37. package/node_modules/@opentui/core/edit-buffer.d.ts +98 -0
  38. package/node_modules/@opentui/core/editor-view.d.ts +73 -0
  39. package/node_modules/@opentui/core/index-4kfx7p6q.js +19143 -0
  40. package/node_modules/@opentui/core/index-4kfx7p6q.js.map +64 -0
  41. package/node_modules/@opentui/core/index-adp83v70.js +13345 -0
  42. package/node_modules/@opentui/core/index-adp83v70.js.map +45 -0
  43. package/node_modules/@opentui/core/index-bhw3bbqb.js +188 -0
  44. package/node_modules/@opentui/core/index-bhw3bbqb.js.map +10 -0
  45. package/node_modules/@opentui/core/index.d.ts +23 -0
  46. package/node_modules/@opentui/core/index.js +472 -0
  47. package/node_modules/@opentui/core/index.js.map +9 -0
  48. package/node_modules/@opentui/core/lib/KeyHandler.d.ts +61 -0
  49. package/node_modules/@opentui/core/lib/RGBA.d.ts +25 -0
  50. package/node_modules/@opentui/core/lib/ascii.font.d.ts +508 -0
  51. package/node_modules/@opentui/core/lib/border.d.ts +49 -0
  52. package/node_modules/@opentui/core/lib/bunfs.d.ts +7 -0
  53. package/node_modules/@opentui/core/lib/clipboard.d.ts +17 -0
  54. package/node_modules/@opentui/core/lib/clock.d.ts +15 -0
  55. package/node_modules/@opentui/core/lib/data-paths.d.ts +26 -0
  56. package/node_modules/@opentui/core/lib/debounce.d.ts +42 -0
  57. package/node_modules/@opentui/core/lib/detect-links.d.ts +6 -0
  58. package/node_modules/@opentui/core/lib/env.d.ts +42 -0
  59. package/node_modules/@opentui/core/lib/extmarks-history.d.ts +17 -0
  60. package/node_modules/@opentui/core/lib/extmarks.d.ts +89 -0
  61. package/node_modules/@opentui/core/lib/hast-styled-text.d.ts +17 -0
  62. package/node_modules/@opentui/core/lib/index.d.ts +21 -0
  63. package/node_modules/@opentui/core/lib/keymapping.d.ts +25 -0
  64. package/node_modules/@opentui/core/lib/objects-in-viewport.d.ts +24 -0
  65. package/node_modules/@opentui/core/lib/output.capture.d.ts +24 -0
  66. package/node_modules/@opentui/core/lib/parse.keypress-kitty.d.ts +2 -0
  67. package/node_modules/@opentui/core/lib/parse.keypress.d.ts +26 -0
  68. package/node_modules/@opentui/core/lib/parse.mouse.d.ts +30 -0
  69. package/node_modules/@opentui/core/lib/paste.d.ts +7 -0
  70. package/node_modules/@opentui/core/lib/queue.d.ts +15 -0
  71. package/node_modules/@opentui/core/lib/renderable.validations.d.ts +12 -0
  72. package/node_modules/@opentui/core/lib/scroll-acceleration.d.ts +43 -0
  73. package/node_modules/@opentui/core/lib/selection.d.ts +63 -0
  74. package/node_modules/@opentui/core/lib/singleton.d.ts +7 -0
  75. package/node_modules/@opentui/core/lib/stdin-parser.d.ts +86 -0
  76. package/node_modules/@opentui/core/lib/styled-text.d.ts +63 -0
  77. package/node_modules/@opentui/core/lib/terminal-capability-detection.d.ts +30 -0
  78. package/node_modules/@opentui/core/lib/terminal-palette.d.ts +50 -0
  79. package/node_modules/@opentui/core/lib/tree-sitter/assets/update.d.ts +11 -0
  80. package/node_modules/@opentui/core/lib/tree-sitter/client.d.ts +47 -0
  81. package/node_modules/@opentui/core/lib/tree-sitter/default-parsers.d.ts +2 -0
  82. package/node_modules/@opentui/core/lib/tree-sitter/download-utils.d.ts +21 -0
  83. package/node_modules/@opentui/core/lib/tree-sitter/index.d.ts +8 -0
  84. package/node_modules/@opentui/core/lib/tree-sitter/parser.worker.d.ts +1 -0
  85. package/node_modules/@opentui/core/lib/tree-sitter/parsers-config.d.ts +53 -0
  86. package/node_modules/@opentui/core/lib/tree-sitter/resolve-ft.d.ts +5 -0
  87. package/node_modules/@opentui/core/lib/tree-sitter/types.d.ts +82 -0
  88. package/node_modules/@opentui/core/lib/tree-sitter-styled-text.d.ts +14 -0
  89. package/node_modules/@opentui/core/lib/validate-dir-name.d.ts +1 -0
  90. package/node_modules/@opentui/core/lib/yoga.options.d.ts +32 -0
  91. package/node_modules/@opentui/core/node_modules/diff/CONTRIBUTING.md +28 -0
  92. package/node_modules/@opentui/core/node_modules/diff/LICENSE +29 -0
  93. package/node_modules/@opentui/core/node_modules/diff/README.md +378 -0
  94. package/node_modules/@opentui/core/node_modules/diff/dist/diff.js +1674 -0
  95. package/node_modules/@opentui/core/node_modules/diff/dist/diff.min.js +1 -0
  96. package/node_modules/@opentui/core/node_modules/diff/eslint.config.mjs +182 -0
  97. package/node_modules/@opentui/core/node_modules/diff/libcjs/convert/dmp.d.ts +8 -0
  98. package/node_modules/@opentui/core/node_modules/diff/libcjs/convert/dmp.d.ts.map +1 -0
  99. package/node_modules/@opentui/core/node_modules/diff/libcjs/convert/dmp.js +24 -0
  100. package/node_modules/@opentui/core/node_modules/diff/libcjs/convert/xml.d.ts +6 -0
  101. package/node_modules/@opentui/core/node_modules/diff/libcjs/convert/xml.d.ts.map +1 -0
  102. package/node_modules/@opentui/core/node_modules/diff/libcjs/convert/xml.js +34 -0
  103. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/array.d.ts +19 -0
  104. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/array.d.ts.map +1 -0
  105. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/array.js +40 -0
  106. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/base.d.ts +20 -0
  107. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/base.d.ts.map +1 -0
  108. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/base.js +265 -0
  109. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/character.d.ts +19 -0
  110. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/character.d.ts.map +1 -0
  111. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/character.js +31 -0
  112. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/css.d.ts +18 -0
  113. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/css.d.ts.map +1 -0
  114. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/css.js +34 -0
  115. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/json.d.ts +24 -0
  116. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/json.d.ts.map +1 -0
  117. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/json.js +105 -0
  118. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/line.d.ts +24 -0
  119. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/line.d.ts.map +1 -0
  120. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/line.js +89 -0
  121. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/sentence.d.ts +21 -0
  122. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/sentence.d.ts.map +1 -0
  123. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/sentence.js +67 -0
  124. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/word.d.ts +35 -0
  125. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/word.d.ts.map +1 -0
  126. package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/word.js +307 -0
  127. package/node_modules/@opentui/core/node_modules/diff/libcjs/index.d.ts +20 -0
  128. package/node_modules/@opentui/core/node_modules/diff/libcjs/index.d.ts.map +1 -0
  129. package/node_modules/@opentui/core/node_modules/diff/libcjs/index.js +61 -0
  130. package/node_modules/@opentui/core/node_modules/diff/libcjs/package.json +1 -0
  131. package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/apply.d.ts +62 -0
  132. package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/apply.d.ts.map +1 -0
  133. package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/apply.js +267 -0
  134. package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/create.d.ts +100 -0
  135. package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/create.d.ts.map +1 -0
  136. package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/create.js +223 -0
  137. package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/line-endings.d.ts +17 -0
  138. package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/line-endings.d.ts.map +1 -0
  139. package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/line-endings.js +61 -0
  140. package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/parse.d.ts +8 -0
  141. package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/parse.d.ts.map +1 -0
  142. package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/parse.js +133 -0
  143. package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/reverse.d.ts +9 -0
  144. package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/reverse.d.ts.map +1 -0
  145. package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/reverse.js +37 -0
  146. package/node_modules/@opentui/core/node_modules/diff/libcjs/types.d.ts +213 -0
  147. package/node_modules/@opentui/core/node_modules/diff/libcjs/types.d.ts.map +1 -0
  148. package/node_modules/@opentui/core/node_modules/diff/libcjs/types.js +2 -0
  149. package/node_modules/@opentui/core/node_modules/diff/libcjs/util/array.d.ts +3 -0
  150. package/node_modules/@opentui/core/node_modules/diff/libcjs/util/array.d.ts.map +1 -0
  151. package/node_modules/@opentui/core/node_modules/diff/libcjs/util/array.js +21 -0
  152. package/node_modules/@opentui/core/node_modules/diff/libcjs/util/distance-iterator.d.ts +2 -0
  153. package/node_modules/@opentui/core/node_modules/diff/libcjs/util/distance-iterator.d.ts.map +1 -0
  154. package/node_modules/@opentui/core/node_modules/diff/libcjs/util/distance-iterator.js +40 -0
  155. package/node_modules/@opentui/core/node_modules/diff/libcjs/util/params.d.ts +4 -0
  156. package/node_modules/@opentui/core/node_modules/diff/libcjs/util/params.d.ts.map +1 -0
  157. package/node_modules/@opentui/core/node_modules/diff/libcjs/util/params.js +17 -0
  158. package/node_modules/@opentui/core/node_modules/diff/libcjs/util/string.d.ts +18 -0
  159. package/node_modules/@opentui/core/node_modules/diff/libcjs/util/string.d.ts.map +1 -0
  160. package/node_modules/@opentui/core/node_modules/diff/libcjs/util/string.js +141 -0
  161. package/node_modules/@opentui/core/node_modules/diff/libesm/convert/dmp.d.ts +8 -0
  162. package/node_modules/@opentui/core/node_modules/diff/libesm/convert/dmp.d.ts.map +1 -0
  163. package/node_modules/@opentui/core/node_modules/diff/libesm/convert/dmp.js +21 -0
  164. package/node_modules/@opentui/core/node_modules/diff/libesm/convert/xml.d.ts +6 -0
  165. package/node_modules/@opentui/core/node_modules/diff/libesm/convert/xml.d.ts.map +1 -0
  166. package/node_modules/@opentui/core/node_modules/diff/libesm/convert/xml.js +31 -0
  167. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/array.d.ts +19 -0
  168. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/array.d.ts.map +1 -0
  169. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/array.js +16 -0
  170. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/base.d.ts +20 -0
  171. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/base.d.ts.map +1 -0
  172. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/base.js +253 -0
  173. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/character.d.ts +19 -0
  174. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/character.d.ts.map +1 -0
  175. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/character.js +7 -0
  176. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/css.d.ts +18 -0
  177. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/css.d.ts.map +1 -0
  178. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/css.js +10 -0
  179. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/json.d.ts +24 -0
  180. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/json.d.ts.map +1 -0
  181. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/json.js +78 -0
  182. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/line.d.ts +24 -0
  183. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/line.d.ts.map +1 -0
  184. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/line.js +65 -0
  185. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/sentence.d.ts +21 -0
  186. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/sentence.d.ts.map +1 -0
  187. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/sentence.js +43 -0
  188. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/word.d.ts +35 -0
  189. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/word.d.ts.map +1 -0
  190. package/node_modules/@opentui/core/node_modules/diff/libesm/diff/word.js +276 -0
  191. package/node_modules/@opentui/core/node_modules/diff/libesm/index.d.ts +20 -0
  192. package/node_modules/@opentui/core/node_modules/diff/libesm/index.d.ts.map +1 -0
  193. package/node_modules/@opentui/core/node_modules/diff/libesm/index.js +30 -0
  194. package/node_modules/@opentui/core/node_modules/diff/libesm/package.json +1 -0
  195. package/node_modules/@opentui/core/node_modules/diff/libesm/patch/apply.d.ts +62 -0
  196. package/node_modules/@opentui/core/node_modules/diff/libesm/patch/apply.d.ts.map +1 -0
  197. package/node_modules/@opentui/core/node_modules/diff/libesm/patch/apply.js +257 -0
  198. package/node_modules/@opentui/core/node_modules/diff/libesm/patch/create.d.ts +100 -0
  199. package/node_modules/@opentui/core/node_modules/diff/libesm/patch/create.d.ts.map +1 -0
  200. package/node_modules/@opentui/core/node_modules/diff/libesm/patch/create.js +201 -0
  201. package/node_modules/@opentui/core/node_modules/diff/libesm/patch/line-endings.d.ts +17 -0
  202. package/node_modules/@opentui/core/node_modules/diff/libesm/patch/line-endings.d.ts.map +1 -0
  203. package/node_modules/@opentui/core/node_modules/diff/libesm/patch/line-endings.js +44 -0
  204. package/node_modules/@opentui/core/node_modules/diff/libesm/patch/parse.d.ts +8 -0
  205. package/node_modules/@opentui/core/node_modules/diff/libesm/patch/parse.d.ts.map +1 -0
  206. package/node_modules/@opentui/core/node_modules/diff/libesm/patch/parse.js +130 -0
  207. package/node_modules/@opentui/core/node_modules/diff/libesm/patch/reverse.d.ts +9 -0
  208. package/node_modules/@opentui/core/node_modules/diff/libesm/patch/reverse.d.ts.map +1 -0
  209. package/node_modules/@opentui/core/node_modules/diff/libesm/patch/reverse.js +23 -0
  210. package/node_modules/@opentui/core/node_modules/diff/libesm/types.d.ts +213 -0
  211. package/node_modules/@opentui/core/node_modules/diff/libesm/types.d.ts.map +1 -0
  212. package/node_modules/@opentui/core/node_modules/diff/libesm/types.js +1 -0
  213. package/node_modules/@opentui/core/node_modules/diff/libesm/util/array.d.ts +3 -0
  214. package/node_modules/@opentui/core/node_modules/diff/libesm/util/array.d.ts.map +1 -0
  215. package/node_modules/@opentui/core/node_modules/diff/libesm/util/array.js +17 -0
  216. package/node_modules/@opentui/core/node_modules/diff/libesm/util/distance-iterator.d.ts +2 -0
  217. package/node_modules/@opentui/core/node_modules/diff/libesm/util/distance-iterator.d.ts.map +1 -0
  218. package/node_modules/@opentui/core/node_modules/diff/libesm/util/distance-iterator.js +37 -0
  219. package/node_modules/@opentui/core/node_modules/diff/libesm/util/params.d.ts +4 -0
  220. package/node_modules/@opentui/core/node_modules/diff/libesm/util/params.d.ts.map +1 -0
  221. package/node_modules/@opentui/core/node_modules/diff/libesm/util/params.js +14 -0
  222. package/node_modules/@opentui/core/node_modules/diff/libesm/util/string.d.ts +18 -0
  223. package/node_modules/@opentui/core/node_modules/diff/libesm/util/string.d.ts.map +1 -0
  224. package/node_modules/@opentui/core/node_modules/diff/libesm/util/string.js +128 -0
  225. package/node_modules/@opentui/core/node_modules/diff/package.json +131 -0
  226. package/node_modules/@opentui/core/node_modules/diff/release-notes.md +397 -0
  227. package/node_modules/@opentui/core/node_modules/marked/LICENSE.md +44 -0
  228. package/node_modules/@opentui/core/node_modules/marked/README.md +107 -0
  229. package/node_modules/@opentui/core/node_modules/marked/bin/main.js +283 -0
  230. package/node_modules/@opentui/core/node_modules/marked/bin/marked.js +16 -0
  231. package/node_modules/@opentui/core/node_modules/marked/lib/marked.d.ts +756 -0
  232. package/node_modules/@opentui/core/node_modules/marked/lib/marked.esm.js +72 -0
  233. package/node_modules/@opentui/core/node_modules/marked/lib/marked.esm.js.map +7 -0
  234. package/node_modules/@opentui/core/node_modules/marked/lib/marked.umd.js +74 -0
  235. package/node_modules/@opentui/core/node_modules/marked/lib/marked.umd.js.map +7 -0
  236. package/node_modules/@opentui/core/node_modules/marked/man/marked.1 +113 -0
  237. package/node_modules/@opentui/core/node_modules/marked/man/marked.1.md +93 -0
  238. package/node_modules/@opentui/core/node_modules/marked/package.json +103 -0
  239. package/node_modules/@opentui/core/package.json +77 -0
  240. package/node_modules/@opentui/core/parser.worker.js +891 -0
  241. package/node_modules/@opentui/core/parser.worker.js.map +12 -0
  242. package/node_modules/@opentui/core/plugins/core-slot.d.ts +72 -0
  243. package/node_modules/@opentui/core/plugins/registry.d.ts +42 -0
  244. package/node_modules/@opentui/core/plugins/types.d.ts +34 -0
  245. package/node_modules/@opentui/core/post/effects.d.ts +147 -0
  246. package/node_modules/@opentui/core/post/filters.d.ts +65 -0
  247. package/node_modules/@opentui/core/post/matrices.d.ts +20 -0
  248. package/node_modules/@opentui/core/renderables/ASCIIFont.d.ts +52 -0
  249. package/node_modules/@opentui/core/renderables/Box.d.ts +72 -0
  250. package/node_modules/@opentui/core/renderables/Code.d.ts +78 -0
  251. package/node_modules/@opentui/core/renderables/Diff.d.ts +142 -0
  252. package/node_modules/@opentui/core/renderables/EditBufferRenderable.d.ts +162 -0
  253. package/node_modules/@opentui/core/renderables/FrameBuffer.d.ts +16 -0
  254. package/node_modules/@opentui/core/renderables/Input.d.ts +67 -0
  255. package/node_modules/@opentui/core/renderables/LineNumberRenderable.d.ts +78 -0
  256. package/node_modules/@opentui/core/renderables/Markdown.d.ts +181 -0
  257. package/node_modules/@opentui/core/renderables/ScrollBar.d.ts +77 -0
  258. package/node_modules/@opentui/core/renderables/ScrollBox.d.ts +124 -0
  259. package/node_modules/@opentui/core/renderables/Select.d.ts +115 -0
  260. package/node_modules/@opentui/core/renderables/Slider.d.ts +44 -0
  261. package/node_modules/@opentui/core/renderables/TabSelect.d.ts +96 -0
  262. package/node_modules/@opentui/core/renderables/Text.d.ts +36 -0
  263. package/node_modules/@opentui/core/renderables/TextBufferRenderable.d.ts +105 -0
  264. package/node_modules/@opentui/core/renderables/TextNode.d.ts +91 -0
  265. package/node_modules/@opentui/core/renderables/TextTable.d.ts +140 -0
  266. package/node_modules/@opentui/core/renderables/Textarea.d.ts +114 -0
  267. package/node_modules/@opentui/core/renderables/TimeToFirstDraw.d.ts +24 -0
  268. package/node_modules/@opentui/core/renderables/__tests__/renderable-test-utils.d.ts +12 -0
  269. package/node_modules/@opentui/core/renderables/composition/VRenderable.d.ts +16 -0
  270. package/node_modules/@opentui/core/renderables/composition/constructs.d.ts +35 -0
  271. package/node_modules/@opentui/core/renderables/composition/vnode.d.ts +46 -0
  272. package/node_modules/@opentui/core/renderables/index.d.ts +22 -0
  273. package/node_modules/@opentui/core/renderables/markdown-parser.d.ts +10 -0
  274. package/node_modules/@opentui/core/renderer.d.ts +416 -0
  275. package/node_modules/@opentui/core/runtime-plugin-support.d.ts +3 -0
  276. package/node_modules/@opentui/core/runtime-plugin-support.js +29 -0
  277. package/node_modules/@opentui/core/runtime-plugin-support.js.map +10 -0
  278. package/node_modules/@opentui/core/runtime-plugin.d.ts +11 -0
  279. package/node_modules/@opentui/core/runtime-plugin.js +16 -0
  280. package/node_modules/@opentui/core/runtime-plugin.js.map +9 -0
  281. package/node_modules/@opentui/core/syntax-style.d.ts +54 -0
  282. package/node_modules/@opentui/core/testing/manual-clock.d.ts +17 -0
  283. package/node_modules/@opentui/core/testing/mock-keys.d.ts +81 -0
  284. package/node_modules/@opentui/core/testing/mock-mouse.d.ts +38 -0
  285. package/node_modules/@opentui/core/testing/mock-tree-sitter-client.d.ts +23 -0
  286. package/node_modules/@opentui/core/testing/spy.d.ts +7 -0
  287. package/node_modules/@opentui/core/testing/test-recorder.d.ts +61 -0
  288. package/node_modules/@opentui/core/testing/test-renderer.d.ts +23 -0
  289. package/node_modules/@opentui/core/testing.d.ts +6 -0
  290. package/node_modules/@opentui/core/testing.js +692 -0
  291. package/node_modules/@opentui/core/testing.js.map +15 -0
  292. package/node_modules/@opentui/core/text-buffer-view.d.ts +42 -0
  293. package/node_modules/@opentui/core/text-buffer.d.ts +67 -0
  294. package/node_modules/@opentui/core/types.d.ts +136 -0
  295. package/node_modules/@opentui/core/utils.d.ts +14 -0
  296. package/node_modules/@opentui/core/zig-structs.d.ts +155 -0
  297. package/node_modules/@opentui/core/zig.d.ts +353 -0
  298. package/node_modules/@opentui/core-darwin-arm64/LICENSE +21 -0
  299. package/node_modules/@opentui/core-darwin-arm64/README.md +3 -0
  300. package/node_modules/@opentui/core-darwin-arm64/index.ts +3 -0
  301. package/node_modules/@opentui/core-darwin-arm64/libopentui.dylib +0 -0
  302. package/node_modules/@opentui/core-darwin-arm64/package.json +23 -0
  303. package/node_modules/@opentui/core-darwin-x64/LICENSE +21 -0
  304. package/node_modules/@opentui/core-darwin-x64/README.md +3 -0
  305. package/node_modules/@opentui/core-darwin-x64/index.ts +3 -0
  306. package/node_modules/@opentui/core-darwin-x64/libopentui.dylib +0 -0
  307. package/node_modules/@opentui/core-darwin-x64/package.json +23 -0
  308. package/node_modules/@opentui/core-linux-arm64/LICENSE +21 -0
  309. package/node_modules/@opentui/core-linux-arm64/README.md +3 -0
  310. package/node_modules/@opentui/core-linux-arm64/index.ts +3 -0
  311. package/node_modules/@opentui/core-linux-arm64/libopentui.so +0 -0
  312. package/node_modules/@opentui/core-linux-arm64/package.json +23 -0
  313. package/node_modules/@opentui/core-linux-x64/LICENSE +21 -0
  314. package/node_modules/@opentui/core-linux-x64/README.md +3 -0
  315. package/node_modules/@opentui/core-linux-x64/index.ts +3 -0
  316. package/node_modules/@opentui/core-linux-x64/libopentui.so +0 -0
  317. package/node_modules/@opentui/core-linux-x64/package.json +23 -0
  318. package/node_modules/@opentui/core-win32-x64/LICENSE +21 -0
  319. package/node_modules/@opentui/core-win32-x64/README.md +3 -0
  320. package/node_modules/@opentui/core-win32-x64/index.ts +3 -0
  321. package/node_modules/@opentui/core-win32-x64/opentui.dll +0 -0
  322. package/node_modules/@opentui/core-win32-x64/package.json +23 -0
  323. package/node_modules/web-tree-sitter/LICENSE +21 -0
  324. package/node_modules/web-tree-sitter/README.md +269 -0
  325. package/node_modules/web-tree-sitter/debug/tree-sitter.cjs +4558 -0
  326. package/node_modules/web-tree-sitter/debug/tree-sitter.cjs.map +7 -0
  327. package/node_modules/web-tree-sitter/debug/tree-sitter.js +4516 -0
  328. package/node_modules/web-tree-sitter/debug/tree-sitter.js.map +7 -0
  329. package/node_modules/web-tree-sitter/debug/tree-sitter.wasm +0 -0
  330. package/node_modules/web-tree-sitter/debug/tree-sitter.wasm.map +31 -0
  331. package/node_modules/web-tree-sitter/lib/alloc.c +48 -0
  332. package/node_modules/web-tree-sitter/lib/alloc.h +41 -0
  333. package/node_modules/web-tree-sitter/lib/array.h +291 -0
  334. package/node_modules/web-tree-sitter/lib/atomic.h +68 -0
  335. package/node_modules/web-tree-sitter/lib/clock.h +146 -0
  336. package/node_modules/web-tree-sitter/lib/error_costs.h +11 -0
  337. package/node_modules/web-tree-sitter/lib/get_changed_ranges.c +523 -0
  338. package/node_modules/web-tree-sitter/lib/get_changed_ranges.h +36 -0
  339. package/node_modules/web-tree-sitter/lib/host.h +21 -0
  340. package/node_modules/web-tree-sitter/lib/language.c +293 -0
  341. package/node_modules/web-tree-sitter/lib/language.h +293 -0
  342. package/node_modules/web-tree-sitter/lib/length.h +52 -0
  343. package/node_modules/web-tree-sitter/lib/lexer.c +483 -0
  344. package/node_modules/web-tree-sitter/lib/lexer.h +54 -0
  345. package/node_modules/web-tree-sitter/lib/lib.c +12 -0
  346. package/node_modules/web-tree-sitter/lib/node.c +875 -0
  347. package/node_modules/web-tree-sitter/lib/parser.c +2297 -0
  348. package/node_modules/web-tree-sitter/lib/parser.h +286 -0
  349. package/node_modules/web-tree-sitter/lib/point.h +48 -0
  350. package/node_modules/web-tree-sitter/lib/query.c +4347 -0
  351. package/node_modules/web-tree-sitter/lib/reduce_action.h +34 -0
  352. package/node_modules/web-tree-sitter/lib/reusable_node.h +95 -0
  353. package/node_modules/web-tree-sitter/lib/stack.c +912 -0
  354. package/node_modules/web-tree-sitter/lib/stack.h +133 -0
  355. package/node_modules/web-tree-sitter/lib/subtree.c +1034 -0
  356. package/node_modules/web-tree-sitter/lib/subtree.h +399 -0
  357. package/node_modules/web-tree-sitter/lib/tree-sitter.c +987 -0
  358. package/node_modules/web-tree-sitter/lib/tree-sitter.cjs +2988 -0
  359. package/node_modules/web-tree-sitter/lib/tree-sitter.wasm +0 -0
  360. package/node_modules/web-tree-sitter/lib/tree-sitter.wasm.map +1 -0
  361. package/node_modules/web-tree-sitter/lib/tree.c +170 -0
  362. package/node_modules/web-tree-sitter/lib/tree.h +31 -0
  363. package/node_modules/web-tree-sitter/lib/tree_cursor.c +716 -0
  364. package/node_modules/web-tree-sitter/lib/tree_cursor.h +48 -0
  365. package/node_modules/web-tree-sitter/lib/ts_assert.h +11 -0
  366. package/node_modules/web-tree-sitter/lib/unicode.h +75 -0
  367. package/node_modules/web-tree-sitter/lib/wasm_store.c +1937 -0
  368. package/node_modules/web-tree-sitter/lib/wasm_store.h +31 -0
  369. package/node_modules/web-tree-sitter/package.json +98 -0
  370. package/node_modules/web-tree-sitter/src/bindings.ts +26 -0
  371. package/node_modules/web-tree-sitter/src/constants.ts +133 -0
  372. package/node_modules/web-tree-sitter/src/index.ts +31 -0
  373. package/node_modules/web-tree-sitter/src/language.ts +291 -0
  374. package/node_modules/web-tree-sitter/src/lookahead_iterator.ts +75 -0
  375. package/node_modules/web-tree-sitter/src/marshal.ts +176 -0
  376. package/node_modules/web-tree-sitter/src/node.ts +646 -0
  377. package/node_modules/web-tree-sitter/src/parser.ts +325 -0
  378. package/node_modules/web-tree-sitter/src/query.ts +973 -0
  379. package/node_modules/web-tree-sitter/src/tree.ts +145 -0
  380. package/node_modules/web-tree-sitter/src/tree_cursor.ts +318 -0
  381. package/node_modules/web-tree-sitter/tree-sitter.cjs +4031 -0
  382. package/node_modules/web-tree-sitter/tree-sitter.cjs.map +7 -0
  383. package/node_modules/web-tree-sitter/tree-sitter.js +3980 -0
  384. package/node_modules/web-tree-sitter/tree-sitter.js.map +7 -0
  385. package/node_modules/web-tree-sitter/tree-sitter.wasm +0 -0
  386. package/node_modules/web-tree-sitter/tree-sitter.wasm.map +30 -0
  387. package/node_modules/web-tree-sitter/web-tree-sitter.d.ts +1030 -0
  388. package/node_modules/web-tree-sitter/web-tree-sitter.d.ts.map +56 -0
  389. package/package.json +9 -3
  390. package/xyne-macos-intel +0 -0
@@ -0,0 +1,756 @@
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ export type MarkedToken = (Tokens.Blockquote | Tokens.Br | Tokens.Checkbox | Tokens.Code | Tokens.Codespan | Tokens.Def | Tokens.Del | Tokens.Em | Tokens.Escape | Tokens.Heading | Tokens.Hr | Tokens.HTML | Tokens.Image | Tokens.Link | Tokens.List | Tokens.ListItem | Tokens.Paragraph | Tokens.Space | Tokens.Strong | Tokens.Table | Tokens.Tag | Tokens.Text);
4
+ export type Token = (MarkedToken | Tokens.Generic);
5
+ export declare namespace Tokens {
6
+ interface Blockquote {
7
+ type: "blockquote";
8
+ raw: string;
9
+ text: string;
10
+ tokens: Token[];
11
+ }
12
+ interface Br {
13
+ type: "br";
14
+ raw: string;
15
+ }
16
+ interface Checkbox {
17
+ type: "checkbox";
18
+ raw: string;
19
+ checked: boolean;
20
+ }
21
+ interface Code {
22
+ type: "code";
23
+ raw: string;
24
+ codeBlockStyle?: "indented";
25
+ lang?: string;
26
+ text: string;
27
+ escaped?: boolean;
28
+ }
29
+ interface Codespan {
30
+ type: "codespan";
31
+ raw: string;
32
+ text: string;
33
+ }
34
+ interface Def {
35
+ type: "def";
36
+ raw: string;
37
+ tag: string;
38
+ href: string;
39
+ title: string;
40
+ }
41
+ interface Del {
42
+ type: "del";
43
+ raw: string;
44
+ text: string;
45
+ tokens: Token[];
46
+ }
47
+ interface Em {
48
+ type: "em";
49
+ raw: string;
50
+ text: string;
51
+ tokens: Token[];
52
+ }
53
+ interface Escape {
54
+ type: "escape";
55
+ raw: string;
56
+ text: string;
57
+ }
58
+ interface Generic {
59
+ [index: string]: any;
60
+ type: string;
61
+ raw: string;
62
+ tokens?: Token[];
63
+ }
64
+ interface Heading {
65
+ type: "heading";
66
+ raw: string;
67
+ depth: number;
68
+ text: string;
69
+ tokens: Token[];
70
+ }
71
+ interface Hr {
72
+ type: "hr";
73
+ raw: string;
74
+ }
75
+ interface HTML {
76
+ type: "html";
77
+ raw: string;
78
+ pre: boolean;
79
+ text: string;
80
+ block: boolean;
81
+ }
82
+ interface Image {
83
+ type: "image";
84
+ raw: string;
85
+ href: string;
86
+ title: string | null;
87
+ text: string;
88
+ tokens: Token[];
89
+ }
90
+ interface Link {
91
+ type: "link";
92
+ raw: string;
93
+ href: string;
94
+ title?: string | null;
95
+ text: string;
96
+ tokens: Token[];
97
+ }
98
+ interface List {
99
+ type: "list";
100
+ raw: string;
101
+ ordered: boolean;
102
+ start: number | "";
103
+ loose: boolean;
104
+ items: ListItem[];
105
+ }
106
+ interface ListItem {
107
+ type: "list_item";
108
+ raw: string;
109
+ task: boolean;
110
+ checked?: boolean;
111
+ loose: boolean;
112
+ text: string;
113
+ tokens: Token[];
114
+ }
115
+ interface Paragraph {
116
+ type: "paragraph";
117
+ raw: string;
118
+ pre?: boolean;
119
+ text: string;
120
+ tokens: Token[];
121
+ }
122
+ interface Space {
123
+ type: "space";
124
+ raw: string;
125
+ }
126
+ interface Strong {
127
+ type: "strong";
128
+ raw: string;
129
+ text: string;
130
+ tokens: Token[];
131
+ }
132
+ interface Table {
133
+ type: "table";
134
+ raw: string;
135
+ align: Array<"center" | "left" | "right" | null>;
136
+ header: TableCell[];
137
+ rows: TableCell[][];
138
+ }
139
+ interface TableCell {
140
+ text: string;
141
+ tokens: Token[];
142
+ header: boolean;
143
+ align: "center" | "left" | "right" | null;
144
+ }
145
+ interface TableRow<P = string> {
146
+ text: P;
147
+ }
148
+ interface Tag {
149
+ type: "html";
150
+ raw: string;
151
+ inLink: boolean;
152
+ inRawBlock: boolean;
153
+ text: string;
154
+ block: boolean;
155
+ }
156
+ interface Text {
157
+ type: "text";
158
+ raw: string;
159
+ text: string;
160
+ tokens?: Token[];
161
+ escaped?: boolean;
162
+ }
163
+ }
164
+ export type Links = Record<string, Pick<Tokens.Link | Tokens.Image, "href" | "title">>;
165
+ export type TokensList = Token[] & {
166
+ links: Links;
167
+ };
168
+ /**
169
+ * Renderer
170
+ */
171
+ declare class _Renderer<ParserOutput = string, RendererOutput = string> {
172
+ options: MarkedOptions<ParserOutput, RendererOutput>;
173
+ parser: _Parser<ParserOutput, RendererOutput>;
174
+ constructor(options?: MarkedOptions<ParserOutput, RendererOutput>);
175
+ space(token: Tokens.Space): RendererOutput;
176
+ code({ text, lang, escaped }: Tokens.Code): RendererOutput;
177
+ blockquote({ tokens }: Tokens.Blockquote): RendererOutput;
178
+ html({ text }: Tokens.HTML | Tokens.Tag): RendererOutput;
179
+ def(token: Tokens.Def): RendererOutput;
180
+ heading({ tokens, depth }: Tokens.Heading): RendererOutput;
181
+ hr(token: Tokens.Hr): RendererOutput;
182
+ list(token: Tokens.List): RendererOutput;
183
+ listitem(item: Tokens.ListItem): RendererOutput;
184
+ checkbox({ checked }: Tokens.Checkbox): RendererOutput;
185
+ paragraph({ tokens }: Tokens.Paragraph): RendererOutput;
186
+ table(token: Tokens.Table): RendererOutput;
187
+ tablerow({ text }: Tokens.TableRow<ParserOutput>): RendererOutput;
188
+ tablecell(token: Tokens.TableCell): RendererOutput;
189
+ /**
190
+ * span level renderer
191
+ */
192
+ strong({ tokens }: Tokens.Strong): RendererOutput;
193
+ em({ tokens }: Tokens.Em): RendererOutput;
194
+ codespan({ text }: Tokens.Codespan): RendererOutput;
195
+ br(token: Tokens.Br): RendererOutput;
196
+ del({ tokens }: Tokens.Del): RendererOutput;
197
+ link({ href, title, tokens }: Tokens.Link): RendererOutput;
198
+ image({ href, title, text, tokens }: Tokens.Image): RendererOutput;
199
+ text(token: Tokens.Text | Tokens.Escape): RendererOutput;
200
+ }
201
+ /**
202
+ * TextRenderer
203
+ * returns only the textual part of the token
204
+ */
205
+ declare class _TextRenderer<RendererOutput = string> {
206
+ strong({ text }: Tokens.Strong): RendererOutput;
207
+ em({ text }: Tokens.Em): RendererOutput;
208
+ codespan({ text }: Tokens.Codespan): RendererOutput;
209
+ del({ text }: Tokens.Del): RendererOutput;
210
+ html({ text }: Tokens.HTML | Tokens.Tag): RendererOutput;
211
+ text({ text }: Tokens.Text | Tokens.Escape | Tokens.Tag): RendererOutput;
212
+ link({ text }: Tokens.Link): RendererOutput;
213
+ image({ text }: Tokens.Image): RendererOutput;
214
+ br(): RendererOutput;
215
+ checkbox({ raw }: Tokens.Checkbox): RendererOutput;
216
+ }
217
+ /**
218
+ * Parsing & Compiling
219
+ */
220
+ declare class _Parser<ParserOutput = string, RendererOutput = string> {
221
+ options: MarkedOptions<ParserOutput, RendererOutput>;
222
+ renderer: _Renderer<ParserOutput, RendererOutput>;
223
+ textRenderer: _TextRenderer<RendererOutput>;
224
+ constructor(options?: MarkedOptions<ParserOutput, RendererOutput>);
225
+ /**
226
+ * Static Parse Method
227
+ */
228
+ static parse<ParserOutput = string, RendererOutput = string>(tokens: Token[], options?: MarkedOptions<ParserOutput, RendererOutput>): ParserOutput;
229
+ /**
230
+ * Static Parse Inline Method
231
+ */
232
+ static parseInline<ParserOutput = string, RendererOutput = string>(tokens: Token[], options?: MarkedOptions<ParserOutput, RendererOutput>): ParserOutput;
233
+ /**
234
+ * Parse Loop
235
+ */
236
+ parse(tokens: Token[]): ParserOutput;
237
+ /**
238
+ * Parse Inline Tokens
239
+ */
240
+ parseInline(tokens: Token[], renderer?: _Renderer<ParserOutput, RendererOutput> | _TextRenderer<RendererOutput>): ParserOutput;
241
+ }
242
+ declare const other: {
243
+ codeRemoveIndent: RegExp;
244
+ outputLinkReplace: RegExp;
245
+ indentCodeCompensation: RegExp;
246
+ beginningSpace: RegExp;
247
+ endingHash: RegExp;
248
+ startingSpaceChar: RegExp;
249
+ endingSpaceChar: RegExp;
250
+ nonSpaceChar: RegExp;
251
+ newLineCharGlobal: RegExp;
252
+ tabCharGlobal: RegExp;
253
+ multipleSpaceGlobal: RegExp;
254
+ blankLine: RegExp;
255
+ doubleBlankLine: RegExp;
256
+ blockquoteStart: RegExp;
257
+ blockquoteSetextReplace: RegExp;
258
+ blockquoteSetextReplace2: RegExp;
259
+ listReplaceTabs: RegExp;
260
+ listReplaceNesting: RegExp;
261
+ listIsTask: RegExp;
262
+ listReplaceTask: RegExp;
263
+ listTaskCheckbox: RegExp;
264
+ anyLine: RegExp;
265
+ hrefBrackets: RegExp;
266
+ tableDelimiter: RegExp;
267
+ tableAlignChars: RegExp;
268
+ tableRowBlankLine: RegExp;
269
+ tableAlignRight: RegExp;
270
+ tableAlignCenter: RegExp;
271
+ tableAlignLeft: RegExp;
272
+ startATag: RegExp;
273
+ endATag: RegExp;
274
+ startPreScriptTag: RegExp;
275
+ endPreScriptTag: RegExp;
276
+ startAngleBracket: RegExp;
277
+ endAngleBracket: RegExp;
278
+ pedanticHrefTitle: RegExp;
279
+ unicodeAlphaNumeric: RegExp;
280
+ escapeTest: RegExp;
281
+ escapeReplace: RegExp;
282
+ escapeTestNoEncode: RegExp;
283
+ escapeReplaceNoEncode: RegExp;
284
+ unescapeTest: RegExp;
285
+ caret: RegExp;
286
+ percentDecode: RegExp;
287
+ findPipe: RegExp;
288
+ splitPipe: RegExp;
289
+ slashPipe: RegExp;
290
+ carriageReturn: RegExp;
291
+ spaceLine: RegExp;
292
+ notSpaceStart: RegExp;
293
+ endingNewline: RegExp;
294
+ listItemRegex: (bull: string) => RegExp;
295
+ nextBulletRegex: (indent: number) => RegExp;
296
+ hrRegex: (indent: number) => RegExp;
297
+ fencesBeginRegex: (indent: number) => RegExp;
298
+ headingBeginRegex: (indent: number) => RegExp;
299
+ htmlBeginRegex: (indent: number) => RegExp;
300
+ };
301
+ declare const blockNormal: {
302
+ blockquote: RegExp;
303
+ code: RegExp;
304
+ def: RegExp;
305
+ fences: RegExp;
306
+ heading: RegExp;
307
+ hr: RegExp;
308
+ html: RegExp;
309
+ lheading: RegExp;
310
+ list: RegExp;
311
+ newline: RegExp;
312
+ paragraph: RegExp;
313
+ table: RegExp;
314
+ text: RegExp;
315
+ };
316
+ export type BlockKeys = keyof typeof blockNormal;
317
+ declare const inlineNormal: {
318
+ _backpedal: RegExp;
319
+ anyPunctuation: RegExp;
320
+ autolink: RegExp;
321
+ blockSkip: RegExp;
322
+ br: RegExp;
323
+ code: RegExp;
324
+ del: RegExp;
325
+ emStrongLDelim: RegExp;
326
+ emStrongRDelimAst: RegExp;
327
+ emStrongRDelimUnd: RegExp;
328
+ escape: RegExp;
329
+ link: RegExp;
330
+ nolink: RegExp;
331
+ punctuation: RegExp;
332
+ reflink: RegExp;
333
+ reflinkSearch: RegExp;
334
+ tag: RegExp;
335
+ text: RegExp;
336
+ url: RegExp;
337
+ };
338
+ export type InlineKeys = keyof typeof inlineNormal;
339
+ export interface Rules {
340
+ other: typeof other;
341
+ block: Record<BlockKeys, RegExp>;
342
+ inline: Record<InlineKeys, RegExp>;
343
+ }
344
+ /**
345
+ * Tokenizer
346
+ */
347
+ declare class _Tokenizer<ParserOutput = string, RendererOutput = string> {
348
+ options: MarkedOptions<ParserOutput, RendererOutput>;
349
+ rules: Rules;
350
+ lexer: _Lexer<ParserOutput, RendererOutput>;
351
+ constructor(options?: MarkedOptions<ParserOutput, RendererOutput>);
352
+ space(src: string): Tokens.Space | undefined;
353
+ code(src: string): Tokens.Code | undefined;
354
+ fences(src: string): Tokens.Code | undefined;
355
+ heading(src: string): Tokens.Heading | undefined;
356
+ hr(src: string): Tokens.Hr | undefined;
357
+ blockquote(src: string): Tokens.Blockquote | undefined;
358
+ list(src: string): Tokens.List | undefined;
359
+ html(src: string): Tokens.HTML | undefined;
360
+ def(src: string): Tokens.Def | undefined;
361
+ table(src: string): Tokens.Table | undefined;
362
+ lheading(src: string): Tokens.Heading | undefined;
363
+ paragraph(src: string): Tokens.Paragraph | undefined;
364
+ text(src: string): Tokens.Text | undefined;
365
+ escape(src: string): Tokens.Escape | undefined;
366
+ tag(src: string): Tokens.Tag | undefined;
367
+ link(src: string): Tokens.Link | Tokens.Image | undefined;
368
+ reflink(src: string, links: Links): Tokens.Link | Tokens.Image | Tokens.Text | undefined;
369
+ emStrong(src: string, maskedSrc: string, prevChar?: string): Tokens.Em | Tokens.Strong | undefined;
370
+ codespan(src: string): Tokens.Codespan | undefined;
371
+ br(src: string): Tokens.Br | undefined;
372
+ del(src: string): Tokens.Del | undefined;
373
+ autolink(src: string): Tokens.Link | undefined;
374
+ url(src: string): Tokens.Link | undefined;
375
+ inlineText(src: string): Tokens.Text | undefined;
376
+ }
377
+ declare class _Hooks<ParserOutput = string, RendererOutput = string> {
378
+ options: MarkedOptions<ParserOutput, RendererOutput>;
379
+ block?: boolean;
380
+ constructor(options?: MarkedOptions<ParserOutput, RendererOutput>);
381
+ static passThroughHooks: Set<string>;
382
+ static passThroughHooksRespectAsync: Set<string>;
383
+ /**
384
+ * Process markdown before marked
385
+ */
386
+ preprocess(markdown: string): string;
387
+ /**
388
+ * Process HTML after marked is finished
389
+ */
390
+ postprocess(html: ParserOutput): ParserOutput;
391
+ /**
392
+ * Process all tokens before walk tokens
393
+ */
394
+ processAllTokens(tokens: Token[] | TokensList): Token[] | TokensList;
395
+ /**
396
+ * Mask contents that should not be interpreted as em/strong delimiters
397
+ */
398
+ emStrongMask(src: string): string;
399
+ /**
400
+ * Provide function to tokenize markdown
401
+ */
402
+ provideLexer(): typeof _Lexer.lexInline;
403
+ /**
404
+ * Provide function to parse tokens
405
+ */
406
+ provideParser(): (tokens: Token[], options?: MarkedOptions<ParserOutput, RendererOutput> | undefined) => ParserOutput;
407
+ }
408
+ export interface TokenizerThis {
409
+ lexer: _Lexer;
410
+ }
411
+ export type TokenizerExtensionFunction = (this: TokenizerThis, src: string, tokens: Token[] | TokensList) => Tokens.Generic | undefined;
412
+ export type TokenizerStartFunction = (this: TokenizerThis, src: string) => number | void;
413
+ export interface TokenizerExtension {
414
+ name: string;
415
+ level: "block" | "inline";
416
+ start?: TokenizerStartFunction;
417
+ tokenizer: TokenizerExtensionFunction;
418
+ childTokens?: string[];
419
+ }
420
+ export interface RendererThis<ParserOutput = string, RendererOutput = string> {
421
+ parser: _Parser<ParserOutput, RendererOutput>;
422
+ }
423
+ export type RendererExtensionFunction<ParserOutput = string, RendererOutput = string> = (this: RendererThis<ParserOutput, RendererOutput>, token: Tokens.Generic) => RendererOutput | false | undefined;
424
+ export interface RendererExtension<ParserOutput = string, RendererOutput = string> {
425
+ name: string;
426
+ renderer: RendererExtensionFunction<ParserOutput, RendererOutput>;
427
+ }
428
+ export type TokenizerAndRendererExtension<ParserOutput = string, RendererOutput = string> = TokenizerExtension | RendererExtension<ParserOutput, RendererOutput> | (TokenizerExtension & RendererExtension<ParserOutput, RendererOutput>);
429
+ export type HooksApi<ParserOutput = string, RendererOutput = string> = Omit<_Hooks<ParserOutput, RendererOutput>, "constructor" | "options" | "block">;
430
+ export type HooksObject<ParserOutput = string, RendererOutput = string> = {
431
+ [K in keyof HooksApi<ParserOutput, RendererOutput>]?: (this: _Hooks<ParserOutput, RendererOutput>, ...args: Parameters<HooksApi<ParserOutput, RendererOutput>[K]>) => ReturnType<HooksApi<ParserOutput, RendererOutput>[K]> | Promise<ReturnType<HooksApi<ParserOutput, RendererOutput>[K]>>;
432
+ };
433
+ export type RendererApi<ParserOutput = string, RendererOutput = string> = Omit<_Renderer<ParserOutput, RendererOutput>, "constructor" | "options" | "parser">;
434
+ export type RendererObject<ParserOutput = string, RendererOutput = string> = {
435
+ [K in keyof RendererApi<ParserOutput, RendererOutput>]?: (this: _Renderer<ParserOutput, RendererOutput>, ...args: Parameters<RendererApi<ParserOutput, RendererOutput>[K]>) => ReturnType<RendererApi<ParserOutput, RendererOutput>[K]> | false;
436
+ };
437
+ export type TokenizerApi<ParserOutput = string, RendererOutput = string> = Omit<_Tokenizer<ParserOutput, RendererOutput>, "constructor" | "options" | "rules" | "lexer">;
438
+ export type TokenizerObject<ParserOutput = string, RendererOutput = string> = {
439
+ [K in keyof TokenizerApi<ParserOutput, RendererOutput>]?: (this: _Tokenizer<ParserOutput, RendererOutput>, ...args: Parameters<TokenizerApi<ParserOutput, RendererOutput>[K]>) => ReturnType<TokenizerApi<ParserOutput, RendererOutput>[K]> | false;
440
+ };
441
+ export interface MarkedExtension<ParserOutput = string, RendererOutput = string> {
442
+ /**
443
+ * True will tell marked to await any walkTokens functions before parsing the tokens and returning an HTML string.
444
+ */
445
+ async?: boolean;
446
+ /**
447
+ * Enable GFM line breaks. This option requires the gfm option to be true.
448
+ */
449
+ breaks?: boolean;
450
+ /**
451
+ * Add tokenizers and renderers to marked
452
+ */
453
+ extensions?: TokenizerAndRendererExtension<ParserOutput, RendererOutput>[] | null;
454
+ /**
455
+ * Enable GitHub flavored markdown.
456
+ */
457
+ gfm?: boolean;
458
+ /**
459
+ * Hooks are methods that hook into some part of marked.
460
+ * preprocess is called to process markdown before sending it to marked.
461
+ * processAllTokens is called with the TokensList before walkTokens.
462
+ * postprocess is called to process html after marked has finished parsing.
463
+ * emStrongMask is called to mask contents that should not be interpreted as em/strong delimiters.
464
+ * provideLexer is called to provide a function to tokenize markdown.
465
+ * provideParser is called to provide a function to parse tokens.
466
+ */
467
+ hooks?: HooksObject<ParserOutput, RendererOutput> | null;
468
+ /**
469
+ * Conform to obscure parts of markdown.pl as much as possible. Don't fix any of the original markdown bugs or poor behavior.
470
+ */
471
+ pedantic?: boolean;
472
+ /**
473
+ * Type: object Default: new Renderer()
474
+ *
475
+ * An object containing functions to render tokens to HTML.
476
+ */
477
+ renderer?: RendererObject<ParserOutput, RendererOutput> | null;
478
+ /**
479
+ * Shows an HTML error message when rendering fails.
480
+ */
481
+ silent?: boolean;
482
+ /**
483
+ * The tokenizer defines how to turn markdown text into tokens.
484
+ */
485
+ tokenizer?: TokenizerObject | null;
486
+ /**
487
+ * The walkTokens function gets called with every token.
488
+ * Child tokens are called before moving on to sibling tokens.
489
+ * Each token is passed by reference so updates are persisted when passed to the parser.
490
+ * The return value of the function is ignored.
491
+ */
492
+ walkTokens?: ((token: Token) => void | Promise<void>) | null;
493
+ }
494
+ export interface MarkedOptions<ParserOutput = string, RendererOutput = string> extends Omit<MarkedExtension<ParserOutput, RendererOutput>, "hooks" | "renderer" | "tokenizer" | "extensions" | "walkTokens"> {
495
+ /**
496
+ * Hooks are methods that hook into some part of marked.
497
+ */
498
+ hooks?: _Hooks<ParserOutput, RendererOutput> | null;
499
+ /**
500
+ * Type: object Default: new Renderer()
501
+ *
502
+ * An object containing functions to render tokens to HTML.
503
+ */
504
+ renderer?: _Renderer<ParserOutput, RendererOutput> | null;
505
+ /**
506
+ * The tokenizer defines how to turn markdown text into tokens.
507
+ */
508
+ tokenizer?: _Tokenizer<ParserOutput, RendererOutput> | null;
509
+ /**
510
+ * Custom extensions
511
+ */
512
+ extensions?: null | {
513
+ renderers: {
514
+ [name: string]: RendererExtensionFunction<ParserOutput, RendererOutput>;
515
+ };
516
+ childTokens: {
517
+ [name: string]: string[];
518
+ };
519
+ inline?: TokenizerExtensionFunction[];
520
+ block?: TokenizerExtensionFunction[];
521
+ startInline?: TokenizerStartFunction[];
522
+ startBlock?: TokenizerStartFunction[];
523
+ };
524
+ /**
525
+ * walkTokens function returns array of values for Promise.all
526
+ */
527
+ walkTokens?: null | ((token: Token) => void | Promise<void> | (void | Promise<void>)[]);
528
+ }
529
+ /**
530
+ * Block Lexer
531
+ */
532
+ declare class _Lexer<ParserOutput = string, RendererOutput = string> {
533
+ tokens: TokensList;
534
+ options: MarkedOptions<ParserOutput, RendererOutput>;
535
+ state: {
536
+ inLink: boolean;
537
+ inRawBlock: boolean;
538
+ top: boolean;
539
+ };
540
+ inlineQueue: {
541
+ src: string;
542
+ tokens: Token[];
543
+ }[];
544
+ private tokenizer;
545
+ constructor(options?: MarkedOptions<ParserOutput, RendererOutput>);
546
+ /**
547
+ * Expose Rules
548
+ */
549
+ static get rules(): {
550
+ block: {
551
+ normal: {
552
+ blockquote: RegExp;
553
+ code: RegExp;
554
+ def: RegExp;
555
+ fences: RegExp;
556
+ heading: RegExp;
557
+ hr: RegExp;
558
+ html: RegExp;
559
+ lheading: RegExp;
560
+ list: RegExp;
561
+ newline: RegExp;
562
+ paragraph: RegExp;
563
+ table: RegExp;
564
+ text: RegExp;
565
+ };
566
+ gfm: Record<"code" | "blockquote" | "hr" | "html" | "table" | "text" | "def" | "heading" | "list" | "paragraph" | "fences" | "lheading" | "newline", RegExp>;
567
+ pedantic: Record<"code" | "blockquote" | "hr" | "html" | "table" | "text" | "def" | "heading" | "list" | "paragraph" | "fences" | "lheading" | "newline", RegExp>;
568
+ };
569
+ inline: {
570
+ normal: {
571
+ _backpedal: RegExp;
572
+ anyPunctuation: RegExp;
573
+ autolink: RegExp;
574
+ blockSkip: RegExp;
575
+ br: RegExp;
576
+ code: RegExp;
577
+ del: RegExp;
578
+ emStrongLDelim: RegExp;
579
+ emStrongRDelimAst: RegExp;
580
+ emStrongRDelimUnd: RegExp;
581
+ escape: RegExp;
582
+ link: RegExp;
583
+ nolink: RegExp;
584
+ punctuation: RegExp;
585
+ reflink: RegExp;
586
+ reflinkSearch: RegExp;
587
+ tag: RegExp;
588
+ text: RegExp;
589
+ url: RegExp;
590
+ };
591
+ gfm: Record<"link" | "code" | "url" | "br" | "del" | "text" | "escape" | "tag" | "reflink" | "nolink" | "_backpedal" | "anyPunctuation" | "autolink" | "blockSkip" | "emStrongLDelim" | "emStrongRDelimAst" | "emStrongRDelimUnd" | "punctuation" | "reflinkSearch", RegExp>;
592
+ breaks: Record<"link" | "code" | "url" | "br" | "del" | "text" | "escape" | "tag" | "reflink" | "nolink" | "_backpedal" | "anyPunctuation" | "autolink" | "blockSkip" | "emStrongLDelim" | "emStrongRDelimAst" | "emStrongRDelimUnd" | "punctuation" | "reflinkSearch", RegExp>;
593
+ pedantic: Record<"link" | "code" | "url" | "br" | "del" | "text" | "escape" | "tag" | "reflink" | "nolink" | "_backpedal" | "anyPunctuation" | "autolink" | "blockSkip" | "emStrongLDelim" | "emStrongRDelimAst" | "emStrongRDelimUnd" | "punctuation" | "reflinkSearch", RegExp>;
594
+ };
595
+ };
596
+ /**
597
+ * Static Lex Method
598
+ */
599
+ static lex<ParserOutput = string, RendererOutput = string>(src: string, options?: MarkedOptions<ParserOutput, RendererOutput>): TokensList;
600
+ /**
601
+ * Static Lex Inline Method
602
+ */
603
+ static lexInline<ParserOutput = string, RendererOutput = string>(src: string, options?: MarkedOptions<ParserOutput, RendererOutput>): Token[];
604
+ /**
605
+ * Preprocessing
606
+ */
607
+ lex(src: string): TokensList;
608
+ /**
609
+ * Lexing
610
+ */
611
+ blockTokens(src: string, tokens?: Token[], lastParagraphClipped?: boolean): Token[];
612
+ blockTokens(src: string, tokens?: TokensList, lastParagraphClipped?: boolean): TokensList;
613
+ inline(src: string, tokens?: Token[]): Token[];
614
+ /**
615
+ * Lexing/Compiling
616
+ */
617
+ inlineTokens(src: string, tokens?: Token[]): Token[];
618
+ }
619
+ /**
620
+ * Gets the original marked default options.
621
+ */
622
+ declare function _getDefaults<ParserOutput = string, RendererOutput = string>(): MarkedOptions<ParserOutput, RendererOutput>;
623
+ declare let _defaults: MarkedOptions<any, any>;
624
+ export type MaybePromise = void | Promise<void>;
625
+ export declare class Marked<ParserOutput = string, RendererOutput = string> {
626
+ defaults: MarkedOptions<ParserOutput, RendererOutput>;
627
+ options: (opt: MarkedOptions<ParserOutput, RendererOutput>) => this;
628
+ parse: {
629
+ (src: string, options: MarkedOptions<ParserOutput, RendererOutput> & {
630
+ async: true;
631
+ }): Promise<ParserOutput>;
632
+ (src: string, options: MarkedOptions<ParserOutput, RendererOutput> & {
633
+ async: false;
634
+ }): ParserOutput;
635
+ (src: string, options?: MarkedOptions<ParserOutput, RendererOutput> | null): ParserOutput | Promise<ParserOutput>;
636
+ };
637
+ parseInline: {
638
+ (src: string, options: MarkedOptions<ParserOutput, RendererOutput> & {
639
+ async: true;
640
+ }): Promise<ParserOutput>;
641
+ (src: string, options: MarkedOptions<ParserOutput, RendererOutput> & {
642
+ async: false;
643
+ }): ParserOutput;
644
+ (src: string, options?: MarkedOptions<ParserOutput, RendererOutput> | null): ParserOutput | Promise<ParserOutput>;
645
+ };
646
+ Parser: {
647
+ new (options?: MarkedOptions<ParserOutput, RendererOutput> | undefined): _Parser<ParserOutput, RendererOutput>;
648
+ parse<ParserOutput_1 = string, RendererOutput_1 = string>(tokens: Token[], options?: MarkedOptions<ParserOutput_1, RendererOutput_1>): ParserOutput_1;
649
+ parseInline<ParserOutput_1 = string, RendererOutput_1 = string>(tokens: Token[], options?: MarkedOptions<ParserOutput_1, RendererOutput_1>): ParserOutput_1;
650
+ };
651
+ Renderer: {
652
+ new (options?: MarkedOptions<ParserOutput, RendererOutput> | undefined): _Renderer<ParserOutput, RendererOutput>;
653
+ };
654
+ TextRenderer: {
655
+ new (): _TextRenderer<RendererOutput>;
656
+ };
657
+ Lexer: typeof _Lexer;
658
+ Tokenizer: {
659
+ new (options?: MarkedOptions<ParserOutput, RendererOutput> | undefined): _Tokenizer<ParserOutput, RendererOutput>;
660
+ };
661
+ Hooks: {
662
+ new (options?: MarkedOptions<ParserOutput, RendererOutput> | undefined): _Hooks<ParserOutput, RendererOutput>;
663
+ passThroughHooks: Set<string>;
664
+ passThroughHooksRespectAsync: Set<string>;
665
+ };
666
+ constructor(...args: MarkedExtension<ParserOutput, RendererOutput>[]);
667
+ /**
668
+ * Run callback for every token
669
+ */
670
+ walkTokens(tokens: Token[] | TokensList, callback: (token: Token) => MaybePromise | MaybePromise[]): MaybePromise[];
671
+ use(...args: MarkedExtension<ParserOutput, RendererOutput>[]): this;
672
+ setOptions(opt: MarkedOptions<ParserOutput, RendererOutput>): this;
673
+ lexer(src: string, options?: MarkedOptions<ParserOutput, RendererOutput>): TokensList;
674
+ parser(tokens: Token[], options?: MarkedOptions<ParserOutput, RendererOutput>): ParserOutput;
675
+ private parseMarkdown;
676
+ private onError;
677
+ }
678
+ /**
679
+ * Compiles markdown to HTML asynchronously.
680
+ *
681
+ * @param src String of markdown source to be compiled
682
+ * @param options Hash of options, having async: true
683
+ * @return Promise of string of compiled HTML
684
+ */
685
+ export declare function marked(src: string, options: MarkedOptions & {
686
+ async: true;
687
+ }): Promise<string>;
688
+ /**
689
+ * Compiles markdown to HTML.
690
+ *
691
+ * @param src String of markdown source to be compiled
692
+ * @param options Optional hash of options
693
+ * @return String of compiled HTML. Will be a Promise of string if async is set to true by any extensions.
694
+ */
695
+ export declare function marked(src: string, options: MarkedOptions & {
696
+ async: false;
697
+ }): string;
698
+ export declare function marked(src: string, options: MarkedOptions & {
699
+ async: true;
700
+ }): Promise<string>;
701
+ export declare function marked(src: string, options?: MarkedOptions | null): string | Promise<string>;
702
+ export declare namespace marked {
703
+ var options: (options: MarkedOptions) => typeof marked;
704
+ var setOptions: (options: MarkedOptions) => typeof marked;
705
+ var getDefaults: typeof _getDefaults;
706
+ var defaults: MarkedOptions<any, any>;
707
+ var use: (...args: MarkedExtension[]) => typeof marked;
708
+ var walkTokens: (tokens: Token[] | TokensList, callback: (token: Token) => MaybePromise | MaybePromise[]) => MaybePromise[];
709
+ var parseInline: {
710
+ (src: string, options: MarkedOptions<string, string> & {
711
+ async: true;
712
+ }): Promise<string>;
713
+ (src: string, options: MarkedOptions<string, string> & {
714
+ async: false;
715
+ }): string;
716
+ (src: string, options?: MarkedOptions<string, string> | null | undefined): string | Promise<string>;
717
+ };
718
+ var Parser: typeof _Parser;
719
+ var parser: typeof _Parser.parse;
720
+ var Renderer: typeof _Renderer;
721
+ var TextRenderer: typeof _TextRenderer;
722
+ var Lexer: typeof _Lexer;
723
+ var lexer: typeof _Lexer.lex;
724
+ var Tokenizer: typeof _Tokenizer;
725
+ var Hooks: typeof _Hooks;
726
+ var parse: typeof marked;
727
+ }
728
+ export declare const options: (options: MarkedOptions) => typeof marked;
729
+ export declare const setOptions: (options: MarkedOptions) => typeof marked;
730
+ export declare const use: (...args: MarkedExtension[]) => typeof marked;
731
+ export declare const walkTokens: (tokens: Token[] | TokensList, callback: (token: Token) => MaybePromise | MaybePromise[]) => MaybePromise[];
732
+ export declare const parseInline: {
733
+ (src: string, options: MarkedOptions<string, string> & {
734
+ async: true;
735
+ }): Promise<string>;
736
+ (src: string, options: MarkedOptions<string, string> & {
737
+ async: false;
738
+ }): string;
739
+ (src: string, options?: MarkedOptions<string, string> | null | undefined): string | Promise<string>;
740
+ };
741
+ export declare const parse: typeof marked;
742
+ export declare const parser: typeof _Parser.parse;
743
+ export declare const lexer: typeof _Lexer.lex;
744
+
745
+ export {
746
+ _Hooks as Hooks,
747
+ _Lexer as Lexer,
748
+ _Parser as Parser,
749
+ _Renderer as Renderer,
750
+ _TextRenderer as TextRenderer,
751
+ _Tokenizer as Tokenizer,
752
+ _defaults as defaults,
753
+ _getDefaults as getDefaults,
754
+ };
755
+
756
+ export {};