@mtkruto/node 0.1.191 → 0.1.201

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 (265) hide show
  1. package/esm/1_utilities.d.ts +1 -1
  2. package/esm/1_utilities.js +1 -1
  3. package/esm/2_tl.d.ts +6 -6
  4. package/esm/2_tl.js +6 -6
  5. package/esm/3_storage.d.ts +5 -5
  6. package/esm/3_storage.js +5 -5
  7. package/esm/3_types.d.ts +6 -5
  8. package/esm/3_types.js +6 -5
  9. package/esm/4_constants.d.ts +2 -2
  10. package/esm/4_constants.js +2 -2
  11. package/esm/5_client.d.ts +1 -1
  12. package/esm/5_client.js +1 -1
  13. package/esm/client/0_params.d.ts +7 -1
  14. package/esm/client/0_types.d.ts +1 -0
  15. package/esm/client/0_utilities.d.ts +0 -3
  16. package/esm/client/0_utilities.js +0 -20
  17. package/esm/client/1_business_connection_manager.d.ts +11 -0
  18. package/esm/client/1_business_connection_manager.js +47 -0
  19. package/esm/client/1_update_manager.d.ts +8 -1
  20. package/esm/client/1_update_manager.js +88 -8
  21. package/esm/client/2_message_manager.d.ts +7 -6
  22. package/esm/client/2_message_manager.js +48 -31
  23. package/esm/client/4_client.d.ts +426 -428
  24. package/esm/client/4_client.js +570 -530
  25. package/esm/storage/0_storage.d.ts +5 -0
  26. package/esm/storage/0_storage.js +20 -0
  27. package/esm/storage/{1_storage_indexed_db.js → 2_storage_indexed_db.js} +1 -1
  28. package/esm/storage/{1_storage_local_storage.js → 2_storage_local_storage.js} +1 -1
  29. package/{script/storage/1_storage_memory.d.ts → esm/storage/2_storage_memory.d.ts} +1 -4
  30. package/esm/storage/{1_storage_memory.js → 2_storage_memory.js} +8 -28
  31. package/esm/storage/{1_storage_session_storage.js → 2_storage_session_storage.js} +1 -1
  32. package/esm/tl/2_types.d.ts +1071 -183
  33. package/esm/tl/2_types.js +2916 -464
  34. package/esm/tl/3_functions.d.ts +381 -17
  35. package/esm/tl/3_functions.js +1002 -120
  36. package/{script/tl/4_tl_writer.d.ts → esm/tl/5_tl_writer.d.ts} +1 -1
  37. package/{script/tl/4_rpc_result.d.ts → esm/tl/6_rpc_result.d.ts} +1 -1
  38. package/esm/tl/{4_rpc_result.js → 6_rpc_result.js} +1 -1
  39. package/esm/tl/{6_message.d.ts → 7_message.d.ts} +2 -2
  40. package/esm/tl/{6_message.js → 7_message.js} +3 -3
  41. package/esm/tl/{7_message_container.d.ts → 8_message_container.d.ts} +1 -1
  42. package/esm/tl/{7_message_container.js → 8_message_container.js} +3 -3
  43. package/esm/types/0_chat_photo.js +1 -1
  44. package/esm/types/0_message_entity.d.ts +1 -1
  45. package/esm/types/0_thumbnail.js +1 -1
  46. package/esm/types/1_bot_command_scope.d.ts +1 -1
  47. package/esm/types/1_photo.js +2 -2
  48. package/esm/types/1_story_privacy.d.ts +1 -1
  49. package/esm/types/2_business_connection.d.ts +11 -0
  50. package/esm/types/2_business_connection.js +12 -0
  51. package/esm/types/2_chat_member.d.ts +1 -1
  52. package/esm/types/2_chosen_inline_result.d.ts +1 -1
  53. package/esm/types/2_game.js +1 -1
  54. package/esm/types/2_inline_keyboard_button.d.ts +1 -1
  55. package/esm/types/2_inline_query.d.ts +1 -1
  56. package/esm/types/2_invite_link.d.ts +1 -1
  57. package/esm/types/2_message_reaction_count.d.ts +1 -1
  58. package/esm/types/2_message_reactions.d.ts +1 -1
  59. package/esm/types/2_story_content.js +1 -1
  60. package/esm/types/{1_story_interactive_area.d.ts → 2_story_interactive_area.d.ts} +2 -2
  61. package/esm/types/{1_story_interactive_area.js → 2_story_interactive_area.js} +1 -1
  62. package/esm/types/3_chat_member_updated.d.ts +1 -1
  63. package/esm/types/3_reply_markup.d.ts +1 -1
  64. package/esm/types/3_story.d.ts +2 -2
  65. package/esm/types/3_story.js +1 -1
  66. package/esm/types/4_inline_query_result.d.ts +1 -1
  67. package/esm/types/4_inline_query_result.js +1 -1
  68. package/esm/types/4_message.d.ts +9 -3
  69. package/esm/types/4_message.js +22 -5
  70. package/esm/types/5_callback_query.d.ts +1 -1
  71. package/esm/types/5_chat.d.ts +1 -1
  72. package/esm/types/6_update.d.ts +12 -2
  73. package/package.json +1 -1
  74. package/script/1_utilities.d.ts +1 -1
  75. package/script/1_utilities.js +1 -1
  76. package/script/2_tl.d.ts +6 -6
  77. package/script/2_tl.js +6 -6
  78. package/script/3_storage.d.ts +5 -5
  79. package/script/3_storage.js +5 -5
  80. package/script/3_types.d.ts +6 -5
  81. package/script/3_types.js +6 -5
  82. package/script/4_constants.d.ts +2 -2
  83. package/script/4_constants.js +2 -2
  84. package/script/5_client.d.ts +1 -1
  85. package/script/5_client.js +1 -1
  86. package/script/client/0_params.d.ts +7 -1
  87. package/script/client/0_types.d.ts +1 -0
  88. package/script/client/0_utilities.d.ts +0 -3
  89. package/script/client/0_utilities.js +1 -23
  90. package/script/client/1_business_connection_manager.d.ts +11 -0
  91. package/script/client/1_business_connection_manager.js +51 -0
  92. package/script/client/1_update_manager.d.ts +8 -1
  93. package/script/client/1_update_manager.js +88 -8
  94. package/script/client/2_message_manager.d.ts +7 -6
  95. package/script/client/2_message_manager.js +47 -30
  96. package/script/client/4_client.d.ts +426 -428
  97. package/script/client/4_client.js +570 -530
  98. package/script/storage/0_storage.d.ts +5 -0
  99. package/script/storage/0_storage.js +20 -0
  100. package/script/storage/{1_storage_indexed_db.js → 2_storage_indexed_db.js} +7 -7
  101. package/script/storage/{1_storage_local_storage.js → 2_storage_local_storage.js} +10 -10
  102. package/{esm/storage/1_storage_memory.d.ts → script/storage/2_storage_memory.d.ts} +1 -4
  103. package/script/storage/{1_storage_memory.js → 2_storage_memory.js} +12 -32
  104. package/script/storage/{1_storage_session_storage.js → 2_storage_session_storage.js} +10 -10
  105. package/script/tl/2_types.d.ts +1071 -183
  106. package/script/tl/2_types.js +3028 -504
  107. package/script/tl/3_functions.d.ts +381 -17
  108. package/script/tl/3_functions.js +1047 -143
  109. package/{esm/tl/4_tl_writer.d.ts → script/tl/5_tl_writer.d.ts} +1 -1
  110. package/{esm/tl/4_rpc_result.d.ts → script/tl/6_rpc_result.d.ts} +1 -1
  111. package/script/tl/{4_rpc_result.js → 6_rpc_result.js} +2 -2
  112. package/script/tl/{6_message.d.ts → 7_message.d.ts} +2 -2
  113. package/script/tl/{6_message.js → 7_message.js} +8 -8
  114. package/script/tl/{7_message_container.d.ts → 8_message_container.d.ts} +1 -1
  115. package/script/tl/{7_message_container.js → 8_message_container.js} +7 -7
  116. package/script/types/0_chat_photo.js +9 -9
  117. package/script/types/0_message_entity.d.ts +1 -1
  118. package/script/types/0_thumbnail.js +6 -6
  119. package/script/types/1_bot_command_scope.d.ts +1 -1
  120. package/script/types/1_photo.js +7 -7
  121. package/script/types/1_story_privacy.d.ts +1 -1
  122. package/script/types/2_business_connection.d.ts +11 -0
  123. package/script/types/2_business_connection.js +16 -0
  124. package/script/types/2_chat_member.d.ts +1 -1
  125. package/script/types/2_chosen_inline_result.d.ts +1 -1
  126. package/script/types/2_game.js +3 -3
  127. package/script/types/2_inline_keyboard_button.d.ts +1 -1
  128. package/script/types/2_inline_query.d.ts +1 -1
  129. package/script/types/2_invite_link.d.ts +1 -1
  130. package/script/types/2_message_reaction_count.d.ts +1 -1
  131. package/script/types/2_message_reactions.d.ts +1 -1
  132. package/script/types/2_story_content.js +4 -4
  133. package/script/types/{1_story_interactive_area.d.ts → 2_story_interactive_area.d.ts} +2 -2
  134. package/script/types/{1_story_interactive_area.js → 2_story_interactive_area.js} +2 -2
  135. package/script/types/3_chat_member_updated.d.ts +1 -1
  136. package/script/types/3_reply_markup.d.ts +1 -1
  137. package/script/types/3_story.d.ts +2 -2
  138. package/script/types/3_story.js +2 -2
  139. package/script/types/4_inline_query_result.d.ts +1 -1
  140. package/script/types/4_inline_query_result.js +2 -2
  141. package/script/types/4_message.d.ts +9 -3
  142. package/script/types/4_message.js +37 -20
  143. package/script/types/5_callback_query.d.ts +1 -1
  144. package/script/types/5_chat.d.ts +1 -1
  145. package/script/types/6_update.d.ts +12 -2
  146. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.d.ts +0 -83
  147. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.js +0 -203
  148. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.d.ts +0 -50
  149. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.js +0 -274
  150. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.d.ts +0 -47
  151. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.js +0 -51
  152. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.d.ts +0 -66
  153. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.js +0 -191
  154. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Node.d.ts +0 -168
  155. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Node.js +0 -385
  156. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Parser.d.ts +0 -159
  157. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Parser.js +0 -431
  158. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.d.ts +0 -181
  159. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.js +0 -1046
  160. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/mod.d.ts +0 -42
  161. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/mod.js +0 -52
  162. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.d.ts +0 -11
  163. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.js +0 -122
  164. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.d.ts +0 -1
  165. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.js +0 -24
  166. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.d.ts +0 -46
  167. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.js +0 -121
  168. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.d.ts +0 -31
  169. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.js +0 -30
  170. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.d.ts +0 -2128
  171. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.js +0 -2127
  172. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.d.ts +0 -109
  173. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.js +0 -108
  174. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.d.ts +0 -8
  175. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.js +0 -1
  176. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.d.ts +0 -90
  177. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.js +0 -95
  178. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.d.ts +0 -50
  179. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.js +0 -128
  180. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.d.ts +0 -46
  181. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.js +0 -110
  182. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.d.ts +0 -42
  183. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.js +0 -120
  184. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.d.ts +0 -6
  185. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.js +0 -6
  186. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.d.ts +0 -54
  187. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.js +0 -110
  188. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.d.ts +0 -40
  189. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.js +0 -75
  190. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.d.ts +0 -58
  191. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.js +0 -101
  192. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.d.ts +0 -83
  193. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.js +0 -207
  194. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.d.ts +0 -50
  195. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.js +0 -301
  196. package/script/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.d.ts +0 -47
  197. package/script/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.js +0 -55
  198. package/script/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.d.ts +0 -66
  199. package/script/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.js +0 -222
  200. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Node.d.ts +0 -168
  201. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Node.js +0 -404
  202. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Parser.d.ts +0 -159
  203. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Parser.js +0 -438
  204. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.d.ts +0 -181
  205. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.js +0 -1052
  206. package/script/deps/deno.land/x/html_parser@v0.1.3/src/mod.d.ts +0 -42
  207. package/script/deps/deno.land/x/html_parser@v0.1.3/src/mod.js +0 -88
  208. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.d.ts +0 -11
  209. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.js +0 -128
  210. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.d.ts +0 -1
  211. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.js +0 -30
  212. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.d.ts +0 -46
  213. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.js +0 -129
  214. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.d.ts +0 -31
  215. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.js +0 -32
  216. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.d.ts +0 -2128
  217. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.js +0 -2129
  218. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.d.ts +0 -109
  219. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.js +0 -110
  220. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.d.ts +0 -8
  221. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.js +0 -3
  222. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.d.ts +0 -90
  223. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.js +0 -114
  224. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.d.ts +0 -50
  225. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.js +0 -134
  226. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.d.ts +0 -46
  227. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.js +0 -118
  228. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.d.ts +0 -42
  229. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.js +0 -129
  230. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.d.ts +0 -6
  231. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.js +0 -22
  232. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.d.ts +0 -54
  233. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.js +0 -119
  234. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.d.ts +0 -40
  235. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.js +0 -86
  236. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.d.ts +0 -58
  237. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.js +0 -112
  238. /package/esm/storage/{0_utilities.d.ts → 1_utilities.d.ts} +0 -0
  239. /package/esm/storage/{0_utilities.js → 1_utilities.js} +0 -0
  240. /package/esm/storage/{1_storage_indexed_db.d.ts → 2_storage_indexed_db.d.ts} +0 -0
  241. /package/esm/storage/{1_storage_local_storage.d.ts → 2_storage_local_storage.d.ts} +0 -0
  242. /package/esm/storage/{1_storage_session_storage.d.ts → 2_storage_session_storage.d.ts} +0 -0
  243. /package/esm/tl/{3_tl_reader.d.ts → 4_tl_reader.d.ts} +0 -0
  244. /package/esm/tl/{3_tl_reader.js → 4_tl_reader.js} +0 -0
  245. /package/esm/tl/{4_tl_writer.js → 5_tl_writer.js} +0 -0
  246. /package/esm/types/{0_venue.d.ts → 1_venue.d.ts} +0 -0
  247. /package/esm/types/{0_venue.js → 1_venue.js} +0 -0
  248. /package/esm/types/{0__file_id.d.ts → _file_id.d.ts} +0 -0
  249. /package/esm/types/{0__file_id.js → _file_id.js} +0 -0
  250. /package/esm/types/{1__getters.d.ts → _getters.d.ts} +0 -0
  251. /package/esm/types/{1__getters.js → _getters.js} +0 -0
  252. /package/script/storage/{0_utilities.d.ts → 1_utilities.d.ts} +0 -0
  253. /package/script/storage/{0_utilities.js → 1_utilities.js} +0 -0
  254. /package/script/storage/{1_storage_indexed_db.d.ts → 2_storage_indexed_db.d.ts} +0 -0
  255. /package/script/storage/{1_storage_local_storage.d.ts → 2_storage_local_storage.d.ts} +0 -0
  256. /package/script/storage/{1_storage_session_storage.d.ts → 2_storage_session_storage.d.ts} +0 -0
  257. /package/script/tl/{3_tl_reader.d.ts → 4_tl_reader.d.ts} +0 -0
  258. /package/script/tl/{3_tl_reader.js → 4_tl_reader.js} +0 -0
  259. /package/script/tl/{4_tl_writer.js → 5_tl_writer.js} +0 -0
  260. /package/script/types/{0_venue.d.ts → 1_venue.d.ts} +0 -0
  261. /package/script/types/{0_venue.js → 1_venue.js} +0 -0
  262. /package/script/types/{0__file_id.d.ts → _file_id.d.ts} +0 -0
  263. /package/script/types/{0__file_id.js → _file_id.js} +0 -0
  264. /package/script/types/{1__getters.d.ts → _getters.d.ts} +0 -0
  265. /package/script/types/{1__getters.js → _getters.js} +0 -0
@@ -1,109 +0,0 @@
1
- declare const _default: {
2
- Aacute: string;
3
- aacute: string;
4
- Acirc: string;
5
- acirc: string;
6
- acute: string;
7
- AElig: string;
8
- aelig: string;
9
- Agrave: string;
10
- agrave: string;
11
- amp: string;
12
- AMP: string;
13
- Aring: string;
14
- aring: string;
15
- Atilde: string;
16
- atilde: string;
17
- Auml: string;
18
- auml: string;
19
- brvbar: string;
20
- Ccedil: string;
21
- ccedil: string;
22
- cedil: string;
23
- cent: string;
24
- copy: string;
25
- COPY: string;
26
- curren: string;
27
- deg: string;
28
- divide: string;
29
- Eacute: string;
30
- eacute: string;
31
- Ecirc: string;
32
- ecirc: string;
33
- Egrave: string;
34
- egrave: string;
35
- ETH: string;
36
- eth: string;
37
- Euml: string;
38
- euml: string;
39
- frac12: string;
40
- frac14: string;
41
- frac34: string;
42
- gt: string;
43
- GT: string;
44
- Iacute: string;
45
- iacute: string;
46
- Icirc: string;
47
- icirc: string;
48
- iexcl: string;
49
- Igrave: string;
50
- igrave: string;
51
- iquest: string;
52
- Iuml: string;
53
- iuml: string;
54
- laquo: string;
55
- lt: string;
56
- LT: string;
57
- macr: string;
58
- micro: string;
59
- middot: string;
60
- nbsp: string;
61
- not: string;
62
- Ntilde: string;
63
- ntilde: string;
64
- Oacute: string;
65
- oacute: string;
66
- Ocirc: string;
67
- ocirc: string;
68
- Ograve: string;
69
- ograve: string;
70
- ordf: string;
71
- ordm: string;
72
- Oslash: string;
73
- oslash: string;
74
- Otilde: string;
75
- otilde: string;
76
- Ouml: string;
77
- ouml: string;
78
- para: string;
79
- plusmn: string;
80
- pound: string;
81
- quot: string;
82
- QUOT: string;
83
- raquo: string;
84
- reg: string;
85
- REG: string;
86
- sect: string;
87
- shy: string;
88
- sup1: string;
89
- sup2: string;
90
- sup3: string;
91
- szlig: string;
92
- THORN: string;
93
- thorn: string;
94
- times: string;
95
- Uacute: string;
96
- uacute: string;
97
- Ucirc: string;
98
- ucirc: string;
99
- Ugrave: string;
100
- ugrave: string;
101
- uml: string;
102
- Uuml: string;
103
- uuml: string;
104
- Yacute: string;
105
- yacute: string;
106
- yen: string;
107
- yuml: string;
108
- };
109
- export default _default;
@@ -1,110 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- Aacute: 'Á',
5
- aacute: 'á',
6
- Acirc: 'Â',
7
- acirc: 'â',
8
- acute: '´',
9
- AElig: 'Æ',
10
- aelig: 'æ',
11
- Agrave: 'À',
12
- agrave: 'à',
13
- amp: '&',
14
- AMP: '&',
15
- Aring: 'Å',
16
- aring: 'å',
17
- Atilde: 'Ã',
18
- atilde: 'ã',
19
- Auml: 'Ä',
20
- auml: 'ä',
21
- brvbar: '¦',
22
- Ccedil: 'Ç',
23
- ccedil: 'ç',
24
- cedil: '¸',
25
- cent: '¢',
26
- copy: '©',
27
- COPY: '©',
28
- curren: '¤',
29
- deg: '°',
30
- divide: '÷',
31
- Eacute: 'É',
32
- eacute: 'é',
33
- Ecirc: 'Ê',
34
- ecirc: 'ê',
35
- Egrave: 'È',
36
- egrave: 'è',
37
- ETH: 'Ð',
38
- eth: 'ð',
39
- Euml: 'Ë',
40
- euml: 'ë',
41
- frac12: '½',
42
- frac14: '¼',
43
- frac34: '¾',
44
- gt: '>',
45
- GT: '>',
46
- Iacute: 'Í',
47
- iacute: 'í',
48
- Icirc: 'Î',
49
- icirc: 'î',
50
- iexcl: '¡',
51
- Igrave: 'Ì',
52
- igrave: 'ì',
53
- iquest: '¿',
54
- Iuml: 'Ï',
55
- iuml: 'ï',
56
- laquo: '«',
57
- lt: '<',
58
- LT: '<',
59
- macr: '¯',
60
- micro: 'µ',
61
- middot: '·',
62
- nbsp: ' ',
63
- not: '¬',
64
- Ntilde: 'Ñ',
65
- ntilde: 'ñ',
66
- Oacute: 'Ó',
67
- oacute: 'ó',
68
- Ocirc: 'Ô',
69
- ocirc: 'ô',
70
- Ograve: 'Ò',
71
- ograve: 'ò',
72
- ordf: 'ª',
73
- ordm: 'º',
74
- Oslash: 'Ø',
75
- oslash: 'ø',
76
- Otilde: 'Õ',
77
- otilde: 'õ',
78
- Ouml: 'Ö',
79
- ouml: 'ö',
80
- para: '¶',
81
- plusmn: '±',
82
- pound: '£',
83
- quot: '"',
84
- QUOT: '"',
85
- raquo: '»',
86
- reg: '®',
87
- REG: '®',
88
- sect: '§',
89
- shy: '­',
90
- sup1: '¹',
91
- sup2: '²',
92
- sup3: '³',
93
- szlig: 'ß',
94
- THORN: 'Þ',
95
- thorn: 'þ',
96
- times: '×',
97
- Uacute: 'Ú',
98
- uacute: 'ú',
99
- Ucirc: 'Û',
100
- ucirc: 'û',
101
- Ugrave: 'Ù',
102
- ugrave: 'ù',
103
- uml: '¨',
104
- Uuml: 'Ü',
105
- uuml: 'ü',
106
- Yacute: 'Ý',
107
- yacute: 'ý',
108
- yen: '¥',
109
- yuml: 'ÿ',
110
- };
@@ -1,8 +0,0 @@
1
- declare const _default: {
2
- amp: string;
3
- apos: string;
4
- gt: string;
5
- lt: string;
6
- quot: string;
7
- };
8
- export default _default;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = { amp: '&', apos: "'", gt: '>', lt: '<', quot: '"' };
@@ -1,90 +0,0 @@
1
- /** The level of entities to support. */
2
- export declare enum EntityLevel {
3
- /** Support only XML entities. */
4
- XML = 0,
5
- /** Support HTML entities, which are a superset of XML entities. */
6
- HTML = 1
7
- }
8
- /** Determines whether some entities are allowed to be written without a trailing `;`. */
9
- export declare enum DecodingMode {
10
- /** Support legacy HTML entities. */
11
- Legacy = 0,
12
- /** Do not support legacy HTML entities. */
13
- Strict = 1
14
- }
15
- export declare enum EncodingMode {
16
- /**
17
- * The output is UTF-8 encoded. Only characters that need escaping within
18
- * HTML will be escaped.
19
- */
20
- UTF8 = 0,
21
- /**
22
- * The output consists only of ASCII characters. Characters that need
23
- * escaping within HTML, and characters that aren't ASCII characters will
24
- * be escaped.
25
- */
26
- ASCII = 1,
27
- /**
28
- * Encode all characters that have an equivalent entity, as well as all
29
- * characters that are not ASCII characters.
30
- */
31
- Extensive = 2
32
- }
33
- interface DecodingOptions {
34
- /**
35
- * The level of entities to support.
36
- * @default EntityLevel.XML
37
- */
38
- level?: EntityLevel;
39
- /**
40
- * Decoding mode. If `Legacy`, will support legacy entities not terminated
41
- * with a semicolon (`;`).
42
- *
43
- * Always `Strict` for XML. For HTML, set this to `true` if you are parsing
44
- * an attribute value.
45
- *
46
- * The deprecated `decodeStrict` function defaults this to `Strict`.
47
- *
48
- * @default DecodingMode.Legacy
49
- */
50
- mode?: DecodingMode;
51
- }
52
- /**
53
- * Decodes a string with entities.
54
- *
55
- * @param data String to decode.
56
- * @param options Decoding options.
57
- */
58
- export declare function decode(data: string, options?: DecodingOptions | EntityLevel): string;
59
- /**
60
- * Decodes a string with entities. Does not allow missing trailing semicolons for entities.
61
- *
62
- * @param data String to decode.
63
- * @param options Decoding options.
64
- * @deprecated Use `decode` with the `mode` set to `Strict`.
65
- */
66
- export declare function decodeStrict(data: string, options?: DecodingOptions | EntityLevel): string;
67
- /**
68
- * Options for `encode`.
69
- */
70
- export interface EncodingOptions {
71
- /**
72
- * The level of entities to support.
73
- * @default EntityLevel.XML
74
- */
75
- level?: EntityLevel;
76
- /**
77
- * Output format.
78
- * @default EncodingMode.Extensive
79
- */
80
- mode?: EncodingMode;
81
- }
82
- /**
83
- * Encodes a string with entities.
84
- *
85
- * @param data String to encode.
86
- * @param options Encoding options.
87
- */
88
- export declare function encode(data: string, options?: EncodingOptions | EntityLevel): string;
89
- export { encodeXML, encodeHTML, encodeNonAsciiHTML, escape, escapeUTF8, encodeHTML as encodeHTML4, encodeHTML as encodeHTML5, } from './encode.js';
90
- export { decodeXML, decodeHTML, decodeHTMLStrict, decodeHTML as decodeHTML4, decodeHTML as decodeHTML5, decodeHTMLStrict as decodeHTML4Strict, decodeHTMLStrict as decodeHTML5Strict, decodeXML as decodeXMLStrict, } from './decode.js';
@@ -1,114 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.decodeXMLStrict = exports.decodeHTML5Strict = exports.decodeHTML4Strict = exports.decodeHTML5 = exports.decodeHTML4 = exports.decodeHTMLStrict = exports.decodeHTML = exports.decodeXML = exports.encodeHTML5 = exports.encodeHTML4 = exports.escapeUTF8 = exports.escape = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.encodeXML = exports.encode = exports.decodeStrict = exports.decode = exports.EncodingMode = exports.DecodingMode = exports.EntityLevel = void 0;
4
- const decode_js_1 = require("./decode.js");
5
- const encode_js_1 = require("./encode.js");
6
- /** The level of entities to support. */
7
- var EntityLevel;
8
- (function (EntityLevel) {
9
- /** Support only XML entities. */
10
- EntityLevel[EntityLevel["XML"] = 0] = "XML";
11
- /** Support HTML entities, which are a superset of XML entities. */
12
- EntityLevel[EntityLevel["HTML"] = 1] = "HTML";
13
- })(EntityLevel || (exports.EntityLevel = EntityLevel = {}));
14
- /** Determines whether some entities are allowed to be written without a trailing `;`. */
15
- var DecodingMode;
16
- (function (DecodingMode) {
17
- /** Support legacy HTML entities. */
18
- DecodingMode[DecodingMode["Legacy"] = 0] = "Legacy";
19
- /** Do not support legacy HTML entities. */
20
- DecodingMode[DecodingMode["Strict"] = 1] = "Strict";
21
- })(DecodingMode || (exports.DecodingMode = DecodingMode = {}));
22
- var EncodingMode;
23
- (function (EncodingMode) {
24
- /**
25
- * The output is UTF-8 encoded. Only characters that need escaping within
26
- * HTML will be escaped.
27
- */
28
- EncodingMode[EncodingMode["UTF8"] = 0] = "UTF8";
29
- /**
30
- * The output consists only of ASCII characters. Characters that need
31
- * escaping within HTML, and characters that aren't ASCII characters will
32
- * be escaped.
33
- */
34
- EncodingMode[EncodingMode["ASCII"] = 1] = "ASCII";
35
- /**
36
- * Encode all characters that have an equivalent entity, as well as all
37
- * characters that are not ASCII characters.
38
- */
39
- EncodingMode[EncodingMode["Extensive"] = 2] = "Extensive";
40
- })(EncodingMode || (exports.EncodingMode = EncodingMode = {}));
41
- /**
42
- * Decodes a string with entities.
43
- *
44
- * @param data String to decode.
45
- * @param options Decoding options.
46
- */
47
- function decode(data, options = EntityLevel.XML) {
48
- const opts = typeof options === 'number' ? { level: options } : options;
49
- if (opts.level === EntityLevel.HTML) {
50
- if (opts.mode === DecodingMode.Strict) {
51
- return (0, decode_js_1.decodeHTMLStrict)(data);
52
- }
53
- return (0, decode_js_1.decodeHTML)(data);
54
- }
55
- return (0, decode_js_1.decodeXML)(data);
56
- }
57
- exports.decode = decode;
58
- /**
59
- * Decodes a string with entities. Does not allow missing trailing semicolons for entities.
60
- *
61
- * @param data String to decode.
62
- * @param options Decoding options.
63
- * @deprecated Use `decode` with the `mode` set to `Strict`.
64
- */
65
- function decodeStrict(data, options = EntityLevel.XML) {
66
- const opts = typeof options === 'number' ? { level: options } : options;
67
- if (opts.level === EntityLevel.HTML) {
68
- if (opts.mode === DecodingMode.Legacy) {
69
- return (0, decode_js_1.decodeHTML)(data);
70
- }
71
- return (0, decode_js_1.decodeHTMLStrict)(data);
72
- }
73
- return (0, decode_js_1.decodeXML)(data);
74
- }
75
- exports.decodeStrict = decodeStrict;
76
- /**
77
- * Encodes a string with entities.
78
- *
79
- * @param data String to encode.
80
- * @param options Encoding options.
81
- */
82
- function encode(data, options = EntityLevel.XML) {
83
- const opts = typeof options === 'number' ? { level: options } : options;
84
- if (opts.level === EntityLevel.HTML) {
85
- if (opts.mode === EncodingMode.ASCII) {
86
- return (0, encode_js_1.encodeNonAsciiHTML)(data);
87
- }
88
- // TODO Support opts.mode === 'UTF8'
89
- return (0, encode_js_1.encodeHTML)(data);
90
- }
91
- // TODO Support opts.mode === 'UTF8'
92
- // ASCII and Extensive are equivalent
93
- return (0, encode_js_1.encodeXML)(data);
94
- }
95
- exports.encode = encode;
96
- var encode_js_2 = require("./encode.js");
97
- Object.defineProperty(exports, "encodeXML", { enumerable: true, get: function () { return encode_js_2.encodeXML; } });
98
- Object.defineProperty(exports, "encodeHTML", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });
99
- Object.defineProperty(exports, "encodeNonAsciiHTML", { enumerable: true, get: function () { return encode_js_2.encodeNonAsciiHTML; } });
100
- Object.defineProperty(exports, "escape", { enumerable: true, get: function () { return encode_js_2.escape; } });
101
- Object.defineProperty(exports, "escapeUTF8", { enumerable: true, get: function () { return encode_js_2.escapeUTF8; } });
102
- // Legacy aliases (deprecated)
103
- Object.defineProperty(exports, "encodeHTML4", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });
104
- Object.defineProperty(exports, "encodeHTML5", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });
105
- var decode_js_2 = require("./decode.js");
106
- Object.defineProperty(exports, "decodeXML", { enumerable: true, get: function () { return decode_js_2.decodeXML; } });
107
- Object.defineProperty(exports, "decodeHTML", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });
108
- Object.defineProperty(exports, "decodeHTMLStrict", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });
109
- // Legacy aliases (deprecated)
110
- Object.defineProperty(exports, "decodeHTML4", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });
111
- Object.defineProperty(exports, "decodeHTML5", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });
112
- Object.defineProperty(exports, "decodeHTML4Strict", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });
113
- Object.defineProperty(exports, "decodeHTML5Strict", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });
114
- Object.defineProperty(exports, "decodeXMLStrict", { enumerable: true, get: function () { return decode_js_2.decodeXML; } });
@@ -1,50 +0,0 @@
1
- import { Node } from '../Node.js';
2
- /**
3
- * Given an array of nodes, remove any member that is contained by another.
4
- *
5
- * @param nodes Nodes to filter.
6
- * @returns Remaining nodes that aren't subtrees of each other.
7
- */
8
- export declare function removeSubsets(nodes: Node[]): Node[];
9
- export declare const enum DocumentPosition {
10
- DISCONNECTED = 1,
11
- PRECEDING = 2,
12
- FOLLOWING = 4,
13
- CONTAINS = 8,
14
- CONTAINED_BY = 16
15
- }
16
- /**
17
- * Compare the position of one node against another node in any other document.
18
- * The return value is a bitmask with the following values:
19
- *
20
- * Document order:
21
- * > There is an ordering, document order, defined on all the nodes in the
22
- * > document corresponding to the order in which the first character of the
23
- * > XML representation of each node occurs in the XML representation of the
24
- * > document after expansion of general entities. Thus, the document element
25
- * > node will be the first node. Element nodes occur before their children.
26
- * > Thus, document order orders element nodes in order of the occurrence of
27
- * > their start-tag in the XML (after expansion of entities). The attribute
28
- * > nodes of an element occur after the element and before its children. The
29
- * > relative order of attribute nodes is implementation-dependent./
30
- *
31
- * Source:
32
- * http://www.w3.org/TR/DOM-Level-3-Core/glossary.html#dt-document-order
33
- *
34
- * @param nodeA The first node to use in the comparison
35
- * @param nodeB The second node to use in the comparison
36
- * @returns A bitmask describing the input nodes' relative position.
37
- *
38
- * See http://dom.spec.whatwg.org/#dom-node-comparedocumentposition for
39
- * a description of these values.
40
- */
41
- export declare function compareDocumentPosition(nodeA: Node, nodeB: Node): number;
42
- /**
43
- * Sort an array of nodes based on their relative position in the document and
44
- * remove any duplicate nodes. If the array contains nodes that do not belong
45
- * to the same document, sort order is unspecified.
46
- *
47
- * @param nodes Array of DOM nodes.
48
- * @returns Collection of unique nodes, sorted in document order.
49
- */
50
- export declare function uniqueSort<T extends Node>(nodes: T[]): T[];
@@ -1,134 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.uniqueSort = exports.compareDocumentPosition = exports.DocumentPosition = exports.removeSubsets = void 0;
4
- const Node_js_1 = require("../Node.js");
5
- /**
6
- * Given an array of nodes, remove any member that is contained by another.
7
- *
8
- * @param nodes Nodes to filter.
9
- * @returns Remaining nodes that aren't subtrees of each other.
10
- */
11
- function removeSubsets(nodes) {
12
- let idx = nodes.length;
13
- /*
14
- * Check if each node (or one of its ancestors) is already contained in the
15
- * array.
16
- */
17
- while (--idx >= 0) {
18
- const node = nodes[idx];
19
- /*
20
- * Remove the node if it is not unique.
21
- * We are going through the array from the end, so we only
22
- * have to check nodes that preceed the node under consideration in the array.
23
- */
24
- if (idx > 0 && nodes.lastIndexOf(node, idx - 1) >= 0) {
25
- nodes.splice(idx, 1);
26
- continue;
27
- }
28
- for (let ancestor = node.parent; ancestor; ancestor = ancestor.parent) {
29
- if (nodes.includes(ancestor)) {
30
- nodes.splice(idx, 1);
31
- break;
32
- }
33
- }
34
- }
35
- return nodes;
36
- }
37
- exports.removeSubsets = removeSubsets;
38
- // Source: http://dom.spec.whatwg.org/#dom-node-comparedocumentposition
39
- var DocumentPosition;
40
- (function (DocumentPosition) {
41
- DocumentPosition[DocumentPosition["DISCONNECTED"] = 1] = "DISCONNECTED";
42
- DocumentPosition[DocumentPosition["PRECEDING"] = 2] = "PRECEDING";
43
- DocumentPosition[DocumentPosition["FOLLOWING"] = 4] = "FOLLOWING";
44
- DocumentPosition[DocumentPosition["CONTAINS"] = 8] = "CONTAINS";
45
- DocumentPosition[DocumentPosition["CONTAINED_BY"] = 16] = "CONTAINED_BY";
46
- })(DocumentPosition || (exports.DocumentPosition = DocumentPosition = {}));
47
- /**
48
- * Compare the position of one node against another node in any other document.
49
- * The return value is a bitmask with the following values:
50
- *
51
- * Document order:
52
- * > There is an ordering, document order, defined on all the nodes in the
53
- * > document corresponding to the order in which the first character of the
54
- * > XML representation of each node occurs in the XML representation of the
55
- * > document after expansion of general entities. Thus, the document element
56
- * > node will be the first node. Element nodes occur before their children.
57
- * > Thus, document order orders element nodes in order of the occurrence of
58
- * > their start-tag in the XML (after expansion of entities). The attribute
59
- * > nodes of an element occur after the element and before its children. The
60
- * > relative order of attribute nodes is implementation-dependent./
61
- *
62
- * Source:
63
- * http://www.w3.org/TR/DOM-Level-3-Core/glossary.html#dt-document-order
64
- *
65
- * @param nodeA The first node to use in the comparison
66
- * @param nodeB The second node to use in the comparison
67
- * @returns A bitmask describing the input nodes' relative position.
68
- *
69
- * See http://dom.spec.whatwg.org/#dom-node-comparedocumentposition for
70
- * a description of these values.
71
- */
72
- function compareDocumentPosition(nodeA, nodeB) {
73
- const aParents = [];
74
- const bParents = [];
75
- if (nodeA === nodeB) {
76
- return 0;
77
- }
78
- let current = (0, Node_js_1.hasChildren)(nodeA) ? nodeA : nodeA.parent;
79
- while (current) {
80
- aParents.unshift(current);
81
- current = current.parent;
82
- }
83
- current = (0, Node_js_1.hasChildren)(nodeB) ? nodeB : nodeB.parent;
84
- while (current) {
85
- bParents.unshift(current);
86
- current = current.parent;
87
- }
88
- const maxIdx = Math.min(aParents.length, bParents.length);
89
- let idx = 0;
90
- while (idx < maxIdx && aParents[idx] === bParents[idx]) {
91
- idx++;
92
- }
93
- if (idx === 0) {
94
- return DocumentPosition.DISCONNECTED;
95
- }
96
- const sharedParent = aParents[idx - 1];
97
- const siblings = sharedParent.children;
98
- const aSibling = aParents[idx];
99
- const bSibling = bParents[idx];
100
- if (siblings.indexOf(aSibling) > siblings.indexOf(bSibling)) {
101
- if (sharedParent === nodeB) {
102
- return DocumentPosition.FOLLOWING | DocumentPosition.CONTAINED_BY;
103
- }
104
- return DocumentPosition.FOLLOWING;
105
- }
106
- if (sharedParent === nodeA) {
107
- return DocumentPosition.PRECEDING | DocumentPosition.CONTAINS;
108
- }
109
- return DocumentPosition.PRECEDING;
110
- }
111
- exports.compareDocumentPosition = compareDocumentPosition;
112
- /**
113
- * Sort an array of nodes based on their relative position in the document and
114
- * remove any duplicate nodes. If the array contains nodes that do not belong
115
- * to the same document, sort order is unspecified.
116
- *
117
- * @param nodes Array of DOM nodes.
118
- * @returns Collection of unique nodes, sorted in document order.
119
- */
120
- function uniqueSort(nodes) {
121
- nodes = nodes.filter((node, i, arr) => !arr.includes(node, i + 1));
122
- nodes.sort((a, b) => {
123
- const relative = compareDocumentPosition(a, b);
124
- if (relative & DocumentPosition.PRECEDING) {
125
- return -1;
126
- }
127
- else if (relative & DocumentPosition.FOLLOWING) {
128
- return 1;
129
- }
130
- return 0;
131
- });
132
- return nodes;
133
- }
134
- exports.uniqueSort = uniqueSort;
@@ -1,46 +0,0 @@
1
- import { Node, Element } from '../Node.js';
2
- import { ElementType } from '../ElementType.js';
3
- interface TestElementOpts {
4
- tag_name?: string | ((name: string) => boolean);
5
- tag_type?: string | ((name: string) => boolean);
6
- tag_contains?: string | ((data?: string) => boolean);
7
- [attributeName: string]: undefined | string | ((attributeValue: string) => boolean);
8
- }
9
- /**
10
- * @param options An object describing nodes to look for.
11
- * @param node The element to test.
12
- * @returns Whether the element matches the description in `options`.
13
- */
14
- export declare function testElement(options: TestElementOpts, node: Node): boolean;
15
- /**
16
- * @param options An object describing nodes to look for.
17
- * @param nodes Nodes to search through.
18
- * @param recurse Also consider child nodes.
19
- * @param limit Maximum number of nodes to return.
20
- * @returns All nodes that match `options`.
21
- */
22
- export declare function getElements(options: TestElementOpts, nodes: Node | Node[], recurse: boolean, limit?: number): Node[];
23
- /**
24
- * @param id The unique ID attribute value to look for.
25
- * @param nodes Nodes to search through.
26
- * @param recurse Also consider child nodes.
27
- * @returns The node with the supplied ID.
28
- */
29
- export declare function getElementById(id: string | ((id: string) => boolean), nodes: Node | Node[], recurse?: boolean): Element | null;
30
- /**
31
- * @param tagName Tag name to search for.
32
- * @param nodes Nodes to search through.
33
- * @param recurse Also consider child nodes.
34
- * @param limit Maximum number of nodes to return.
35
- * @returns All nodes with the supplied `tagName`.
36
- */
37
- export declare function getElementsByTagName(tagName: string | ((name: string) => boolean), nodes: Node | Node[], recurse?: boolean, limit?: number): Element[];
38
- /**
39
- * @param type Element type to look for.
40
- * @param nodes Nodes to search through.
41
- * @param recurse Also consider child nodes.
42
- * @param limit Maximum number of nodes to return.
43
- * @returns All nodes with the supplied `type`.
44
- */
45
- export declare function getElementsByTagType(type: ElementType | ((type: ElementType) => boolean), nodes: Node | Node[], recurse?: boolean, limit?: number): Node[];
46
- export {};