@samchon/ts-patch 3.2.2-dev.20241204-2 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1377) hide show
  1. package/.editorconfig +371 -0
  2. package/.gitattributes +2 -0
  3. package/.github/FUNDING.yml +1 -0
  4. package/.github/workflows/build.yml +49 -0
  5. package/.github/workflows/publish.yml +47 -0
  6. package/.idea/codeStyles/Project.xml +28 -0
  7. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  8. package/.idea/compiler.xml +6 -0
  9. package/.idea/inspectionProfiles/Project_Default.xml +98 -0
  10. package/.idea/jsonSchemas.xml +28 -0
  11. package/.idea/misc.xml +9 -0
  12. package/.idea/modules.xml +8 -0
  13. package/.idea/ts-patch.iml +22 -0
  14. package/.idea/vcs.xml +12 -0
  15. package/.idea/webResources.xml +15 -0
  16. package/CHANGELOG.md +7 -0
  17. package/dist/CHANGELOG.md +275 -0
  18. package/dist/LICENSE.md +13 -0
  19. package/dist/README.md +348 -0
  20. package/dist/actions/check.js +53 -0
  21. package/dist/actions/check.js.map +1 -0
  22. package/dist/actions/patch.js +88 -0
  23. package/dist/actions/patch.js.map +1 -0
  24. package/dist/actions/unpatch.js +87 -0
  25. package/dist/actions/unpatch.js.map +1 -0
  26. package/dist/bin/ts-patch.js +43 -0
  27. package/dist/bin/ts-patch.js.map +1 -0
  28. package/dist/cli/cli.js +106 -0
  29. package/dist/cli/cli.js.map +1 -0
  30. package/dist/cli/commands.js +49 -0
  31. package/dist/cli/commands.js.map +1 -0
  32. package/dist/config.js +50 -0
  33. package/dist/config.js.map +1 -0
  34. package/dist/module/module-file.d.ts +10 -0
  35. package/dist/module/module-file.js +102 -0
  36. package/dist/module/module-file.js.map +1 -0
  37. package/dist/module/ts-module.d.ts +40 -0
  38. package/dist/module/ts-module.js +131 -0
  39. package/dist/module/ts-module.js.map +1 -0
  40. package/dist/node_modules/.bin/resolve +15 -0
  41. package/dist/node_modules/.bin/resolve.cmd +7 -0
  42. package/dist/node_modules/.bin/semver +15 -0
  43. package/dist/node_modules/.bin/semver.cmd +7 -0
  44. package/dist/package.json +106 -0
  45. package/dist/patch/get-patched-source.js +69 -0
  46. package/dist/patch/get-patched-source.js.map +1 -0
  47. package/dist/patch/transformers/fix-ts-early-return.js +61 -0
  48. package/dist/patch/transformers/fix-ts-early-return.js.map +1 -0
  49. package/dist/resources/module-patch.js +623 -0
  50. package/dist/system/cache.js +79 -0
  51. package/dist/system/cache.js.map +1 -0
  52. package/dist/utils/file-utils.js +98 -0
  53. package/dist/utils/file-utils.js.map +1 -0
  54. package/jest.config.ts +26 -0
  55. package/package.json +60 -11
  56. package/projects/core/plugin.ts +42 -0
  57. package/projects/core/resolver-hook.js +55 -0
  58. package/projects/core/shared/plugin-types.ts +159 -0
  59. package/projects/core/src/actions/check.ts +79 -0
  60. package/projects/core/src/actions/index.ts +5 -0
  61. package/projects/core/src/actions/install.ts +23 -0
  62. package/projects/core/src/actions/patch.ts +110 -0
  63. package/projects/core/src/actions/uninstall.ts +24 -0
  64. package/projects/core/src/actions/unpatch.ts +109 -0
  65. package/projects/core/src/bin/ts-patch.ts +7 -0
  66. package/projects/core/src/bin/tspc.ts +12 -0
  67. package/projects/core/src/cli/cli.ts +94 -0
  68. package/projects/core/src/cli/commands.ts +55 -0
  69. package/projects/core/src/cli/help-menu.ts +48 -0
  70. package/projects/core/src/cli/options.ts +83 -0
  71. package/projects/core/src/compiler/package.json +4 -0
  72. package/projects/core/src/compiler/tsc.js +19 -0
  73. package/projects/core/src/compiler/tsserver.js +19 -0
  74. package/projects/core/src/compiler/tsserverlibrary.js +19 -0
  75. package/projects/core/src/compiler/typescript.js +19 -0
  76. package/projects/core/src/config.ts +65 -0
  77. package/projects/core/src/index.ts +4 -0
  78. package/projects/core/src/module/get-live-module.ts +25 -0
  79. package/projects/core/src/module/index.ts +4 -0
  80. package/projects/core/src/module/module-file.ts +127 -0
  81. package/projects/core/src/module/module-source.ts +59 -0
  82. package/projects/core/src/module/source-section.ts +110 -0
  83. package/projects/core/src/module/ts-module.ts +187 -0
  84. package/projects/core/src/options.ts +55 -0
  85. package/projects/core/src/patch/get-patched-source.ts +85 -0
  86. package/projects/core/src/patch/patch-detail.ts +106 -0
  87. package/projects/core/src/patch/patch-module.ts +213 -0
  88. package/projects/core/src/patch/transformers/add-original-create-program.ts +129 -0
  89. package/projects/core/src/patch/transformers/fix-ts-early-return.ts +46 -0
  90. package/projects/core/src/patch/transformers/hook-tsc-exec.ts +52 -0
  91. package/projects/core/src/patch/transformers/index.ts +6 -0
  92. package/projects/core/src/patch/transformers/merge-statements.ts +61 -0
  93. package/projects/core/src/patch/transformers/patch-create-program.ts +68 -0
  94. package/projects/core/src/patch/transformers/patch-emitter.ts +75 -0
  95. package/projects/core/src/slice/module-slice.ts +59 -0
  96. package/projects/core/src/slice/ts54.ts +79 -0
  97. package/projects/core/src/slice/ts55.ts +80 -0
  98. package/projects/core/src/slice/ts552.ts +80 -0
  99. package/projects/core/src/system/cache.ts +48 -0
  100. package/projects/core/src/system/errors.ts +39 -0
  101. package/projects/core/src/system/index.ts +4 -0
  102. package/projects/core/src/system/logger.ts +53 -0
  103. package/projects/core/src/system/types.ts +11 -0
  104. package/projects/core/src/ts-package.ts +99 -0
  105. package/projects/core/src/utils/file-utils.ts +104 -0
  106. package/projects/core/src/utils/find-cache-dir.ts +122 -0
  107. package/projects/core/src/utils/general.ts +24 -0
  108. package/projects/core/src/utils/index.ts +3 -0
  109. package/projects/core/tsconfig.json +20 -0
  110. package/projects/patch/package.json +8 -0
  111. package/projects/patch/plugin.ts +128 -0
  112. package/projects/patch/src/plugin/esm-intercept.ts +141 -0
  113. package/projects/patch/src/plugin/plugin-creator.ts +254 -0
  114. package/projects/patch/src/plugin/plugin.ts +193 -0
  115. package/projects/patch/src/plugin/register-plugin.ts +141 -0
  116. package/projects/patch/src/shared.ts +59 -0
  117. package/projects/patch/src/ts/create-program.ts +156 -0
  118. package/projects/patch/src/ts/shim.ts +43 -0
  119. package/projects/patch/src/types/plugin-types.ts +51 -0
  120. package/projects/patch/src/types/typescript.ts +11 -0
  121. package/projects/patch/tsconfig.json +34 -0
  122. package/scripts/postbuild.js +66 -0
  123. package/test/.yarnrc +1 -0
  124. package/test/assets/projects/main/package.json +5 -0
  125. package/test/assets/projects/main/src/index.ts +0 -0
  126. package/test/assets/projects/main/tsconfig.json +16 -0
  127. package/test/assets/projects/package-config/plugin/package.json +8 -0
  128. package/test/assets/projects/package-config/plugin/plugin.js +9 -0
  129. package/test/assets/projects/package-config/plugin/transformers/transformer1.js +28 -0
  130. package/test/assets/projects/package-config/plugin/transformers/transformer2.js +22 -0
  131. package/test/assets/projects/package-config/run-transform.js +72 -0
  132. package/test/assets/projects/package-config/src/index.ts +6 -0
  133. package/test/assets/projects/package-config/tsconfig.json +13 -0
  134. package/test/assets/projects/path-mapping/base.ts +1 -0
  135. package/test/assets/projects/path-mapping/package.json +8 -0
  136. package/test/assets/projects/path-mapping/src/a/a.ts +1 -0
  137. package/test/assets/projects/path-mapping/src/b.ts +1 -0
  138. package/test/assets/projects/path-mapping/src/index.ts +29 -0
  139. package/test/assets/projects/path-mapping/tsconfig.json +18 -0
  140. package/test/assets/projects/path-mapping/tsconfig.plugin.json +15 -0
  141. package/test/assets/projects/transform/package.json +9 -0
  142. package/test/assets/projects/transform/run-transform.js +56 -0
  143. package/test/assets/projects/transform/src/index.ts +4 -0
  144. package/test/assets/projects/transform/transformers/cjs/js-plugin.cjs +19 -0
  145. package/test/assets/projects/transform/transformers/cjs/package.json +3 -0
  146. package/test/assets/projects/transform/transformers/cjs/plugin.cts +17 -0
  147. package/test/assets/projects/transform/transformers/cjs/tsconfig.json +7 -0
  148. package/test/assets/projects/transform/transformers/esm/js-plugin.mjs +17 -0
  149. package/test/assets/projects/transform/transformers/esm/package.json +3 -0
  150. package/test/assets/projects/transform/transformers/esm/plugin.mts +19 -0
  151. package/test/assets/projects/transform/transformers/esm/plugin.ts +19 -0
  152. package/test/assets/projects/transform/transformers/esm/tsconfig.json +7 -0
  153. package/test/assets/projects/transform/tsconfig.cjs.json +12 -0
  154. package/test/assets/projects/transform/tsconfig.cts.json +12 -0
  155. package/test/assets/projects/transform/tsconfig.json +9 -0
  156. package/test/assets/projects/transform/tsconfig.mjs.json +12 -0
  157. package/test/assets/projects/transform/tsconfig.mts.json +11 -0
  158. package/test/assets/projects/transform/tsconfig.ts.json +11 -0
  159. package/test/assets/projects/webpack/esm-plugin.mjs +5 -0
  160. package/test/assets/projects/webpack/esm-plugin.mts +5 -0
  161. package/test/assets/projects/webpack/hide-module.js +24 -0
  162. package/test/assets/projects/webpack/package.json +14 -0
  163. package/test/assets/projects/webpack/plugin.ts +7 -0
  164. package/test/assets/projects/webpack/src/index.ts +0 -0
  165. package/test/assets/projects/webpack/tsconfig.esm.json +8 -0
  166. package/test/assets/projects/webpack/tsconfig.esmts.json +8 -0
  167. package/test/assets/projects/webpack/tsconfig.json +14 -0
  168. package/test/assets/projects/webpack/webpack.config.js +24 -0
  169. package/test/node_modules/.bin/acorn +15 -0
  170. package/test/node_modules/.bin/acorn.cmd +7 -0
  171. package/test/node_modules/.bin/json5 +15 -0
  172. package/test/node_modules/.bin/json5.cmd +7 -0
  173. package/test/node_modules/.bin/node-which +15 -0
  174. package/test/node_modules/.bin/node-which.cmd +7 -0
  175. package/test/node_modules/.bin/resolve +15 -0
  176. package/test/node_modules/.bin/resolve.cmd +7 -0
  177. package/test/node_modules/.bin/semver +15 -0
  178. package/test/node_modules/.bin/semver.cmd +7 -0
  179. package/test/node_modules/.bin/ts-node +15 -0
  180. package/test/node_modules/.bin/ts-node-cwd +15 -0
  181. package/test/node_modules/.bin/ts-node-cwd.cmd +7 -0
  182. package/test/node_modules/.bin/ts-node-esm +15 -0
  183. package/test/node_modules/.bin/ts-node-esm.cmd +7 -0
  184. package/test/node_modules/.bin/ts-node-script +15 -0
  185. package/test/node_modules/.bin/ts-node-script.cmd +7 -0
  186. package/test/node_modules/.bin/ts-node-transpile-only +15 -0
  187. package/test/node_modules/.bin/ts-node-transpile-only.cmd +7 -0
  188. package/test/node_modules/.bin/ts-node.cmd +7 -0
  189. package/test/node_modules/.bin/ts-script +15 -0
  190. package/test/node_modules/.bin/ts-script.cmd +7 -0
  191. package/test/node_modules/.bin/tsc +15 -0
  192. package/test/node_modules/.bin/tsc.cmd +7 -0
  193. package/test/node_modules/.bin/tsserver +15 -0
  194. package/test/node_modules/.bin/tsserver.cmd +7 -0
  195. package/test/node_modules/.yarn-integrity +73 -0
  196. package/test/node_modules/@cspotcode/source-map-support/LICENSE.md +21 -0
  197. package/test/node_modules/@cspotcode/source-map-support/README.md +289 -0
  198. package/test/node_modules/@cspotcode/source-map-support/browser-source-map-support.js +114 -0
  199. package/test/node_modules/@cspotcode/source-map-support/package.json +50 -0
  200. package/test/node_modules/@cspotcode/source-map-support/register-hook-require.d.ts +7 -0
  201. package/test/node_modules/@cspotcode/source-map-support/register-hook-require.js +3 -0
  202. package/test/node_modules/@cspotcode/source-map-support/register.d.ts +7 -0
  203. package/test/node_modules/@cspotcode/source-map-support/register.js +1 -0
  204. package/test/node_modules/@cspotcode/source-map-support/source-map-support.d.ts +76 -0
  205. package/test/node_modules/@cspotcode/source-map-support/source-map-support.js +938 -0
  206. package/test/node_modules/@jridgewell/resolve-uri/LICENSE +19 -0
  207. package/test/node_modules/@jridgewell/resolve-uri/README.md +40 -0
  208. package/test/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs +232 -0
  209. package/test/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +1 -0
  210. package/test/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js +240 -0
  211. package/test/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +1 -0
  212. package/test/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +4 -0
  213. package/test/node_modules/@jridgewell/resolve-uri/package.json +69 -0
  214. package/test/node_modules/@jridgewell/sourcemap-codec/LICENSE +19 -0
  215. package/test/node_modules/@jridgewell/sourcemap-codec/README.md +264 -0
  216. package/test/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +423 -0
  217. package/test/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +6 -0
  218. package/test/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +464 -0
  219. package/test/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +6 -0
  220. package/test/node_modules/@jridgewell/sourcemap-codec/package.json +63 -0
  221. package/test/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts +345 -0
  222. package/test/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +111 -0
  223. package/test/node_modules/@jridgewell/sourcemap-codec/src/strings.ts +65 -0
  224. package/test/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts +55 -0
  225. package/test/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts +50 -0
  226. package/test/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map +1 -0
  227. package/test/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +50 -0
  228. package/test/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map +1 -0
  229. package/test/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts +9 -0
  230. package/test/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map +1 -0
  231. package/test/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +9 -0
  232. package/test/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map +1 -0
  233. package/test/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts +16 -0
  234. package/test/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts.map +1 -0
  235. package/test/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +16 -0
  236. package/test/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts.map +1 -0
  237. package/test/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts +7 -0
  238. package/test/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map +1 -0
  239. package/test/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +7 -0
  240. package/test/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map +1 -0
  241. package/test/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
  242. package/test/node_modules/@jridgewell/trace-mapping/README.md +193 -0
  243. package/test/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +514 -0
  244. package/test/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +1 -0
  245. package/test/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +528 -0
  246. package/test/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +1 -0
  247. package/test/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +8 -0
  248. package/test/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts +32 -0
  249. package/test/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts +7 -0
  250. package/test/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +1 -0
  251. package/test/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts +2 -0
  252. package/test/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
  253. package/test/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts +4 -0
  254. package/test/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +70 -0
  255. package/test/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts +85 -0
  256. package/test/node_modules/@jridgewell/trace-mapping/package.json +70 -0
  257. package/test/node_modules/@tsconfig/node10/LICENSE +21 -0
  258. package/test/node_modules/@tsconfig/node10/README.md +38 -0
  259. package/test/node_modules/@tsconfig/node10/package.json +15 -0
  260. package/test/node_modules/@tsconfig/node10/tsconfig.json +14 -0
  261. package/test/node_modules/@tsconfig/node12/LICENSE +21 -0
  262. package/test/node_modules/@tsconfig/node12/README.md +40 -0
  263. package/test/node_modules/@tsconfig/node12/package.json +1 -0
  264. package/test/node_modules/@tsconfig/node12/tsconfig.json +16 -0
  265. package/test/node_modules/@tsconfig/node14/LICENSE +21 -0
  266. package/test/node_modules/@tsconfig/node14/README.md +40 -0
  267. package/test/node_modules/@tsconfig/node14/package.json +1 -0
  268. package/test/node_modules/@tsconfig/node14/tsconfig.json +16 -0
  269. package/test/node_modules/@tsconfig/node16/LICENSE +21 -0
  270. package/test/node_modules/@tsconfig/node16/README.md +40 -0
  271. package/test/node_modules/@tsconfig/node16/package.json +15 -0
  272. package/test/node_modules/@tsconfig/node16/tsconfig.json +16 -0
  273. package/test/node_modules/@types/fs-extra/LICENSE +21 -0
  274. package/test/node_modules/@types/fs-extra/README.md +16 -0
  275. package/test/node_modules/@types/fs-extra/index.d.ts +563 -0
  276. package/test/node_modules/@types/fs-extra/package.json +67 -0
  277. package/test/node_modules/@types/node/LICENSE +21 -0
  278. package/test/node_modules/@types/node/README.md +15 -0
  279. package/test/node_modules/@types/node/assert/strict.d.ts +105 -0
  280. package/test/node_modules/@types/node/assert.d.ts +955 -0
  281. package/test/node_modules/@types/node/async_hooks.d.ts +623 -0
  282. package/test/node_modules/@types/node/buffer.buffer.d.ts +466 -0
  283. package/test/node_modules/@types/node/buffer.d.ts +1810 -0
  284. package/test/node_modules/@types/node/child_process.d.ts +1433 -0
  285. package/test/node_modules/@types/node/cluster.d.ts +486 -0
  286. package/test/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  287. package/test/node_modules/@types/node/console.d.ts +151 -0
  288. package/test/node_modules/@types/node/constants.d.ts +20 -0
  289. package/test/node_modules/@types/node/crypto.d.ts +4065 -0
  290. package/test/node_modules/@types/node/dgram.d.ts +564 -0
  291. package/test/node_modules/@types/node/diagnostics_channel.d.ts +576 -0
  292. package/test/node_modules/@types/node/dns/promises.d.ts +503 -0
  293. package/test/node_modules/@types/node/dns.d.ts +922 -0
  294. package/test/node_modules/@types/node/domain.d.ts +166 -0
  295. package/test/node_modules/@types/node/events.d.ts +1047 -0
  296. package/test/node_modules/@types/node/fs/promises.d.ts +1329 -0
  297. package/test/node_modules/@types/node/fs.d.ts +4678 -0
  298. package/test/node_modules/@types/node/globals.d.ts +150 -0
  299. package/test/node_modules/@types/node/globals.typedarray.d.ts +101 -0
  300. package/test/node_modules/@types/node/http.d.ts +2188 -0
  301. package/test/node_modules/@types/node/http2.d.ts +2480 -0
  302. package/test/node_modules/@types/node/https.d.ts +405 -0
  303. package/test/node_modules/@types/node/index.d.ts +115 -0
  304. package/test/node_modules/@types/node/inspector/promises.d.ts +41 -0
  305. package/test/node_modules/@types/node/inspector.d.ts +269 -0
  306. package/test/node_modules/@types/node/inspector.generated.d.ts +4401 -0
  307. package/test/node_modules/@types/node/module.d.ts +757 -0
  308. package/test/node_modules/@types/node/net.d.ts +933 -0
  309. package/test/node_modules/@types/node/os.d.ts +507 -0
  310. package/test/node_modules/@types/node/package.json +155 -0
  311. package/test/node_modules/@types/node/path/posix.d.ts +8 -0
  312. package/test/node_modules/@types/node/path/win32.d.ts +8 -0
  313. package/test/node_modules/@types/node/path.d.ts +187 -0
  314. package/test/node_modules/@types/node/perf_hooks.d.ts +643 -0
  315. package/test/node_modules/@types/node/process.d.ts +2175 -0
  316. package/test/node_modules/@types/node/punycode.d.ts +117 -0
  317. package/test/node_modules/@types/node/querystring.d.ts +152 -0
  318. package/test/node_modules/@types/node/quic.d.ts +910 -0
  319. package/test/node_modules/@types/node/readline/promises.d.ts +161 -0
  320. package/test/node_modules/@types/node/readline.d.ts +542 -0
  321. package/test/node_modules/@types/node/repl.d.ts +415 -0
  322. package/test/node_modules/@types/node/sea.d.ts +162 -0
  323. package/test/node_modules/@types/node/sqlite.d.ts +1065 -0
  324. package/test/node_modules/@types/node/stream/consumers.d.ts +38 -0
  325. package/test/node_modules/@types/node/stream/promises.d.ts +211 -0
  326. package/test/node_modules/@types/node/stream/web.d.ts +296 -0
  327. package/test/node_modules/@types/node/stream.d.ts +1770 -0
  328. package/test/node_modules/@types/node/string_decoder.d.ts +67 -0
  329. package/test/node_modules/@types/node/test/reporters.d.ts +96 -0
  330. package/test/node_modules/@types/node/test.d.ts +2275 -0
  331. package/test/node_modules/@types/node/timers/promises.d.ts +108 -0
  332. package/test/node_modules/@types/node/timers.d.ts +159 -0
  333. package/test/node_modules/@types/node/tls.d.ts +1203 -0
  334. package/test/node_modules/@types/node/trace_events.d.ts +197 -0
  335. package/test/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +462 -0
  336. package/test/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  337. package/test/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
  338. package/test/node_modules/@types/node/ts5.6/index.d.ts +117 -0
  339. package/test/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  340. package/test/node_modules/@types/node/ts5.7/index.d.ts +117 -0
  341. package/test/node_modules/@types/node/tty.d.ts +250 -0
  342. package/test/node_modules/@types/node/url.d.ts +541 -0
  343. package/test/node_modules/@types/node/util/types.d.ts +558 -0
  344. package/test/node_modules/@types/node/util.d.ts +1687 -0
  345. package/test/node_modules/@types/node/v8.d.ts +988 -0
  346. package/test/node_modules/@types/node/vm.d.ts +1208 -0
  347. package/test/node_modules/@types/node/wasi.d.ts +202 -0
  348. package/test/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
  349. package/test/node_modules/@types/node/web-globals/blob.d.ts +23 -0
  350. package/test/node_modules/@types/node/web-globals/console.d.ts +9 -0
  351. package/test/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
  352. package/test/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  353. package/test/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
  354. package/test/node_modules/@types/node/web-globals/events.d.ts +106 -0
  355. package/test/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
  356. package/test/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
  357. package/test/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
  358. package/test/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  359. package/test/node_modules/@types/node/web-globals/performance.d.ts +45 -0
  360. package/test/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  361. package/test/node_modules/@types/node/web-globals/streams.d.ts +115 -0
  362. package/test/node_modules/@types/node/web-globals/timers.d.ts +44 -0
  363. package/test/node_modules/@types/node/web-globals/url.d.ts +24 -0
  364. package/test/node_modules/@types/node/worker_threads.d.ts +717 -0
  365. package/test/node_modules/@types/node/zlib.d.ts +682 -0
  366. package/test/node_modules/acorn/CHANGELOG.md +972 -0
  367. package/test/node_modules/acorn/LICENSE +21 -0
  368. package/test/node_modules/acorn/README.md +301 -0
  369. package/test/node_modules/acorn/bin/acorn +4 -0
  370. package/test/node_modules/acorn/dist/acorn.d.mts +883 -0
  371. package/test/node_modules/acorn/dist/acorn.d.ts +883 -0
  372. package/test/node_modules/acorn/dist/acorn.js +6295 -0
  373. package/test/node_modules/acorn/dist/acorn.mjs +6266 -0
  374. package/test/node_modules/acorn/dist/bin.js +90 -0
  375. package/test/node_modules/acorn/package.json +50 -0
  376. package/test/node_modules/acorn-walk/CHANGELOG.md +209 -0
  377. package/test/node_modules/acorn-walk/LICENSE +21 -0
  378. package/test/node_modules/acorn-walk/README.md +124 -0
  379. package/test/node_modules/acorn-walk/dist/walk.d.mts +152 -0
  380. package/test/node_modules/acorn-walk/dist/walk.d.ts +152 -0
  381. package/test/node_modules/acorn-walk/dist/walk.js +485 -0
  382. package/test/node_modules/acorn-walk/dist/walk.mjs +467 -0
  383. package/test/node_modules/acorn-walk/node_modules/.bin/acorn +15 -0
  384. package/test/node_modules/acorn-walk/node_modules/.bin/acorn.cmd +7 -0
  385. package/test/node_modules/acorn-walk/package.json +50 -0
  386. package/test/node_modules/ansi-regex/index.d.ts +37 -0
  387. package/test/node_modules/ansi-regex/index.js +10 -0
  388. package/test/node_modules/ansi-regex/license +9 -0
  389. package/test/node_modules/ansi-regex/package.json +55 -0
  390. package/test/node_modules/ansi-regex/readme.md +78 -0
  391. package/test/node_modules/ansi-styles/index.d.ts +345 -0
  392. package/test/node_modules/ansi-styles/index.js +163 -0
  393. package/test/node_modules/ansi-styles/license +9 -0
  394. package/test/node_modules/ansi-styles/package.json +56 -0
  395. package/test/node_modules/ansi-styles/readme.md +152 -0
  396. package/test/node_modules/arg/LICENSE.md +21 -0
  397. package/test/node_modules/arg/README.md +280 -0
  398. package/test/node_modules/arg/index.d.ts +31 -0
  399. package/test/node_modules/arg/index.js +144 -0
  400. package/test/node_modules/arg/package.json +30 -0
  401. package/test/node_modules/chalk/index.d.ts +415 -0
  402. package/test/node_modules/chalk/license +9 -0
  403. package/test/node_modules/chalk/package.json +68 -0
  404. package/test/node_modules/chalk/readme.md +341 -0
  405. package/test/node_modules/chalk/source/index.js +229 -0
  406. package/test/node_modules/chalk/source/templates.js +134 -0
  407. package/test/node_modules/chalk/source/util.js +39 -0
  408. package/test/node_modules/color-convert/CHANGELOG.md +54 -0
  409. package/test/node_modules/color-convert/LICENSE +21 -0
  410. package/test/node_modules/color-convert/README.md +68 -0
  411. package/test/node_modules/color-convert/conversions.js +839 -0
  412. package/test/node_modules/color-convert/index.js +81 -0
  413. package/test/node_modules/color-convert/package.json +48 -0
  414. package/test/node_modules/color-convert/route.js +97 -0
  415. package/test/node_modules/color-name/LICENSE +8 -0
  416. package/test/node_modules/color-name/README.md +11 -0
  417. package/test/node_modules/color-name/index.js +152 -0
  418. package/test/node_modules/color-name/package.json +28 -0
  419. package/test/node_modules/create-require/CHANGELOG.md +33 -0
  420. package/test/node_modules/create-require/LICENSE +25 -0
  421. package/test/node_modules/create-require/README.md +46 -0
  422. package/test/node_modules/create-require/create-require.d.ts +3 -0
  423. package/test/node_modules/create-require/create-require.js +49 -0
  424. package/test/node_modules/create-require/package.json +39 -0
  425. package/test/node_modules/diff/CONTRIBUTING.md +39 -0
  426. package/test/node_modules/diff/LICENSE +31 -0
  427. package/test/node_modules/diff/README.md +207 -0
  428. package/test/node_modules/diff/dist/diff.js +1548 -0
  429. package/test/node_modules/diff/dist/diff.min.js +1 -0
  430. package/test/node_modules/diff/lib/convert/dmp.js +32 -0
  431. package/test/node_modules/diff/lib/convert/xml.js +42 -0
  432. package/test/node_modules/diff/lib/diff/array.js +45 -0
  433. package/test/node_modules/diff/lib/diff/base.js +304 -0
  434. package/test/node_modules/diff/lib/diff/character.js +37 -0
  435. package/test/node_modules/diff/lib/diff/css.js +41 -0
  436. package/test/node_modules/diff/lib/diff/json.js +163 -0
  437. package/test/node_modules/diff/lib/diff/line.js +89 -0
  438. package/test/node_modules/diff/lib/diff/sentence.js +41 -0
  439. package/test/node_modules/diff/lib/diff/word.js +107 -0
  440. package/test/node_modules/diff/lib/index.es6.js +1519 -0
  441. package/test/node_modules/diff/lib/index.js +216 -0
  442. package/test/node_modules/diff/lib/patch/apply.js +243 -0
  443. package/test/node_modules/diff/lib/patch/create.js +247 -0
  444. package/test/node_modules/diff/lib/patch/merge.js +609 -0
  445. package/test/node_modules/diff/lib/patch/parse.js +156 -0
  446. package/test/node_modules/diff/lib/util/array.js +32 -0
  447. package/test/node_modules/diff/lib/util/distance-iterator.js +57 -0
  448. package/test/node_modules/diff/lib/util/params.js +24 -0
  449. package/test/node_modules/diff/package.json +74 -0
  450. package/test/node_modules/diff/release-notes.md +261 -0
  451. package/test/node_modules/diff/runtime.js +3 -0
  452. package/test/node_modules/fs-extra/LICENSE +15 -0
  453. package/test/node_modules/fs-extra/README.md +262 -0
  454. package/test/node_modules/fs-extra/lib/copy/copy-sync.js +169 -0
  455. package/test/node_modules/fs-extra/lib/copy/copy.js +235 -0
  456. package/test/node_modules/fs-extra/lib/copy/index.js +7 -0
  457. package/test/node_modules/fs-extra/lib/empty/index.js +39 -0
  458. package/test/node_modules/fs-extra/lib/ensure/file.js +69 -0
  459. package/test/node_modules/fs-extra/lib/ensure/index.js +23 -0
  460. package/test/node_modules/fs-extra/lib/ensure/link.js +64 -0
  461. package/test/node_modules/fs-extra/lib/ensure/symlink-paths.js +99 -0
  462. package/test/node_modules/fs-extra/lib/ensure/symlink-type.js +31 -0
  463. package/test/node_modules/fs-extra/lib/ensure/symlink.js +82 -0
  464. package/test/node_modules/fs-extra/lib/fs/index.js +128 -0
  465. package/test/node_modules/fs-extra/lib/index.js +16 -0
  466. package/test/node_modules/fs-extra/lib/json/index.js +16 -0
  467. package/test/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
  468. package/test/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
  469. package/test/node_modules/fs-extra/lib/json/output-json.js +12 -0
  470. package/test/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
  471. package/test/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
  472. package/test/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
  473. package/test/node_modules/fs-extra/lib/move/index.js +7 -0
  474. package/test/node_modules/fs-extra/lib/move/move-sync.js +54 -0
  475. package/test/node_modules/fs-extra/lib/move/move.js +75 -0
  476. package/test/node_modules/fs-extra/lib/output-file/index.js +40 -0
  477. package/test/node_modules/fs-extra/lib/path-exists/index.js +12 -0
  478. package/test/node_modules/fs-extra/lib/remove/index.js +22 -0
  479. package/test/node_modules/fs-extra/lib/remove/rimraf.js +302 -0
  480. package/test/node_modules/fs-extra/lib/util/stat.js +154 -0
  481. package/test/node_modules/fs-extra/lib/util/utimes.js +26 -0
  482. package/test/node_modules/fs-extra/package.json +67 -0
  483. package/test/node_modules/function-bind/.eslintrc +21 -0
  484. package/test/node_modules/function-bind/.github/FUNDING.yml +12 -0
  485. package/test/node_modules/function-bind/.github/SECURITY.md +3 -0
  486. package/test/node_modules/function-bind/.nycrc +13 -0
  487. package/test/node_modules/function-bind/CHANGELOG.md +136 -0
  488. package/test/node_modules/function-bind/LICENSE +20 -0
  489. package/test/node_modules/function-bind/README.md +46 -0
  490. package/test/node_modules/function-bind/implementation.js +84 -0
  491. package/test/node_modules/function-bind/index.js +5 -0
  492. package/test/node_modules/function-bind/package.json +87 -0
  493. package/test/node_modules/function-bind/test/.eslintrc +9 -0
  494. package/test/node_modules/function-bind/test/index.js +252 -0
  495. package/test/node_modules/global-prefix/LICENSE +21 -0
  496. package/test/node_modules/global-prefix/README.md +92 -0
  497. package/test/node_modules/global-prefix/index.js +85 -0
  498. package/test/node_modules/global-prefix/node_modules/.bin/node-which +15 -0
  499. package/test/node_modules/global-prefix/node_modules/.bin/node-which.cmd +7 -0
  500. package/test/node_modules/global-prefix/package.json +49 -0
  501. package/test/node_modules/graceful-fs/LICENSE +15 -0
  502. package/test/node_modules/graceful-fs/README.md +143 -0
  503. package/test/node_modules/graceful-fs/clone.js +23 -0
  504. package/test/node_modules/graceful-fs/graceful-fs.js +448 -0
  505. package/test/node_modules/graceful-fs/legacy-streams.js +118 -0
  506. package/test/node_modules/graceful-fs/package.json +53 -0
  507. package/test/node_modules/graceful-fs/polyfills.js +355 -0
  508. package/test/node_modules/has-flag/index.d.ts +39 -0
  509. package/test/node_modules/has-flag/index.js +8 -0
  510. package/test/node_modules/has-flag/license +9 -0
  511. package/test/node_modules/has-flag/package.json +46 -0
  512. package/test/node_modules/has-flag/readme.md +89 -0
  513. package/test/node_modules/hasown/.eslintrc +5 -0
  514. package/test/node_modules/hasown/.github/FUNDING.yml +12 -0
  515. package/test/node_modules/hasown/.nycrc +13 -0
  516. package/test/node_modules/hasown/CHANGELOG.md +40 -0
  517. package/test/node_modules/hasown/LICENSE +21 -0
  518. package/test/node_modules/hasown/README.md +40 -0
  519. package/test/node_modules/hasown/index.d.ts +3 -0
  520. package/test/node_modules/hasown/index.js +8 -0
  521. package/test/node_modules/hasown/package.json +92 -0
  522. package/test/node_modules/hasown/tsconfig.json +6 -0
  523. package/test/node_modules/ini/LICENSE +15 -0
  524. package/test/node_modules/ini/README.md +180 -0
  525. package/test/node_modules/ini/lib/ini.js +280 -0
  526. package/test/node_modules/ini/package.json +45 -0
  527. package/test/node_modules/is-core-module/.eslintrc +18 -0
  528. package/test/node_modules/is-core-module/.nycrc +9 -0
  529. package/test/node_modules/is-core-module/CHANGELOG.md +218 -0
  530. package/test/node_modules/is-core-module/LICENSE +20 -0
  531. package/test/node_modules/is-core-module/README.md +40 -0
  532. package/test/node_modules/is-core-module/core.json +162 -0
  533. package/test/node_modules/is-core-module/index.js +69 -0
  534. package/test/node_modules/is-core-module/package.json +76 -0
  535. package/test/node_modules/is-core-module/test/index.js +157 -0
  536. package/test/node_modules/isexe/LICENSE.md +55 -0
  537. package/test/node_modules/isexe/README.md +80 -0
  538. package/test/node_modules/isexe/dist/commonjs/index.d.ts +14 -0
  539. package/test/node_modules/isexe/dist/commonjs/index.d.ts.map +1 -0
  540. package/test/node_modules/isexe/dist/commonjs/index.js +56 -0
  541. package/test/node_modules/isexe/dist/commonjs/index.js.map +1 -0
  542. package/test/node_modules/isexe/dist/commonjs/index.min.js +2 -0
  543. package/test/node_modules/isexe/dist/commonjs/index.min.js.map +7 -0
  544. package/test/node_modules/isexe/dist/commonjs/options.d.ts +32 -0
  545. package/test/node_modules/isexe/dist/commonjs/options.d.ts.map +1 -0
  546. package/test/node_modules/isexe/dist/commonjs/options.js +3 -0
  547. package/test/node_modules/isexe/dist/commonjs/options.js.map +1 -0
  548. package/test/node_modules/isexe/dist/commonjs/package.json +3 -0
  549. package/test/node_modules/isexe/dist/commonjs/posix.d.ts +18 -0
  550. package/test/node_modules/isexe/dist/commonjs/posix.d.ts.map +1 -0
  551. package/test/node_modules/isexe/dist/commonjs/posix.js +67 -0
  552. package/test/node_modules/isexe/dist/commonjs/posix.js.map +1 -0
  553. package/test/node_modules/isexe/dist/commonjs/win32.d.ts +18 -0
  554. package/test/node_modules/isexe/dist/commonjs/win32.d.ts.map +1 -0
  555. package/test/node_modules/isexe/dist/commonjs/win32.js +63 -0
  556. package/test/node_modules/isexe/dist/commonjs/win32.js.map +1 -0
  557. package/test/node_modules/isexe/dist/esm/index.d.ts +14 -0
  558. package/test/node_modules/isexe/dist/esm/index.d.ts.map +1 -0
  559. package/test/node_modules/isexe/dist/esm/index.js +16 -0
  560. package/test/node_modules/isexe/dist/esm/index.js.map +1 -0
  561. package/test/node_modules/isexe/dist/esm/index.min.js +2 -0
  562. package/test/node_modules/isexe/dist/esm/index.min.js.map +7 -0
  563. package/test/node_modules/isexe/dist/esm/options.d.ts +32 -0
  564. package/test/node_modules/isexe/dist/esm/options.d.ts.map +1 -0
  565. package/test/node_modules/isexe/dist/esm/options.js +2 -0
  566. package/test/node_modules/isexe/dist/esm/options.js.map +1 -0
  567. package/test/node_modules/isexe/dist/esm/package.json +3 -0
  568. package/test/node_modules/isexe/dist/esm/posix.d.ts +18 -0
  569. package/test/node_modules/isexe/dist/esm/posix.d.ts.map +1 -0
  570. package/test/node_modules/isexe/dist/esm/posix.js +62 -0
  571. package/test/node_modules/isexe/dist/esm/posix.js.map +1 -0
  572. package/test/node_modules/isexe/dist/esm/win32.d.ts +18 -0
  573. package/test/node_modules/isexe/dist/esm/win32.d.ts.map +1 -0
  574. package/test/node_modules/isexe/dist/esm/win32.js +58 -0
  575. package/test/node_modules/isexe/dist/esm/win32.js.map +1 -0
  576. package/test/node_modules/isexe/package.json +78 -0
  577. package/test/node_modules/json5/LICENSE.md +23 -0
  578. package/test/node_modules/json5/README.md +282 -0
  579. package/test/node_modules/json5/dist/index.js +1737 -0
  580. package/test/node_modules/json5/dist/index.min.js +1 -0
  581. package/test/node_modules/json5/dist/index.min.mjs +1 -0
  582. package/test/node_modules/json5/dist/index.mjs +1426 -0
  583. package/test/node_modules/json5/lib/cli.js +152 -0
  584. package/test/node_modules/json5/lib/index.d.ts +4 -0
  585. package/test/node_modules/json5/lib/index.js +9 -0
  586. package/test/node_modules/json5/lib/parse.d.ts +15 -0
  587. package/test/node_modules/json5/lib/parse.js +1114 -0
  588. package/test/node_modules/json5/lib/register.js +13 -0
  589. package/test/node_modules/json5/lib/require.js +4 -0
  590. package/test/node_modules/json5/lib/stringify.d.ts +89 -0
  591. package/test/node_modules/json5/lib/stringify.js +261 -0
  592. package/test/node_modules/json5/lib/unicode.d.ts +3 -0
  593. package/test/node_modules/json5/lib/unicode.js +4 -0
  594. package/test/node_modules/json5/lib/util.d.ts +5 -0
  595. package/test/node_modules/json5/lib/util.js +35 -0
  596. package/test/node_modules/json5/package.json +72 -0
  597. package/test/node_modules/jsonfile/LICENSE +15 -0
  598. package/test/node_modules/jsonfile/README.md +230 -0
  599. package/test/node_modules/jsonfile/index.js +88 -0
  600. package/test/node_modules/jsonfile/package.json +40 -0
  601. package/test/node_modules/jsonfile/utils.js +14 -0
  602. package/test/node_modules/kind-of/CHANGELOG.md +160 -0
  603. package/test/node_modules/kind-of/LICENSE +21 -0
  604. package/test/node_modules/kind-of/README.md +367 -0
  605. package/test/node_modules/kind-of/index.js +129 -0
  606. package/test/node_modules/kind-of/package.json +88 -0
  607. package/test/node_modules/make-error/LICENSE +5 -0
  608. package/test/node_modules/make-error/README.md +112 -0
  609. package/test/node_modules/make-error/dist/make-error.js +1 -0
  610. package/test/node_modules/make-error/index.d.ts +47 -0
  611. package/test/node_modules/make-error/index.js +151 -0
  612. package/test/node_modules/make-error/package.json +62 -0
  613. package/test/node_modules/minimist/.eslintrc +29 -0
  614. package/test/node_modules/minimist/.github/FUNDING.yml +12 -0
  615. package/test/node_modules/minimist/.nycrc +14 -0
  616. package/test/node_modules/minimist/CHANGELOG.md +298 -0
  617. package/test/node_modules/minimist/LICENSE +18 -0
  618. package/test/node_modules/minimist/README.md +121 -0
  619. package/test/node_modules/minimist/example/parse.js +4 -0
  620. package/test/node_modules/minimist/index.js +263 -0
  621. package/test/node_modules/minimist/package.json +75 -0
  622. package/test/node_modules/minimist/test/all_bool.js +34 -0
  623. package/test/node_modules/minimist/test/bool.js +177 -0
  624. package/test/node_modules/minimist/test/dash.js +43 -0
  625. package/test/node_modules/minimist/test/default_bool.js +37 -0
  626. package/test/node_modules/minimist/test/dotted.js +24 -0
  627. package/test/node_modules/minimist/test/kv_short.js +32 -0
  628. package/test/node_modules/minimist/test/long.js +33 -0
  629. package/test/node_modules/minimist/test/num.js +38 -0
  630. package/test/node_modules/minimist/test/parse.js +209 -0
  631. package/test/node_modules/minimist/test/parse_modified.js +11 -0
  632. package/test/node_modules/minimist/test/proto.js +64 -0
  633. package/test/node_modules/minimist/test/short.js +69 -0
  634. package/test/node_modules/minimist/test/stop_early.js +17 -0
  635. package/test/node_modules/minimist/test/unknown.js +104 -0
  636. package/test/node_modules/minimist/test/whitespace.js +10 -0
  637. package/test/node_modules/path-parse/LICENSE +21 -0
  638. package/test/node_modules/path-parse/README.md +42 -0
  639. package/test/node_modules/path-parse/index.js +75 -0
  640. package/test/node_modules/path-parse/package.json +33 -0
  641. package/test/node_modules/resolve/.editorconfig +37 -0
  642. package/test/node_modules/resolve/.eslintrc +65 -0
  643. package/test/node_modules/resolve/.github/FUNDING.yml +12 -0
  644. package/test/node_modules/resolve/.github/INCIDENT_RESPONSE_PROCESS.md +119 -0
  645. package/test/node_modules/resolve/.github/THREAT_MODEL.md +74 -0
  646. package/test/node_modules/resolve/LICENSE +21 -0
  647. package/test/node_modules/resolve/SECURITY.md +11 -0
  648. package/test/node_modules/resolve/async.js +3 -0
  649. package/test/node_modules/resolve/bin/resolve +50 -0
  650. package/test/node_modules/resolve/example/async.js +5 -0
  651. package/test/node_modules/resolve/example/sync.js +3 -0
  652. package/test/node_modules/resolve/index.js +6 -0
  653. package/test/node_modules/resolve/lib/async.js +333 -0
  654. package/test/node_modules/resolve/lib/caller.js +8 -0
  655. package/test/node_modules/resolve/lib/core.js +12 -0
  656. package/test/node_modules/resolve/lib/core.json +162 -0
  657. package/test/node_modules/resolve/lib/homedir.js +24 -0
  658. package/test/node_modules/resolve/lib/is-core.js +5 -0
  659. package/test/node_modules/resolve/lib/node-modules-paths.js +45 -0
  660. package/test/node_modules/resolve/lib/normalize-options.js +10 -0
  661. package/test/node_modules/resolve/lib/sync.js +212 -0
  662. package/test/node_modules/resolve/package.json +75 -0
  663. package/test/node_modules/resolve/readme.markdown +301 -0
  664. package/test/node_modules/resolve/sync.js +3 -0
  665. package/test/node_modules/resolve/test/core.js +88 -0
  666. package/test/node_modules/resolve/test/dotdot/abc/index.js +2 -0
  667. package/test/node_modules/resolve/test/dotdot/index.js +1 -0
  668. package/test/node_modules/resolve/test/dotdot.js +29 -0
  669. package/test/node_modules/resolve/test/faulty_basedir.js +29 -0
  670. package/test/node_modules/resolve/test/filter.js +34 -0
  671. package/test/node_modules/resolve/test/filter_sync.js +33 -0
  672. package/test/node_modules/resolve/test/home_paths.js +127 -0
  673. package/test/node_modules/resolve/test/home_paths_sync.js +114 -0
  674. package/test/node_modules/resolve/test/mock.js +315 -0
  675. package/test/node_modules/resolve/test/mock_sync.js +214 -0
  676. package/test/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +1 -0
  677. package/test/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +1 -0
  678. package/test/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +1 -0
  679. package/test/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +3 -0
  680. package/test/node_modules/resolve/test/module_dir.js +56 -0
  681. package/test/node_modules/resolve/test/node-modules-paths.js +143 -0
  682. package/test/node_modules/resolve/test/node_path/x/aaa/index.js +1 -0
  683. package/test/node_modules/resolve/test/node_path/x/ccc/index.js +1 -0
  684. package/test/node_modules/resolve/test/node_path/y/bbb/index.js +1 -0
  685. package/test/node_modules/resolve/test/node_path/y/ccc/index.js +1 -0
  686. package/test/node_modules/resolve/test/node_path.js +70 -0
  687. package/test/node_modules/resolve/test/nonstring.js +9 -0
  688. package/test/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
  689. package/test/node_modules/resolve/test/pathfilter.js +75 -0
  690. package/test/node_modules/resolve/test/precedence/aaa/index.js +1 -0
  691. package/test/node_modules/resolve/test/precedence/aaa/main.js +1 -0
  692. package/test/node_modules/resolve/test/precedence/aaa.js +1 -0
  693. package/test/node_modules/resolve/test/precedence/bbb/main.js +1 -0
  694. package/test/node_modules/resolve/test/precedence/bbb.js +1 -0
  695. package/test/node_modules/resolve/test/precedence.js +23 -0
  696. package/test/node_modules/resolve/test/resolver/baz/doom.js +0 -0
  697. package/test/node_modules/resolve/test/resolver/baz/package.json +4 -0
  698. package/test/node_modules/resolve/test/resolver/baz/quux.js +1 -0
  699. package/test/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
  700. package/test/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
  701. package/test/node_modules/resolve/test/resolver/browser_field/package.json +5 -0
  702. package/test/node_modules/resolve/test/resolver/cup.coffee +1 -0
  703. package/test/node_modules/resolve/test/resolver/dot_main/index.js +1 -0
  704. package/test/node_modules/resolve/test/resolver/dot_main/package.json +3 -0
  705. package/test/node_modules/resolve/test/resolver/dot_slash_main/index.js +1 -0
  706. package/test/node_modules/resolve/test/resolver/dot_slash_main/package.json +3 -0
  707. package/test/node_modules/resolve/test/resolver/false_main/index.js +0 -0
  708. package/test/node_modules/resolve/test/resolver/false_main/package.json +4 -0
  709. package/test/node_modules/resolve/test/resolver/foo.js +1 -0
  710. package/test/node_modules/resolve/test/resolver/incorrect_main/index.js +2 -0
  711. package/test/node_modules/resolve/test/resolver/incorrect_main/package.json +3 -0
  712. package/test/node_modules/resolve/test/resolver/invalid_main/package.json +7 -0
  713. package/test/node_modules/resolve/test/resolver/mug.coffee +0 -0
  714. package/test/node_modules/resolve/test/resolver/mug.js +0 -0
  715. package/test/node_modules/resolve/test/resolver/multirepo/lerna.json +6 -0
  716. package/test/node_modules/resolve/test/resolver/multirepo/package.json +20 -0
  717. package/test/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +35 -0
  718. package/test/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +14 -0
  719. package/test/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
  720. package/test/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +14 -0
  721. package/test/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +26 -0
  722. package/test/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +15 -0
  723. package/test/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +12 -0
  724. package/test/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
  725. package/test/node_modules/resolve/test/resolver/other_path/root.js +0 -0
  726. package/test/node_modules/resolve/test/resolver/quux/foo/index.js +1 -0
  727. package/test/node_modules/resolve/test/resolver/same_names/foo/index.js +1 -0
  728. package/test/node_modules/resolve/test/resolver/same_names/foo.js +1 -0
  729. package/test/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
  730. package/test/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep +0 -0
  731. package/test/node_modules/resolve/test/resolver/symlinked/package/bar.js +1 -0
  732. package/test/node_modules/resolve/test/resolver/symlinked/package/package.json +3 -0
  733. package/test/node_modules/resolve/test/resolver/without_basedir/main.js +5 -0
  734. package/test/node_modules/resolve/test/resolver.js +597 -0
  735. package/test/node_modules/resolve/test/resolver_sync.js +730 -0
  736. package/test/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
  737. package/test/node_modules/resolve/test/shadowed_core.js +54 -0
  738. package/test/node_modules/resolve/test/subdirs.js +13 -0
  739. package/test/node_modules/resolve/test/symlinks.js +176 -0
  740. package/test/node_modules/semver/LICENSE +15 -0
  741. package/test/node_modules/semver/README.md +665 -0
  742. package/test/node_modules/semver/bin/semver.js +191 -0
  743. package/test/node_modules/semver/classes/comparator.js +143 -0
  744. package/test/node_modules/semver/classes/index.js +7 -0
  745. package/test/node_modules/semver/classes/range.js +557 -0
  746. package/test/node_modules/semver/classes/semver.js +333 -0
  747. package/test/node_modules/semver/functions/clean.js +8 -0
  748. package/test/node_modules/semver/functions/cmp.js +54 -0
  749. package/test/node_modules/semver/functions/coerce.js +62 -0
  750. package/test/node_modules/semver/functions/compare-build.js +9 -0
  751. package/test/node_modules/semver/functions/compare-loose.js +5 -0
  752. package/test/node_modules/semver/functions/compare.js +7 -0
  753. package/test/node_modules/semver/functions/diff.js +60 -0
  754. package/test/node_modules/semver/functions/eq.js +5 -0
  755. package/test/node_modules/semver/functions/gt.js +5 -0
  756. package/test/node_modules/semver/functions/gte.js +5 -0
  757. package/test/node_modules/semver/functions/inc.js +21 -0
  758. package/test/node_modules/semver/functions/lt.js +5 -0
  759. package/test/node_modules/semver/functions/lte.js +5 -0
  760. package/test/node_modules/semver/functions/major.js +5 -0
  761. package/test/node_modules/semver/functions/minor.js +5 -0
  762. package/test/node_modules/semver/functions/neq.js +5 -0
  763. package/test/node_modules/semver/functions/parse.js +18 -0
  764. package/test/node_modules/semver/functions/patch.js +5 -0
  765. package/test/node_modules/semver/functions/prerelease.js +8 -0
  766. package/test/node_modules/semver/functions/rcompare.js +5 -0
  767. package/test/node_modules/semver/functions/rsort.js +5 -0
  768. package/test/node_modules/semver/functions/satisfies.js +12 -0
  769. package/test/node_modules/semver/functions/sort.js +5 -0
  770. package/test/node_modules/semver/functions/valid.js +8 -0
  771. package/test/node_modules/semver/index.js +91 -0
  772. package/test/node_modules/semver/internal/constants.js +37 -0
  773. package/test/node_modules/semver/internal/debug.js +11 -0
  774. package/test/node_modules/semver/internal/identifiers.js +29 -0
  775. package/test/node_modules/semver/internal/lrucache.js +42 -0
  776. package/test/node_modules/semver/internal/parse-options.js +17 -0
  777. package/test/node_modules/semver/internal/re.js +223 -0
  778. package/test/node_modules/semver/package.json +78 -0
  779. package/test/node_modules/semver/preload.js +4 -0
  780. package/test/node_modules/semver/range.bnf +16 -0
  781. package/test/node_modules/semver/ranges/gtr.js +6 -0
  782. package/test/node_modules/semver/ranges/intersects.js +9 -0
  783. package/test/node_modules/semver/ranges/ltr.js +6 -0
  784. package/test/node_modules/semver/ranges/max-satisfying.js +27 -0
  785. package/test/node_modules/semver/ranges/min-satisfying.js +26 -0
  786. package/test/node_modules/semver/ranges/min-version.js +63 -0
  787. package/test/node_modules/semver/ranges/outside.js +82 -0
  788. package/test/node_modules/semver/ranges/simplify.js +49 -0
  789. package/test/node_modules/semver/ranges/subset.js +249 -0
  790. package/test/node_modules/semver/ranges/to-comparators.js +10 -0
  791. package/test/node_modules/semver/ranges/valid.js +13 -0
  792. package/test/node_modules/strip-ansi/index.d.ts +17 -0
  793. package/test/node_modules/strip-ansi/index.js +4 -0
  794. package/test/node_modules/strip-ansi/license +9 -0
  795. package/test/node_modules/strip-ansi/package.json +54 -0
  796. package/test/node_modules/strip-ansi/readme.md +46 -0
  797. package/test/node_modules/strip-bom/index.js +14 -0
  798. package/test/node_modules/strip-bom/license +21 -0
  799. package/test/node_modules/strip-bom/package.json +40 -0
  800. package/test/node_modules/strip-bom/readme.md +36 -0
  801. package/test/node_modules/supports-color/browser.js +5 -0
  802. package/test/node_modules/supports-color/index.js +135 -0
  803. package/test/node_modules/supports-color/license +9 -0
  804. package/test/node_modules/supports-color/package.json +53 -0
  805. package/test/node_modules/supports-color/readme.md +76 -0
  806. package/test/node_modules/supports-preserve-symlinks-flag/.eslintrc +14 -0
  807. package/test/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +12 -0
  808. package/test/node_modules/supports-preserve-symlinks-flag/.nycrc +9 -0
  809. package/test/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +22 -0
  810. package/test/node_modules/supports-preserve-symlinks-flag/LICENSE +21 -0
  811. package/test/node_modules/supports-preserve-symlinks-flag/README.md +42 -0
  812. package/test/node_modules/supports-preserve-symlinks-flag/browser.js +3 -0
  813. package/test/node_modules/supports-preserve-symlinks-flag/index.js +9 -0
  814. package/test/node_modules/supports-preserve-symlinks-flag/package.json +70 -0
  815. package/test/node_modules/supports-preserve-symlinks-flag/test/index.js +29 -0
  816. package/test/node_modules/ts-latest/LICENSE.txt +55 -0
  817. package/test/node_modules/ts-latest/README.md +50 -0
  818. package/test/node_modules/ts-latest/SECURITY.md +39 -0
  819. package/test/node_modules/ts-latest/ThirdPartyNoticeText.txt +193 -0
  820. package/test/node_modules/ts-latest/bin/tsc +2 -0
  821. package/test/node_modules/ts-latest/bin/tsserver +2 -0
  822. package/test/node_modules/ts-latest/lib/_tsc.js +134440 -0
  823. package/test/node_modules/ts-latest/lib/_tsserver.js +659 -0
  824. package/test/node_modules/ts-latest/lib/_typingsInstaller.js +222 -0
  825. package/test/node_modules/ts-latest/lib/cs/diagnosticMessages.generated.json +2129 -0
  826. package/test/node_modules/ts-latest/lib/de/diagnosticMessages.generated.json +2125 -0
  827. package/test/node_modules/ts-latest/lib/es/diagnosticMessages.generated.json +2129 -0
  828. package/test/node_modules/ts-latest/lib/fr/diagnosticMessages.generated.json +2129 -0
  829. package/test/node_modules/ts-latest/lib/it/diagnosticMessages.generated.json +2125 -0
  830. package/test/node_modules/ts-latest/lib/ja/diagnosticMessages.generated.json +2129 -0
  831. package/test/node_modules/ts-latest/lib/ko/diagnosticMessages.generated.json +2129 -0
  832. package/test/node_modules/ts-latest/lib/lib.d.ts +20 -0
  833. package/test/node_modules/ts-latest/lib/lib.decorators.d.ts +382 -0
  834. package/test/node_modules/ts-latest/lib/lib.decorators.legacy.d.ts +20 -0
  835. package/test/node_modules/ts-latest/lib/lib.dom.asynciterable.d.ts +18 -0
  836. package/test/node_modules/ts-latest/lib/lib.dom.d.ts +44303 -0
  837. package/test/node_modules/ts-latest/lib/lib.dom.iterable.d.ts +18 -0
  838. package/test/node_modules/ts-latest/lib/lib.es2015.collection.d.ts +150 -0
  839. package/test/node_modules/ts-latest/lib/lib.es2015.core.d.ts +595 -0
  840. package/test/node_modules/ts-latest/lib/lib.es2015.d.ts +26 -0
  841. package/test/node_modules/ts-latest/lib/lib.es2015.generator.d.ts +75 -0
  842. package/test/node_modules/ts-latest/lib/lib.es2015.iterable.d.ts +603 -0
  843. package/test/node_modules/ts-latest/lib/lib.es2015.promise.d.ts +79 -0
  844. package/test/node_modules/ts-latest/lib/lib.es2015.proxy.d.ts +126 -0
  845. package/test/node_modules/ts-latest/lib/lib.es2015.reflect.d.ts +142 -0
  846. package/test/node_modules/ts-latest/lib/lib.es2015.symbol.d.ts +44 -0
  847. package/test/node_modules/ts-latest/lib/lib.es2015.symbol.wellknown.d.ts +324 -0
  848. package/test/node_modules/ts-latest/lib/lib.es2016.array.include.d.ts +114 -0
  849. package/test/node_modules/ts-latest/lib/lib.es2016.d.ts +19 -0
  850. package/test/node_modules/ts-latest/lib/lib.es2016.full.d.ts +21 -0
  851. package/test/node_modules/ts-latest/lib/lib.es2016.intl.d.ts +29 -0
  852. package/test/node_modules/ts-latest/lib/lib.es2017.arraybuffer.d.ts +19 -0
  853. package/test/node_modules/ts-latest/lib/lib.es2017.d.ts +24 -0
  854. package/test/node_modules/ts-latest/lib/lib.es2017.date.d.ts +29 -0
  855. package/test/node_modules/ts-latest/lib/lib.es2017.full.d.ts +21 -0
  856. package/test/node_modules/ts-latest/lib/lib.es2017.intl.d.ts +42 -0
  857. package/test/node_modules/ts-latest/lib/lib.es2017.object.d.ts +47 -0
  858. package/test/node_modules/ts-latest/lib/lib.es2017.sharedmemory.d.ts +133 -0
  859. package/test/node_modules/ts-latest/lib/lib.es2017.string.d.ts +43 -0
  860. package/test/node_modules/ts-latest/lib/lib.es2017.typedarrays.d.ts +51 -0
  861. package/test/node_modules/ts-latest/lib/lib.es2018.asyncgenerator.d.ts +75 -0
  862. package/test/node_modules/ts-latest/lib/lib.es2018.asynciterable.d.ts +51 -0
  863. package/test/node_modules/ts-latest/lib/lib.es2018.d.ts +22 -0
  864. package/test/node_modules/ts-latest/lib/lib.es2018.full.d.ts +22 -0
  865. package/test/node_modules/ts-latest/lib/lib.es2018.intl.d.ts +81 -0
  866. package/test/node_modules/ts-latest/lib/lib.es2018.promise.d.ts +28 -0
  867. package/test/node_modules/ts-latest/lib/lib.es2018.regexp.d.ts +35 -0
  868. package/test/node_modules/ts-latest/lib/lib.es2019.array.d.ts +77 -0
  869. package/test/node_modules/ts-latest/lib/lib.es2019.d.ts +22 -0
  870. package/test/node_modules/ts-latest/lib/lib.es2019.full.d.ts +22 -0
  871. package/test/node_modules/ts-latest/lib/lib.es2019.intl.d.ts +21 -0
  872. package/test/node_modules/ts-latest/lib/lib.es2019.object.d.ts +31 -0
  873. package/test/node_modules/ts-latest/lib/lib.es2019.string.d.ts +35 -0
  874. package/test/node_modules/ts-latest/lib/lib.es2019.symbol.d.ts +22 -0
  875. package/test/node_modules/ts-latest/lib/lib.es2020.bigint.d.ts +763 -0
  876. package/test/node_modules/ts-latest/lib/lib.es2020.d.ts +25 -0
  877. package/test/node_modules/ts-latest/lib/lib.es2020.date.d.ts +40 -0
  878. package/test/node_modules/ts-latest/lib/lib.es2020.full.d.ts +22 -0
  879. package/test/node_modules/ts-latest/lib/lib.es2020.intl.d.ts +472 -0
  880. package/test/node_modules/ts-latest/lib/lib.es2020.number.d.ts +26 -0
  881. package/test/node_modules/ts-latest/lib/lib.es2020.promise.d.ts +45 -0
  882. package/test/node_modules/ts-latest/lib/lib.es2020.sharedmemory.d.ts +97 -0
  883. package/test/node_modules/ts-latest/lib/lib.es2020.string.d.ts +42 -0
  884. package/test/node_modules/ts-latest/lib/lib.es2020.symbol.wellknown.d.ts +39 -0
  885. package/test/node_modules/ts-latest/lib/lib.es2021.d.ts +21 -0
  886. package/test/node_modules/ts-latest/lib/lib.es2021.full.d.ts +22 -0
  887. package/test/node_modules/ts-latest/lib/lib.es2021.intl.d.ts +164 -0
  888. package/test/node_modules/ts-latest/lib/lib.es2021.promise.d.ts +46 -0
  889. package/test/node_modules/ts-latest/lib/lib.es2021.string.d.ts +31 -0
  890. package/test/node_modules/ts-latest/lib/lib.es2021.weakref.d.ts +76 -0
  891. package/test/node_modules/ts-latest/lib/lib.es2022.array.d.ts +119 -0
  892. package/test/node_modules/ts-latest/lib/lib.es2022.d.ts +23 -0
  893. package/test/node_modules/ts-latest/lib/lib.es2022.error.d.ts +73 -0
  894. package/test/node_modules/ts-latest/lib/lib.es2022.full.d.ts +22 -0
  895. package/test/node_modules/ts-latest/lib/lib.es2022.intl.d.ts +143 -0
  896. package/test/node_modules/ts-latest/lib/lib.es2022.object.d.ts +24 -0
  897. package/test/node_modules/ts-latest/lib/lib.es2022.regexp.d.ts +37 -0
  898. package/test/node_modules/ts-latest/lib/lib.es2022.string.d.ts +23 -0
  899. package/test/node_modules/ts-latest/lib/lib.es2023.array.d.ts +922 -0
  900. package/test/node_modules/ts-latest/lib/lib.es2023.collection.d.ts +19 -0
  901. package/test/node_modules/ts-latest/lib/lib.es2023.d.ts +20 -0
  902. package/test/node_modules/ts-latest/lib/lib.es2023.full.d.ts +22 -0
  903. package/test/node_modules/ts-latest/lib/lib.es2023.intl.d.ts +62 -0
  904. package/test/node_modules/ts-latest/lib/lib.es2024.arraybuffer.d.ts +63 -0
  905. package/test/node_modules/ts-latest/lib/lib.es2024.collection.d.ts +27 -0
  906. package/test/node_modules/ts-latest/lib/lib.es2024.d.ts +24 -0
  907. package/test/node_modules/ts-latest/lib/lib.es2024.full.d.ts +22 -0
  908. package/test/node_modules/ts-latest/lib/lib.es2024.object.d.ts +27 -0
  909. package/test/node_modules/ts-latest/lib/lib.es2024.promise.d.ts +33 -0
  910. package/test/node_modules/ts-latest/lib/lib.es2024.regexp.d.ts +23 -0
  911. package/test/node_modules/ts-latest/lib/lib.es2024.sharedmemory.d.ts +66 -0
  912. package/test/node_modules/ts-latest/lib/lib.es2024.string.d.ts +27 -0
  913. package/test/node_modules/ts-latest/lib/lib.es2025.collection.d.ts +94 -0
  914. package/test/node_modules/ts-latest/lib/lib.es2025.d.ts +23 -0
  915. package/test/node_modules/ts-latest/lib/lib.es2025.float16.d.ts +443 -0
  916. package/test/node_modules/ts-latest/lib/lib.es2025.full.d.ts +22 -0
  917. package/test/node_modules/ts-latest/lib/lib.es2025.intl.d.ts +200 -0
  918. package/test/node_modules/ts-latest/lib/lib.es2025.iterator.d.ts +146 -0
  919. package/test/node_modules/ts-latest/lib/lib.es2025.promise.d.ts +32 -0
  920. package/test/node_modules/ts-latest/lib/lib.es2025.regexp.d.ts +30 -0
  921. package/test/node_modules/ts-latest/lib/lib.es5.d.ts +4599 -0
  922. package/test/node_modules/ts-latest/lib/lib.es6.d.ts +21 -0
  923. package/test/node_modules/ts-latest/lib/lib.esnext.array.d.ts +33 -0
  924. package/test/node_modules/ts-latest/lib/lib.esnext.collection.d.ts +47 -0
  925. package/test/node_modules/ts-latest/lib/lib.esnext.d.ts +27 -0
  926. package/test/node_modules/ts-latest/lib/lib.esnext.date.d.ts +21 -0
  927. package/test/node_modules/ts-latest/lib/lib.esnext.decorators.d.ts +26 -0
  928. package/test/node_modules/ts-latest/lib/lib.esnext.disposable.d.ts +191 -0
  929. package/test/node_modules/ts-latest/lib/lib.esnext.error.d.ts +22 -0
  930. package/test/node_modules/ts-latest/lib/lib.esnext.full.d.ts +22 -0
  931. package/test/node_modules/ts-latest/lib/lib.esnext.intl.d.ts +107 -0
  932. package/test/node_modules/ts-latest/lib/lib.esnext.sharedmemory.d.ts +23 -0
  933. package/test/node_modules/ts-latest/lib/lib.esnext.temporal.d.ts +473 -0
  934. package/test/node_modules/ts-latest/lib/lib.esnext.typedarrays.d.ts +90 -0
  935. package/test/node_modules/ts-latest/lib/lib.scripthost.d.ts +320 -0
  936. package/test/node_modules/ts-latest/lib/lib.webworker.asynciterable.d.ts +18 -0
  937. package/test/node_modules/ts-latest/lib/lib.webworker.d.ts +14814 -0
  938. package/test/node_modules/ts-latest/lib/lib.webworker.importscripts.d.ts +21 -0
  939. package/test/node_modules/ts-latest/lib/lib.webworker.iterable.d.ts +18 -0
  940. package/test/node_modules/ts-latest/lib/pl/diagnosticMessages.generated.json +2129 -0
  941. package/test/node_modules/ts-latest/lib/pt-br/diagnosticMessages.generated.json +2129 -0
  942. package/test/node_modules/ts-latest/lib/ru/diagnosticMessages.generated.json +2125 -0
  943. package/test/node_modules/ts-latest/lib/tr/diagnosticMessages.generated.json +2129 -0
  944. package/test/node_modules/ts-latest/lib/tsc.js +8 -0
  945. package/test/node_modules/ts-latest/lib/tsserver.js +8 -0
  946. package/test/node_modules/ts-latest/lib/tsserverlibrary.d.ts +17 -0
  947. package/test/node_modules/ts-latest/lib/tsserverlibrary.js +21 -0
  948. package/test/node_modules/ts-latest/lib/typesMap.json +497 -0
  949. package/test/node_modules/ts-latest/lib/typescript.d.ts +11448 -0
  950. package/test/node_modules/ts-latest/lib/typescript.js +200997 -0
  951. package/test/node_modules/ts-latest/lib/typingsInstaller.js +8 -0
  952. package/test/node_modules/ts-latest/lib/watchGuard.js +53 -0
  953. package/test/node_modules/ts-latest/lib/zh-cn/diagnosticMessages.generated.json +2129 -0
  954. package/test/node_modules/ts-latest/lib/zh-tw/diagnosticMessages.generated.json +2125 -0
  955. package/test/node_modules/ts-latest/package.json +119 -0
  956. package/test/node_modules/ts-node/LICENSE +21 -0
  957. package/test/node_modules/ts-node/README.md +1442 -0
  958. package/test/node_modules/ts-node/child-loader.mjs +8 -0
  959. package/test/node_modules/ts-node/dist/bin-cwd.d.ts +2 -0
  960. package/test/node_modules/ts-node/dist/bin-cwd.js +6 -0
  961. package/test/node_modules/ts-node/dist/bin-cwd.js.map +1 -0
  962. package/test/node_modules/ts-node/dist/bin-esm.d.ts +2 -0
  963. package/test/node_modules/ts-node/dist/bin-esm.js +6 -0
  964. package/test/node_modules/ts-node/dist/bin-esm.js.map +1 -0
  965. package/test/node_modules/ts-node/dist/bin-script-deprecated.d.ts +2 -0
  966. package/test/node_modules/ts-node/dist/bin-script-deprecated.js +7 -0
  967. package/test/node_modules/ts-node/dist/bin-script-deprecated.js.map +1 -0
  968. package/test/node_modules/ts-node/dist/bin-script.d.ts +2 -0
  969. package/test/node_modules/ts-node/dist/bin-script.js +6 -0
  970. package/test/node_modules/ts-node/dist/bin-script.js.map +1 -0
  971. package/test/node_modules/ts-node/dist/bin-transpile.d.ts +2 -0
  972. package/test/node_modules/ts-node/dist/bin-transpile.js +6 -0
  973. package/test/node_modules/ts-node/dist/bin-transpile.js.map +1 -0
  974. package/test/node_modules/ts-node/dist/bin.d.ts +11 -0
  975. package/test/node_modules/ts-node/dist/bin.js +581 -0
  976. package/test/node_modules/ts-node/dist/bin.js.map +1 -0
  977. package/test/node_modules/ts-node/dist/child/argv-payload.d.ts +1 -0
  978. package/test/node_modules/ts-node/dist/child/argv-payload.js +19 -0
  979. package/test/node_modules/ts-node/dist/child/argv-payload.js.map +1 -0
  980. package/test/node_modules/ts-node/dist/child/child-entrypoint.d.ts +1 -0
  981. package/test/node_modules/ts-node/dist/child/child-entrypoint.js +24 -0
  982. package/test/node_modules/ts-node/dist/child/child-entrypoint.js.map +1 -0
  983. package/test/node_modules/ts-node/dist/child/child-loader.d.ts +1 -0
  984. package/test/node_modules/ts-node/dist/child/child-loader.js +32 -0
  985. package/test/node_modules/ts-node/dist/child/child-loader.js.map +1 -0
  986. package/test/node_modules/ts-node/dist/child/child-require.d.ts +7 -0
  987. package/test/node_modules/ts-node/dist/child/child-require.js +22 -0
  988. package/test/node_modules/ts-node/dist/child/child-require.js.map +1 -0
  989. package/test/node_modules/ts-node/dist/child/spawn-child.d.ts +1 -0
  990. package/test/node_modules/ts-node/dist/child/spawn-child.js +49 -0
  991. package/test/node_modules/ts-node/dist/child/spawn-child.js.map +1 -0
  992. package/test/node_modules/ts-node/dist/cjs-resolve-hooks.d.ts +1 -0
  993. package/test/node_modules/ts-node/dist/cjs-resolve-hooks.js +29 -0
  994. package/test/node_modules/ts-node/dist/cjs-resolve-hooks.js.map +1 -0
  995. package/test/node_modules/ts-node/dist/configuration.d.ts +1 -0
  996. package/test/node_modules/ts-node/dist/configuration.js +308 -0
  997. package/test/node_modules/ts-node/dist/configuration.js.map +1 -0
  998. package/test/node_modules/ts-node/dist/esm.d.ts +53 -0
  999. package/test/node_modules/ts-node/dist/esm.js +228 -0
  1000. package/test/node_modules/ts-node/dist/esm.js.map +1 -0
  1001. package/test/node_modules/ts-node/dist/file-extensions.d.ts +1 -0
  1002. package/test/node_modules/ts-node/dist/file-extensions.js +133 -0
  1003. package/test/node_modules/ts-node/dist/file-extensions.js.map +1 -0
  1004. package/test/node_modules/ts-node/dist/index.d.ts +332 -0
  1005. package/test/node_modules/ts-node/dist/index.js +953 -0
  1006. package/test/node_modules/ts-node/dist/index.js.map +1 -0
  1007. package/test/node_modules/ts-node/dist/module-type-classifier.d.ts +1 -0
  1008. package/test/node_modules/ts-node/dist/module-type-classifier.js +64 -0
  1009. package/test/node_modules/ts-node/dist/module-type-classifier.js.map +1 -0
  1010. package/test/node_modules/ts-node/dist/node-module-type-classifier.d.ts +1 -0
  1011. package/test/node_modules/ts-node/dist/node-module-type-classifier.js +39 -0
  1012. package/test/node_modules/ts-node/dist/node-module-type-classifier.js.map +1 -0
  1013. package/test/node_modules/ts-node/dist/repl.d.ts +78 -0
  1014. package/test/node_modules/ts-node/dist/repl.js +561 -0
  1015. package/test/node_modules/ts-node/dist/repl.js.map +1 -0
  1016. package/test/node_modules/ts-node/dist/resolver-functions.d.ts +1 -0
  1017. package/test/node_modules/ts-node/dist/resolver-functions.js +143 -0
  1018. package/test/node_modules/ts-node/dist/resolver-functions.js.map +1 -0
  1019. package/test/node_modules/ts-node/dist/transpilers/swc.d.ts +11 -0
  1020. package/test/node_modules/ts-node/dist/transpilers/swc.js +218 -0
  1021. package/test/node_modules/ts-node/dist/transpilers/swc.js.map +1 -0
  1022. package/test/node_modules/ts-node/dist/transpilers/types.d.ts +35 -0
  1023. package/test/node_modules/ts-node/dist/transpilers/types.js +3 -0
  1024. package/test/node_modules/ts-node/dist/transpilers/types.js.map +1 -0
  1025. package/test/node_modules/ts-node/dist/ts-compiler-types.d.ts +63 -0
  1026. package/test/node_modules/ts-node/dist/ts-compiler-types.js +3 -0
  1027. package/test/node_modules/ts-node/dist/ts-compiler-types.js.map +1 -0
  1028. package/test/node_modules/ts-node/dist/ts-internals.d.ts +6 -0
  1029. package/test/node_modules/ts-node/dist/ts-internals.js +321 -0
  1030. package/test/node_modules/ts-node/dist/ts-internals.js.map +1 -0
  1031. package/test/node_modules/ts-node/dist/ts-transpile-module.d.ts +1 -0
  1032. package/test/node_modules/ts-node/dist/ts-transpile-module.js +100 -0
  1033. package/test/node_modules/ts-node/dist/ts-transpile-module.js.map +1 -0
  1034. package/test/node_modules/ts-node/dist/tsconfig-schema.d.ts +13 -0
  1035. package/test/node_modules/ts-node/dist/tsconfig-schema.js +3 -0
  1036. package/test/node_modules/ts-node/dist/tsconfig-schema.js.map +1 -0
  1037. package/test/node_modules/ts-node/dist/tsconfigs.d.ts +1 -0
  1038. package/test/node_modules/ts-node/dist/tsconfigs.js +36 -0
  1039. package/test/node_modules/ts-node/dist/tsconfigs.js.map +1 -0
  1040. package/test/node_modules/ts-node/dist/util.d.ts +4 -0
  1041. package/test/node_modules/ts-node/dist/util.js +175 -0
  1042. package/test/node_modules/ts-node/dist/util.js.map +1 -0
  1043. package/test/node_modules/ts-node/dist-raw/NODE-LICENSE.md +24 -0
  1044. package/test/node_modules/ts-node/dist-raw/README.md +36 -0
  1045. package/test/node_modules/ts-node/dist-raw/node-internal-constants.js +4 -0
  1046. package/test/node_modules/ts-node/dist-raw/node-internal-errors.js +82 -0
  1047. package/test/node_modules/ts-node/dist-raw/node-internal-modules-cjs-helpers.js +89 -0
  1048. package/test/node_modules/ts-node/dist-raw/node-internal-modules-cjs-loader.js +593 -0
  1049. package/test/node_modules/ts-node/dist-raw/node-internal-modules-esm-get_format.js +106 -0
  1050. package/test/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js +962 -0
  1051. package/test/node_modules/ts-node/dist-raw/node-internal-modules-package_json_reader.js +44 -0
  1052. package/test/node_modules/ts-node/dist-raw/node-internal-repl-await.js +254 -0
  1053. package/test/node_modules/ts-node/dist-raw/node-internalBinding-fs.js +58 -0
  1054. package/test/node_modules/ts-node/dist-raw/node-nativemodule.js +9 -0
  1055. package/test/node_modules/ts-node/dist-raw/node-options.js +103 -0
  1056. package/test/node_modules/ts-node/dist-raw/node-primordials.js +37 -0
  1057. package/test/node_modules/ts-node/dist-raw/runmain-hack.js +9 -0
  1058. package/test/node_modules/ts-node/esm/transpile-only.mjs +8 -0
  1059. package/test/node_modules/ts-node/esm.mjs +8 -0
  1060. package/test/node_modules/ts-node/node10/tsconfig.json +3 -0
  1061. package/test/node_modules/ts-node/node12/tsconfig.json +3 -0
  1062. package/test/node_modules/ts-node/node14/tsconfig.json +3 -0
  1063. package/test/node_modules/ts-node/node16/tsconfig.json +3 -0
  1064. package/test/node_modules/ts-node/node_modules/.bin/acorn +15 -0
  1065. package/test/node_modules/ts-node/node_modules/.bin/acorn.cmd +7 -0
  1066. package/test/node_modules/ts-node/package.json +182 -0
  1067. package/test/node_modules/ts-node/register/files.js +3 -0
  1068. package/test/node_modules/ts-node/register/index.js +1 -0
  1069. package/test/node_modules/ts-node/register/transpile-only.js +3 -0
  1070. package/test/node_modules/ts-node/register/type-check.js +3 -0
  1071. package/test/node_modules/ts-node/transpilers/swc-experimental.js +1 -0
  1072. package/test/node_modules/ts-node/transpilers/swc.js +1 -0
  1073. package/test/node_modules/ts-node/tsconfig.schema.json +183 -0
  1074. package/test/node_modules/ts-node/tsconfig.schemastore-schema.json +1326 -0
  1075. package/test/node_modules/tsconfig-paths/CHANGELOG.md +407 -0
  1076. package/test/node_modules/tsconfig-paths/LICENSE +21 -0
  1077. package/test/node_modules/tsconfig-paths/README.md +269 -0
  1078. package/test/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.d.ts +1 -0
  1079. package/test/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.js +87 -0
  1080. package/test/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.js.map +1 -0
  1081. package/test/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.d.ts +17 -0
  1082. package/test/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.js +216 -0
  1083. package/test/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.js.map +1 -0
  1084. package/test/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.d.ts +1 -0
  1085. package/test/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.js +56 -0
  1086. package/test/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.js.map +1 -0
  1087. package/test/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.d.ts +1 -0
  1088. package/test/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.js +39 -0
  1089. package/test/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.js.map +1 -0
  1090. package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.d.ts +1 -0
  1091. package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js +18 -0
  1092. package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js.map +1 -0
  1093. package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.d.ts +1 -0
  1094. package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.js +14 -0
  1095. package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.js.map +1 -0
  1096. package/test/node_modules/tsconfig-paths/lib/__tests__/try-path.test.d.ts +1 -0
  1097. package/test/node_modules/tsconfig-paths/lib/__tests__/try-path.test.js +124 -0
  1098. package/test/node_modules/tsconfig-paths/lib/__tests__/try-path.test.js.map +1 -0
  1099. package/test/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.d.ts +1 -0
  1100. package/test/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.js +328 -0
  1101. package/test/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.js.map +1 -0
  1102. package/test/node_modules/tsconfig-paths/lib/config-loader.d.ts +33 -0
  1103. package/test/node_modules/tsconfig-paths/lib/config-loader.js +48 -0
  1104. package/test/node_modules/tsconfig-paths/lib/config-loader.js.map +1 -0
  1105. package/test/node_modules/tsconfig-paths/lib/filesystem.d.ts +34 -0
  1106. package/test/node_modules/tsconfig-paths/lib/filesystem.js +61 -0
  1107. package/test/node_modules/tsconfig-paths/lib/filesystem.js.map +1 -0
  1108. package/test/node_modules/tsconfig-paths/lib/index.d.ts +5 -0
  1109. package/test/node_modules/tsconfig-paths/lib/index.js +15 -0
  1110. package/test/node_modules/tsconfig-paths/lib/index.js.map +1 -0
  1111. package/test/node_modules/tsconfig-paths/lib/mapping-entry.d.ts +18 -0
  1112. package/test/node_modules/tsconfig-paths/lib/mapping-entry.js +54 -0
  1113. package/test/node_modules/tsconfig-paths/lib/mapping-entry.js.map +1 -0
  1114. package/test/node_modules/tsconfig-paths/lib/match-path-async.d.ts +21 -0
  1115. package/test/node_modules/tsconfig-paths/lib/match-path-async.js +116 -0
  1116. package/test/node_modules/tsconfig-paths/lib/match-path-async.js.map +1 -0
  1117. package/test/node_modules/tsconfig-paths/lib/match-path-sync.d.ts +32 -0
  1118. package/test/node_modules/tsconfig-paths/lib/match-path-sync.js +91 -0
  1119. package/test/node_modules/tsconfig-paths/lib/match-path-sync.js.map +1 -0
  1120. package/test/node_modules/tsconfig-paths/lib/register.d.ts +12 -0
  1121. package/test/node_modules/tsconfig-paths/lib/register.js +112 -0
  1122. package/test/node_modules/tsconfig-paths/lib/register.js.map +1 -0
  1123. package/test/node_modules/tsconfig-paths/lib/try-path.d.ts +15 -0
  1124. package/test/node_modules/tsconfig-paths/lib/try-path.js +91 -0
  1125. package/test/node_modules/tsconfig-paths/lib/try-path.js.map +1 -0
  1126. package/test/node_modules/tsconfig-paths/lib/tsconfig-loader.d.ts +28 -0
  1127. package/test/node_modules/tsconfig-paths/lib/tsconfig-loader.js +148 -0
  1128. package/test/node_modules/tsconfig-paths/lib/tsconfig-loader.js.map +1 -0
  1129. package/test/node_modules/tsconfig-paths/node_modules/.bin/json5 +15 -0
  1130. package/test/node_modules/tsconfig-paths/node_modules/.bin/json5.cmd +7 -0
  1131. package/test/node_modules/tsconfig-paths/package.json +74 -0
  1132. package/test/node_modules/tsconfig-paths/register.js +1 -0
  1133. package/test/node_modules/tsconfig-paths/src/__tests__/config-loader.test.ts +101 -0
  1134. package/test/node_modules/tsconfig-paths/src/__tests__/data/match-path-data.ts +230 -0
  1135. package/test/node_modules/tsconfig-paths/src/__tests__/filesystem.test.ts +57 -0
  1136. package/test/node_modules/tsconfig-paths/src/__tests__/mapping-entry.test.ts +43 -0
  1137. package/test/node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts +26 -0
  1138. package/test/node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts +22 -0
  1139. package/test/node_modules/tsconfig-paths/src/__tests__/try-path.test.ts +141 -0
  1140. package/test/node_modules/tsconfig-paths/src/__tests__/tsconfig-loader.test.ts +428 -0
  1141. package/test/node_modules/tsconfig-paths/src/__tests__/tsconfig-named.json +10 -0
  1142. package/test/node_modules/tsconfig-paths/src/config-loader.ts +89 -0
  1143. package/test/node_modules/tsconfig-paths/src/filesystem.ts +93 -0
  1144. package/test/node_modules/tsconfig-paths/src/index.ts +24 -0
  1145. package/test/node_modules/tsconfig-paths/src/mapping-entry.ts +65 -0
  1146. package/test/node_modules/tsconfig-paths/src/match-path-async.ts +223 -0
  1147. package/test/node_modules/tsconfig-paths/src/match-path-sync.ts +146 -0
  1148. package/test/node_modules/tsconfig-paths/src/register.ts +123 -0
  1149. package/test/node_modules/tsconfig-paths/src/try-path.ts +103 -0
  1150. package/test/node_modules/tsconfig-paths/src/tsconfig-loader.ts +229 -0
  1151. package/test/node_modules/undici-types/LICENSE +21 -0
  1152. package/test/node_modules/undici-types/README.md +6 -0
  1153. package/test/node_modules/undici-types/agent.d.ts +32 -0
  1154. package/test/node_modules/undici-types/api.d.ts +43 -0
  1155. package/test/node_modules/undici-types/balanced-pool.d.ts +30 -0
  1156. package/test/node_modules/undici-types/cache-interceptor.d.ts +173 -0
  1157. package/test/node_modules/undici-types/cache.d.ts +36 -0
  1158. package/test/node_modules/undici-types/client-stats.d.ts +15 -0
  1159. package/test/node_modules/undici-types/client.d.ts +108 -0
  1160. package/test/node_modules/undici-types/connector.d.ts +34 -0
  1161. package/test/node_modules/undici-types/content-type.d.ts +21 -0
  1162. package/test/node_modules/undici-types/cookies.d.ts +30 -0
  1163. package/test/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
  1164. package/test/node_modules/undici-types/dispatcher.d.ts +276 -0
  1165. package/test/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
  1166. package/test/node_modules/undici-types/errors.d.ts +161 -0
  1167. package/test/node_modules/undici-types/eventsource.d.ts +66 -0
  1168. package/test/node_modules/undici-types/fetch.d.ts +211 -0
  1169. package/test/node_modules/undici-types/formdata.d.ts +108 -0
  1170. package/test/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  1171. package/test/node_modules/undici-types/global-origin.d.ts +7 -0
  1172. package/test/node_modules/undici-types/h2c-client.d.ts +73 -0
  1173. package/test/node_modules/undici-types/handlers.d.ts +15 -0
  1174. package/test/node_modules/undici-types/header.d.ts +160 -0
  1175. package/test/node_modules/undici-types/index.d.ts +88 -0
  1176. package/test/node_modules/undici-types/interceptors.d.ts +73 -0
  1177. package/test/node_modules/undici-types/mock-agent.d.ts +68 -0
  1178. package/test/node_modules/undici-types/mock-call-history.d.ts +111 -0
  1179. package/test/node_modules/undici-types/mock-client.d.ts +27 -0
  1180. package/test/node_modules/undici-types/mock-errors.d.ts +12 -0
  1181. package/test/node_modules/undici-types/mock-interceptor.d.ts +94 -0
  1182. package/test/node_modules/undici-types/mock-pool.d.ts +27 -0
  1183. package/test/node_modules/undici-types/package.json +55 -0
  1184. package/test/node_modules/undici-types/patch.d.ts +29 -0
  1185. package/test/node_modules/undici-types/pool-stats.d.ts +19 -0
  1186. package/test/node_modules/undici-types/pool.d.ts +41 -0
  1187. package/test/node_modules/undici-types/proxy-agent.d.ts +29 -0
  1188. package/test/node_modules/undici-types/readable.d.ts +68 -0
  1189. package/test/node_modules/undici-types/retry-agent.d.ts +8 -0
  1190. package/test/node_modules/undici-types/retry-handler.d.ts +125 -0
  1191. package/test/node_modules/undici-types/round-robin-pool.d.ts +41 -0
  1192. package/test/node_modules/undici-types/snapshot-agent.d.ts +109 -0
  1193. package/test/node_modules/undici-types/util.d.ts +18 -0
  1194. package/test/node_modules/undici-types/utility.d.ts +7 -0
  1195. package/test/node_modules/undici-types/webidl.d.ts +341 -0
  1196. package/test/node_modules/undici-types/websocket.d.ts +186 -0
  1197. package/test/node_modules/universalify/LICENSE +20 -0
  1198. package/test/node_modules/universalify/README.md +76 -0
  1199. package/test/node_modules/universalify/index.js +24 -0
  1200. package/test/node_modules/universalify/package.json +34 -0
  1201. package/test/node_modules/v8-compile-cache-lib/CHANGELOG.md +53 -0
  1202. package/test/node_modules/v8-compile-cache-lib/LICENSE +21 -0
  1203. package/test/node_modules/v8-compile-cache-lib/README.md +60 -0
  1204. package/test/node_modules/v8-compile-cache-lib/package.json +35 -0
  1205. package/test/node_modules/v8-compile-cache-lib/v8-compile-cache.d.ts +7 -0
  1206. package/test/node_modules/v8-compile-cache-lib/v8-compile-cache.js +391 -0
  1207. package/test/node_modules/which/LICENSE +15 -0
  1208. package/test/node_modules/which/README.md +51 -0
  1209. package/test/node_modules/which/bin/which.js +52 -0
  1210. package/test/node_modules/which/lib/index.js +111 -0
  1211. package/test/node_modules/which/package.json +57 -0
  1212. package/test/node_modules/yn/index.d.ts +65 -0
  1213. package/test/node_modules/yn/index.js +33 -0
  1214. package/test/node_modules/yn/lenient.js +105 -0
  1215. package/test/node_modules/yn/license +9 -0
  1216. package/test/node_modules/yn/package.json +42 -0
  1217. package/test/node_modules/yn/readme.md +83 -0
  1218. package/test/package.json +14 -0
  1219. package/test/src/cleanup.ts +10 -0
  1220. package/test/src/config.ts +35 -0
  1221. package/test/src/perf.ts +110 -0
  1222. package/test/src/prepare.ts +10 -0
  1223. package/test/src/project.ts +134 -0
  1224. package/test/src/utils/general.ts +8 -0
  1225. package/test/tests/actions.test.ts +274 -0
  1226. package/test/tests/package-config.test.ts +40 -0
  1227. package/test/tests/path-mapping.test.ts +47 -0
  1228. package/test/tests/transformer.test.ts +44 -0
  1229. package/test/tests/webpack.test.ts +71 -0
  1230. package/test/tsconfig.json +12 -0
  1231. package/tsconfig.base.json +21 -0
  1232. package/actions/check.js +0 -45
  1233. package/actions/check.js.map +0 -1
  1234. package/actions/patch.js +0 -82
  1235. package/actions/patch.js.map +0 -1
  1236. package/actions/unpatch.js +0 -82
  1237. package/actions/unpatch.js.map +0 -1
  1238. package/bin/ts-patch.js +0 -33
  1239. package/bin/ts-patch.js.map +0 -1
  1240. package/cli/cli.js +0 -96
  1241. package/cli/cli.js.map +0 -1
  1242. package/cli/commands.js +0 -49
  1243. package/cli/commands.js.map +0 -1
  1244. package/config.js +0 -50
  1245. package/config.js.map +0 -1
  1246. package/module/module-file.d.ts +0 -9
  1247. package/module/module-file.js +0 -97
  1248. package/module/module-file.js.map +0 -1
  1249. package/module/ts-module.d.ts +0 -35
  1250. package/module/ts-module.js +0 -100
  1251. package/module/ts-module.js.map +0 -1
  1252. package/patch/get-patched-source.js +0 -69
  1253. package/patch/get-patched-source.js.map +0 -1
  1254. package/patch/transformers/fix-ts-early-return.js +0 -51
  1255. package/patch/transformers/fix-ts-early-return.js.map +0 -1
  1256. package/resources/module-patch.js +0 -609
  1257. package/system/cache.js +0 -69
  1258. package/system/cache.js.map +0 -1
  1259. package/tsconfig.tsbuildinfo +0 -1
  1260. package/utils/file-utils.js +0 -98
  1261. package/utils/file-utils.js.map +0 -1
  1262. /package/{actions → dist/actions}/check.d.ts +0 -0
  1263. /package/{actions → dist/actions}/index.d.ts +0 -0
  1264. /package/{actions → dist/actions}/index.js +0 -0
  1265. /package/{actions → dist/actions}/index.js.map +0 -0
  1266. /package/{actions → dist/actions}/install.d.ts +0 -0
  1267. /package/{actions → dist/actions}/install.js +0 -0
  1268. /package/{actions → dist/actions}/install.js.map +0 -0
  1269. /package/{actions → dist/actions}/patch.d.ts +0 -0
  1270. /package/{actions → dist/actions}/uninstall.d.ts +0 -0
  1271. /package/{actions → dist/actions}/uninstall.js +0 -0
  1272. /package/{actions → dist/actions}/uninstall.js.map +0 -0
  1273. /package/{actions → dist/actions}/unpatch.d.ts +0 -0
  1274. /package/{bin → dist/bin}/ts-patch.d.ts +0 -0
  1275. /package/{bin → dist/bin}/tspc.d.ts +0 -0
  1276. /package/{bin → dist/bin}/tspc.js +0 -0
  1277. /package/{bin → dist/bin}/tspc.js.map +0 -0
  1278. /package/{cli → dist/cli}/cli.d.ts +0 -0
  1279. /package/{cli → dist/cli}/commands.d.ts +0 -0
  1280. /package/{cli → dist/cli}/help-menu.d.ts +0 -0
  1281. /package/{cli → dist/cli}/help-menu.js +0 -0
  1282. /package/{cli → dist/cli}/help-menu.js.map +0 -0
  1283. /package/{cli → dist/cli}/options.d.ts +0 -0
  1284. /package/{cli → dist/cli}/options.js +0 -0
  1285. /package/{cli → dist/cli}/options.js.map +0 -0
  1286. /package/{compiler → dist/compiler}/package.json +0 -0
  1287. /package/{compiler → dist/compiler}/tsc.js +0 -0
  1288. /package/{compiler → dist/compiler}/tsserver.js +0 -0
  1289. /package/{compiler → dist/compiler}/tsserverlibrary.js +0 -0
  1290. /package/{compiler → dist/compiler}/typescript.js +0 -0
  1291. /package/{config.d.ts → dist/config.d.ts} +0 -0
  1292. /package/{index.d.ts → dist/index.d.ts} +0 -0
  1293. /package/{index.js → dist/index.js} +0 -0
  1294. /package/{index.js.map → dist/index.js.map} +0 -0
  1295. /package/{module → dist/module}/get-live-module.d.ts +0 -0
  1296. /package/{module → dist/module}/get-live-module.js +0 -0
  1297. /package/{module → dist/module}/get-live-module.js.map +0 -0
  1298. /package/{module → dist/module}/index.d.ts +0 -0
  1299. /package/{module → dist/module}/index.js +0 -0
  1300. /package/{module → dist/module}/index.js.map +0 -0
  1301. /package/{module → dist/module}/module-source.d.ts +0 -0
  1302. /package/{module → dist/module}/module-source.js +0 -0
  1303. /package/{module → dist/module}/module-source.js.map +0 -0
  1304. /package/{module → dist/module}/source-section.d.ts +0 -0
  1305. /package/{module → dist/module}/source-section.js +0 -0
  1306. /package/{module → dist/module}/source-section.js.map +0 -0
  1307. /package/{options.d.ts → dist/options.d.ts} +0 -0
  1308. /package/{options.js → dist/options.js} +0 -0
  1309. /package/{options.js.map → dist/options.js.map} +0 -0
  1310. /package/{patch → dist/patch}/get-patched-source.d.ts +0 -0
  1311. /package/{patch → dist/patch}/patch-detail.d.ts +0 -0
  1312. /package/{patch → dist/patch}/patch-detail.js +0 -0
  1313. /package/{patch → dist/patch}/patch-detail.js.map +0 -0
  1314. /package/{patch → dist/patch}/patch-module.d.ts +0 -0
  1315. /package/{patch → dist/patch}/patch-module.js +0 -0
  1316. /package/{patch → dist/patch}/patch-module.js.map +0 -0
  1317. /package/{patch → dist/patch}/transformers/add-original-create-program.d.ts +0 -0
  1318. /package/{patch → dist/patch}/transformers/add-original-create-program.js +0 -0
  1319. /package/{patch → dist/patch}/transformers/add-original-create-program.js.map +0 -0
  1320. /package/{patch → dist/patch}/transformers/fix-ts-early-return.d.ts +0 -0
  1321. /package/{patch → dist/patch}/transformers/hook-tsc-exec.d.ts +0 -0
  1322. /package/{patch → dist/patch}/transformers/hook-tsc-exec.js +0 -0
  1323. /package/{patch → dist/patch}/transformers/hook-tsc-exec.js.map +0 -0
  1324. /package/{patch → dist/patch}/transformers/index.d.ts +0 -0
  1325. /package/{patch → dist/patch}/transformers/index.js +0 -0
  1326. /package/{patch → dist/patch}/transformers/index.js.map +0 -0
  1327. /package/{patch → dist/patch}/transformers/merge-statements.d.ts +0 -0
  1328. /package/{patch → dist/patch}/transformers/merge-statements.js +0 -0
  1329. /package/{patch → dist/patch}/transformers/merge-statements.js.map +0 -0
  1330. /package/{patch → dist/patch}/transformers/patch-create-program.d.ts +0 -0
  1331. /package/{patch → dist/patch}/transformers/patch-create-program.js +0 -0
  1332. /package/{patch → dist/patch}/transformers/patch-create-program.js.map +0 -0
  1333. /package/{patch → dist/patch}/transformers/patch-emitter.d.ts +0 -0
  1334. /package/{patch → dist/patch}/transformers/patch-emitter.js +0 -0
  1335. /package/{patch → dist/patch}/transformers/patch-emitter.js.map +0 -0
  1336. /package/{plugin-types.d.ts → dist/plugin-types.d.ts} +0 -0
  1337. /package/{plugin-types.js → dist/plugin-types.js} +0 -0
  1338. /package/{plugin-types.js.map → dist/plugin-types.js.map} +0 -0
  1339. /package/{resources → dist/resources}/module-patch.d.ts +0 -0
  1340. /package/{slice → dist/slice}/module-slice.d.ts +0 -0
  1341. /package/{slice → dist/slice}/module-slice.js +0 -0
  1342. /package/{slice → dist/slice}/module-slice.js.map +0 -0
  1343. /package/{slice → dist/slice}/ts54.d.ts +0 -0
  1344. /package/{slice → dist/slice}/ts54.js +0 -0
  1345. /package/{slice → dist/slice}/ts54.js.map +0 -0
  1346. /package/{slice → dist/slice}/ts55.d.ts +0 -0
  1347. /package/{slice → dist/slice}/ts55.js +0 -0
  1348. /package/{slice → dist/slice}/ts55.js.map +0 -0
  1349. /package/{slice → dist/slice}/ts552.d.ts +0 -0
  1350. /package/{slice → dist/slice}/ts552.js +0 -0
  1351. /package/{slice → dist/slice}/ts552.js.map +0 -0
  1352. /package/{system → dist/system}/cache.d.ts +0 -0
  1353. /package/{system → dist/system}/errors.d.ts +0 -0
  1354. /package/{system → dist/system}/errors.js +0 -0
  1355. /package/{system → dist/system}/errors.js.map +0 -0
  1356. /package/{system → dist/system}/index.d.ts +0 -0
  1357. /package/{system → dist/system}/index.js +0 -0
  1358. /package/{system → dist/system}/index.js.map +0 -0
  1359. /package/{system → dist/system}/logger.d.ts +0 -0
  1360. /package/{system → dist/system}/logger.js +0 -0
  1361. /package/{system → dist/system}/logger.js.map +0 -0
  1362. /package/{system → dist/system}/types.d.ts +0 -0
  1363. /package/{system → dist/system}/types.js +0 -0
  1364. /package/{system → dist/system}/types.js.map +0 -0
  1365. /package/{ts-package.d.ts → dist/ts-package.d.ts} +0 -0
  1366. /package/{ts-package.js → dist/ts-package.js} +0 -0
  1367. /package/{ts-package.js.map → dist/ts-package.js.map} +0 -0
  1368. /package/{utils → dist/utils}/file-utils.d.ts +0 -0
  1369. /package/{utils → dist/utils}/find-cache-dir.d.ts +0 -0
  1370. /package/{utils → dist/utils}/find-cache-dir.js +0 -0
  1371. /package/{utils → dist/utils}/find-cache-dir.js.map +0 -0
  1372. /package/{utils → dist/utils}/general.d.ts +0 -0
  1373. /package/{utils → dist/utils}/general.js +0 -0
  1374. /package/{utils → dist/utils}/general.js.map +0 -0
  1375. /package/{utils → dist/utils}/index.d.ts +0 -0
  1376. /package/{utils → dist/utils}/index.js +0 -0
  1377. /package/{utils → dist/utils}/index.js.map +0 -0
@@ -0,0 +1,4599 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+ /// <reference lib="decorators" />
18
+ /// <reference lib="decorators.legacy" />
19
+
20
+ /////////////////////////////
21
+ /// ECMAScript APIs
22
+ /////////////////////////////
23
+
24
+ declare var NaN: number;
25
+ declare var Infinity: number;
26
+
27
+ /**
28
+ * Evaluates JavaScript code and executes it.
29
+ * @param x A String value that contains valid JavaScript code.
30
+ */
31
+ declare function eval(x: string): any;
32
+
33
+ /**
34
+ * Converts a string to an integer.
35
+ * @param string A string to convert into a number.
36
+ * @param radix A value between 2 and 36 that specifies the base of the number in `string`.
37
+ * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
38
+ * All other strings are considered decimal.
39
+ */
40
+ declare function parseInt(string: string, radix?: number): number;
41
+
42
+ /**
43
+ * Converts a string to a floating-point number.
44
+ * @param string A string that contains a floating-point number.
45
+ */
46
+ declare function parseFloat(string: string): number;
47
+
48
+ /**
49
+ * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
50
+ * @param number A numeric value.
51
+ */
52
+ declare function isNaN(number: number): boolean;
53
+
54
+ /**
55
+ * Determines whether a supplied number is finite.
56
+ * @param number Any numeric value.
57
+ */
58
+ declare function isFinite(number: number): boolean;
59
+
60
+ /**
61
+ * Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
62
+ * @param encodedURI A value representing an encoded URI.
63
+ */
64
+ declare function decodeURI(encodedURI: string): string;
65
+
66
+ /**
67
+ * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
68
+ * @param encodedURIComponent A value representing an encoded URI component.
69
+ */
70
+ declare function decodeURIComponent(encodedURIComponent: string): string;
71
+
72
+ /**
73
+ * Encodes a text string as a valid Uniform Resource Identifier (URI)
74
+ * @param uri A value representing an unencoded URI.
75
+ */
76
+ declare function encodeURI(uri: string): string;
77
+
78
+ /**
79
+ * Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
80
+ * @param uriComponent A value representing an unencoded URI component.
81
+ */
82
+ declare function encodeURIComponent(uriComponent: string | number | boolean): string;
83
+
84
+ /**
85
+ * Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.
86
+ * @deprecated A legacy feature for browser compatibility
87
+ * @param string A string value
88
+ */
89
+ declare function escape(string: string): string;
90
+
91
+ /**
92
+ * Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.
93
+ * @deprecated A legacy feature for browser compatibility
94
+ * @param string A string value
95
+ */
96
+ declare function unescape(string: string): string;
97
+
98
+ interface Symbol {
99
+ /** Returns a string representation of an object. */
100
+ toString(): string;
101
+
102
+ /** Returns the primitive value of the specified object. */
103
+ valueOf(): symbol;
104
+ }
105
+
106
+ declare type PropertyKey = string | number | symbol;
107
+
108
+ interface PropertyDescriptor {
109
+ configurable?: boolean;
110
+ enumerable?: boolean;
111
+ value?: any;
112
+ writable?: boolean;
113
+ get?(): any;
114
+ set?(v: any): void;
115
+ }
116
+
117
+ interface PropertyDescriptorMap {
118
+ [key: PropertyKey]: PropertyDescriptor;
119
+ }
120
+
121
+ interface Object {
122
+ /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */
123
+ constructor: Function;
124
+
125
+ /** Returns a string representation of an object. */
126
+ toString(): string;
127
+
128
+ /** Returns a date converted to a string using the current locale. */
129
+ toLocaleString(): string;
130
+
131
+ /** Returns the primitive value of the specified object. */
132
+ valueOf(): Object;
133
+
134
+ /**
135
+ * Determines whether an object has a property with the specified name.
136
+ * @param v A property name.
137
+ */
138
+ hasOwnProperty(v: PropertyKey): boolean;
139
+
140
+ /**
141
+ * Determines whether an object exists in another object's prototype chain.
142
+ * @param v Another object whose prototype chain is to be checked.
143
+ */
144
+ isPrototypeOf(v: Object): boolean;
145
+
146
+ /**
147
+ * Determines whether a specified property is enumerable.
148
+ * @param v A property name.
149
+ */
150
+ propertyIsEnumerable(v: PropertyKey): boolean;
151
+ }
152
+
153
+ interface ObjectConstructor {
154
+ new (value?: any): Object;
155
+ (): any;
156
+ (value: any): any;
157
+
158
+ /** A reference to the prototype for a class of objects. */
159
+ readonly prototype: Object;
160
+
161
+ /**
162
+ * Returns the prototype of an object.
163
+ * @param o The object that references the prototype.
164
+ */
165
+ getPrototypeOf(o: any): any;
166
+
167
+ /**
168
+ * Gets the own property descriptor of the specified object.
169
+ * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
170
+ * @param o Object that contains the property.
171
+ * @param p Name of the property.
172
+ */
173
+ getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined;
174
+
175
+ /**
176
+ * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
177
+ * on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
178
+ * @param o Object that contains the own properties.
179
+ */
180
+ getOwnPropertyNames(o: any): string[];
181
+
182
+ /**
183
+ * Creates an object that has the specified prototype or that has null prototype.
184
+ * @param o Object to use as a prototype. May be null.
185
+ */
186
+ create(o: object | null): any;
187
+
188
+ /**
189
+ * Creates an object that has the specified prototype, and that optionally contains specified properties.
190
+ * @param o Object to use as a prototype. May be null
191
+ * @param properties JavaScript object that contains one or more property descriptors.
192
+ */
193
+ create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
194
+
195
+ /**
196
+ * Adds a property to an object, or modifies attributes of an existing property.
197
+ * @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
198
+ * @param p The property name.
199
+ * @param attributes Descriptor for the property. It can be for a data property or an accessor property.
200
+ */
201
+ defineProperty<T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): T;
202
+
203
+ /**
204
+ * Adds one or more properties to an object, and/or modifies attributes of existing properties.
205
+ * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
206
+ * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
207
+ */
208
+ defineProperties<T>(o: T, properties: PropertyDescriptorMap & ThisType<any>): T;
209
+
210
+ /**
211
+ * Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
212
+ * @param o Object on which to lock the attributes.
213
+ */
214
+ seal<T>(o: T): T;
215
+
216
+ /**
217
+ * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
218
+ * @param f Object on which to lock the attributes.
219
+ */
220
+ freeze<T extends Function>(f: T): T;
221
+
222
+ /**
223
+ * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
224
+ * @param o Object on which to lock the attributes.
225
+ */
226
+ freeze<T extends { [idx: string]: U | null | undefined | object; }, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;
227
+
228
+ /**
229
+ * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
230
+ * @param o Object on which to lock the attributes.
231
+ */
232
+ freeze<T>(o: T): Readonly<T>;
233
+
234
+ /**
235
+ * Prevents the addition of new properties to an object.
236
+ * @param o Object to make non-extensible.
237
+ */
238
+ preventExtensions<T>(o: T): T;
239
+
240
+ /**
241
+ * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
242
+ * @param o Object to test.
243
+ */
244
+ isSealed(o: any): boolean;
245
+
246
+ /**
247
+ * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
248
+ * @param o Object to test.
249
+ */
250
+ isFrozen(o: any): boolean;
251
+
252
+ /**
253
+ * Returns a value that indicates whether new properties can be added to an object.
254
+ * @param o Object to test.
255
+ */
256
+ isExtensible(o: any): boolean;
257
+
258
+ /**
259
+ * Returns the names of the enumerable string properties and methods of an object.
260
+ * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
261
+ */
262
+ keys(o: object): string[];
263
+ }
264
+
265
+ /**
266
+ * Provides functionality common to all JavaScript objects.
267
+ */
268
+ declare var Object: ObjectConstructor;
269
+
270
+ /**
271
+ * Creates a new function.
272
+ */
273
+ interface Function {
274
+ /**
275
+ * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
276
+ * @param thisArg The object to be used as the this object.
277
+ * @param argArray A set of arguments to be passed to the function.
278
+ */
279
+ apply(this: Function, thisArg: any, argArray?: any): any;
280
+
281
+ /**
282
+ * Calls a method of an object, substituting another object for the current object.
283
+ * @param thisArg The object to be used as the current object.
284
+ * @param argArray A list of arguments to be passed to the method.
285
+ */
286
+ call(this: Function, thisArg: any, ...argArray: any[]): any;
287
+
288
+ /**
289
+ * For a given function, creates a bound function that has the same body as the original function.
290
+ * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
291
+ * @param thisArg An object to which the this keyword can refer inside the new function.
292
+ * @param argArray A list of arguments to be passed to the new function.
293
+ */
294
+ bind(this: Function, thisArg: any, ...argArray: any[]): any;
295
+
296
+ /** Returns a string representation of a function. */
297
+ toString(): string;
298
+
299
+ prototype: any;
300
+ readonly length: number;
301
+
302
+ // Non-standard extensions
303
+ arguments: any;
304
+ caller: Function;
305
+ }
306
+
307
+ interface FunctionConstructor {
308
+ /**
309
+ * Creates a new function.
310
+ * @param args A list of arguments the function accepts.
311
+ */
312
+ new (...args: string[]): Function;
313
+ (...args: string[]): Function;
314
+ readonly prototype: Function;
315
+ }
316
+
317
+ declare var Function: FunctionConstructor;
318
+
319
+ /**
320
+ * Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter.
321
+ */
322
+ type ThisParameterType<T> = T extends (this: infer U, ...args: never) => any ? U : unknown;
323
+
324
+ /**
325
+ * Removes the 'this' parameter from a function type.
326
+ */
327
+ type OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T;
328
+
329
+ interface CallableFunction extends Function {
330
+ /**
331
+ * Calls the function with the specified object as the this value and the elements of specified array as the arguments.
332
+ * @param thisArg The object to be used as the this object.
333
+ */
334
+ apply<T, R>(this: (this: T) => R, thisArg: T): R;
335
+
336
+ /**
337
+ * Calls the function with the specified object as the this value and the elements of specified array as the arguments.
338
+ * @param thisArg The object to be used as the this object.
339
+ * @param args An array of argument values to be passed to the function.
340
+ */
341
+ apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;
342
+
343
+ /**
344
+ * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
345
+ * @param thisArg The object to be used as the this object.
346
+ * @param args Argument values to be passed to the function.
347
+ */
348
+ call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;
349
+
350
+ /**
351
+ * For a given function, creates a bound function that has the same body as the original function.
352
+ * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
353
+ * @param thisArg The object to be used as the this object.
354
+ */
355
+ bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;
356
+
357
+ /**
358
+ * For a given function, creates a bound function that has the same body as the original function.
359
+ * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
360
+ * @param thisArg The object to be used as the this object.
361
+ * @param args Arguments to bind to the parameters of the function.
362
+ */
363
+ bind<T, A extends any[], B extends any[], R>(this: (this: T, ...args: [...A, ...B]) => R, thisArg: T, ...args: A): (...args: B) => R;
364
+ }
365
+
366
+ interface NewableFunction extends Function {
367
+ /**
368
+ * Calls the function with the specified object as the this value and the elements of specified array as the arguments.
369
+ * @param thisArg The object to be used as the this object.
370
+ */
371
+ apply<T>(this: new () => T, thisArg: T): void;
372
+ /**
373
+ * Calls the function with the specified object as the this value and the elements of specified array as the arguments.
374
+ * @param thisArg The object to be used as the this object.
375
+ * @param args An array of argument values to be passed to the function.
376
+ */
377
+ apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void;
378
+
379
+ /**
380
+ * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
381
+ * @param thisArg The object to be used as the this object.
382
+ * @param args Argument values to be passed to the function.
383
+ */
384
+ call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void;
385
+
386
+ /**
387
+ * For a given function, creates a bound function that has the same body as the original function.
388
+ * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
389
+ * @param thisArg The object to be used as the this object.
390
+ */
391
+ bind<T>(this: T, thisArg: any): T;
392
+
393
+ /**
394
+ * For a given function, creates a bound function that has the same body as the original function.
395
+ * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
396
+ * @param thisArg The object to be used as the this object.
397
+ * @param args Arguments to bind to the parameters of the function.
398
+ */
399
+ bind<A extends any[], B extends any[], R>(this: new (...args: [...A, ...B]) => R, thisArg: any, ...args: A): new (...args: B) => R;
400
+ }
401
+
402
+ interface IArguments {
403
+ [index: number]: any;
404
+ length: number;
405
+ callee: Function;
406
+ }
407
+
408
+ interface String {
409
+ /** Returns a string representation of a string. */
410
+ toString(): string;
411
+
412
+ /**
413
+ * Returns the character at the specified index.
414
+ * @param pos The zero-based index of the desired character.
415
+ */
416
+ charAt(pos: number): string;
417
+
418
+ /**
419
+ * Returns the Unicode value of the character at the specified location.
420
+ * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
421
+ */
422
+ charCodeAt(index: number): number;
423
+
424
+ /**
425
+ * Returns a string that contains the concatenation of two or more strings.
426
+ * @param strings The strings to append to the end of the string.
427
+ */
428
+ concat(...strings: string[]): string;
429
+
430
+ /**
431
+ * Returns the position of the first occurrence of a substring, or -1 if it is not present.
432
+ * @param searchString The substring to search for in the string
433
+ * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
434
+ */
435
+ indexOf(searchString: string, position?: number): number;
436
+
437
+ /**
438
+ * Returns the last occurrence of a substring in the string, or -1 if it is not present.
439
+ * @param searchString The substring to search for.
440
+ * @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
441
+ */
442
+ lastIndexOf(searchString: string, position?: number): number;
443
+
444
+ /**
445
+ * Determines whether two strings are equivalent in the current locale.
446
+ * @param that String to compare to target string
447
+ */
448
+ localeCompare(that: string): number;
449
+
450
+ /**
451
+ * Matches a string with a regular expression, and returns an array containing the results of that search.
452
+ * @param regexp A variable name or string literal containing the regular expression pattern and flags.
453
+ */
454
+ match(regexp: string | RegExp): RegExpMatchArray | null;
455
+
456
+ /**
457
+ * Replaces text in a string, using a regular expression or search string.
458
+ * @param searchValue A string or regular expression to search for.
459
+ * @param replaceValue A string containing the text to replace. When the {@linkcode searchValue} is a `RegExp`, all matches are replaced if the `g` flag is set (or only those matches at the beginning, if the `y` flag is also present). Otherwise, only the first match of {@linkcode searchValue} is replaced.
460
+ */
461
+ replace(searchValue: string | RegExp, replaceValue: string): string;
462
+
463
+ /**
464
+ * Replaces text in a string, using a regular expression or search string.
465
+ * @param searchValue A string to search for.
466
+ * @param replacer A function that returns the replacement text.
467
+ */
468
+ replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
469
+
470
+ /**
471
+ * Finds the first substring match in a regular expression search.
472
+ * @param regexp The regular expression pattern and applicable flags.
473
+ */
474
+ search(regexp: string | RegExp): number;
475
+
476
+ /**
477
+ * Returns a section of a string.
478
+ * @param start The index to the beginning of the specified portion of stringObj.
479
+ * @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.
480
+ * If this value is not specified, the substring continues to the end of stringObj.
481
+ */
482
+ slice(start?: number, end?: number): string;
483
+
484
+ /**
485
+ * Split a string into substrings using the specified separator and return them as an array.
486
+ * @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
487
+ * @param limit A value used to limit the number of elements returned in the array.
488
+ */
489
+ split(separator: string | RegExp, limit?: number): string[];
490
+
491
+ /**
492
+ * Returns the substring at the specified location within a String object.
493
+ * @param start The zero-based index number indicating the beginning of the substring.
494
+ * @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.
495
+ * If end is omitted, the characters from start through the end of the original string are returned.
496
+ */
497
+ substring(start: number, end?: number): string;
498
+
499
+ /** Converts all the alphabetic characters in a string to lowercase. */
500
+ toLowerCase(): string;
501
+
502
+ /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
503
+ toLocaleLowerCase(locales?: string | string[]): string;
504
+
505
+ /** Converts all the alphabetic characters in a string to uppercase. */
506
+ toUpperCase(): string;
507
+
508
+ /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
509
+ toLocaleUpperCase(locales?: string | string[]): string;
510
+
511
+ /** Removes the leading and trailing white space and line terminator characters from a string. */
512
+ trim(): string;
513
+
514
+ /** Returns the length of a String object. */
515
+ readonly length: number;
516
+
517
+ // IE extensions
518
+ /**
519
+ * Gets a substring beginning at the specified location and having the specified length.
520
+ * @deprecated A legacy feature for browser compatibility
521
+ * @param from The starting position of the desired substring. The index of the first character in the string is zero.
522
+ * @param length The number of characters to include in the returned substring.
523
+ */
524
+ substr(from: number, length?: number): string;
525
+
526
+ /** Returns the primitive value of the specified object. */
527
+ valueOf(): string;
528
+
529
+ readonly [index: number]: string;
530
+ }
531
+
532
+ interface StringConstructor {
533
+ new (value?: any): String;
534
+ (value?: any): string;
535
+ readonly prototype: String;
536
+ fromCharCode(...codes: number[]): string;
537
+ }
538
+
539
+ /**
540
+ * Allows manipulation and formatting of text strings and determination and location of substrings within strings.
541
+ */
542
+ declare var String: StringConstructor;
543
+
544
+ interface Boolean {
545
+ /** Returns the primitive value of the specified object. */
546
+ valueOf(): boolean;
547
+ }
548
+
549
+ interface BooleanConstructor {
550
+ new (value?: any): Boolean;
551
+ <T>(value?: T): boolean;
552
+ readonly prototype: Boolean;
553
+ }
554
+
555
+ declare var Boolean: BooleanConstructor;
556
+
557
+ interface Number {
558
+ /**
559
+ * Returns a string representation of an object.
560
+ * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
561
+ */
562
+ toString(radix?: number): string;
563
+
564
+ /**
565
+ * Returns a string representing a number in fixed-point notation.
566
+ * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
567
+ */
568
+ toFixed(fractionDigits?: number): string;
569
+
570
+ /**
571
+ * Returns a string containing a number represented in exponential notation.
572
+ * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
573
+ */
574
+ toExponential(fractionDigits?: number): string;
575
+
576
+ /**
577
+ * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
578
+ * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
579
+ */
580
+ toPrecision(precision?: number): string;
581
+
582
+ /** Returns the primitive value of the specified object. */
583
+ valueOf(): number;
584
+ }
585
+
586
+ interface NumberConstructor {
587
+ new (value?: any): Number;
588
+ (value?: any): number;
589
+ readonly prototype: Number;
590
+
591
+ /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
592
+ readonly MAX_VALUE: number;
593
+
594
+ /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
595
+ readonly MIN_VALUE: number;
596
+
597
+ /**
598
+ * A value that is not a number.
599
+ * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
600
+ */
601
+ readonly NaN: number;
602
+
603
+ /**
604
+ * A value that is less than the largest negative number that can be represented in JavaScript.
605
+ * JavaScript displays NEGATIVE_INFINITY values as -infinity.
606
+ */
607
+ readonly NEGATIVE_INFINITY: number;
608
+
609
+ /**
610
+ * A value greater than the largest number that can be represented in JavaScript.
611
+ * JavaScript displays POSITIVE_INFINITY values as infinity.
612
+ */
613
+ readonly POSITIVE_INFINITY: number;
614
+ }
615
+
616
+ /** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
617
+ declare var Number: NumberConstructor;
618
+
619
+ interface TemplateStringsArray extends ReadonlyArray<string> {
620
+ readonly raw: readonly string[];
621
+ }
622
+
623
+ /**
624
+ * The type of `import.meta`.
625
+ *
626
+ * If you need to declare that a given property exists on `import.meta`,
627
+ * this type may be augmented via interface merging.
628
+ */
629
+ interface ImportMeta {
630
+ }
631
+
632
+ /**
633
+ * The type for the optional second argument to `import()`.
634
+ *
635
+ * If your host environment supports additional options, this type may be
636
+ * augmented via interface merging.
637
+ */
638
+ interface ImportCallOptions {
639
+ /** @deprecated*/ assert?: ImportAssertions;
640
+ with?: ImportAttributes;
641
+ }
642
+
643
+ /**
644
+ * The type for the `assert` property of the optional second argument to `import()`.
645
+ * @deprecated
646
+ */
647
+ interface ImportAssertions {
648
+ [key: string]: string;
649
+ }
650
+
651
+ /**
652
+ * The type for the `with` property of the optional second argument to `import()`.
653
+ */
654
+ interface ImportAttributes {
655
+ [key: string]: string;
656
+ }
657
+
658
+ interface Math {
659
+ /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
660
+ readonly E: number;
661
+ /** The natural logarithm of 10. */
662
+ readonly LN10: number;
663
+ /** The natural logarithm of 2. */
664
+ readonly LN2: number;
665
+ /** The base-2 logarithm of e. */
666
+ readonly LOG2E: number;
667
+ /** The base-10 logarithm of e. */
668
+ readonly LOG10E: number;
669
+ /** Pi. This is the ratio of the circumference of a circle to its diameter. */
670
+ readonly PI: number;
671
+ /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
672
+ readonly SQRT1_2: number;
673
+ /** The square root of 2. */
674
+ readonly SQRT2: number;
675
+ /**
676
+ * Returns the absolute value of a number (the value without regard to whether it is positive or negative).
677
+ * For example, the absolute value of -5 is the same as the absolute value of 5.
678
+ * @param x A numeric expression for which the absolute value is needed.
679
+ */
680
+ abs(x: number): number;
681
+ /**
682
+ * Returns the arc cosine (or inverse cosine) of a number.
683
+ * @param x A numeric expression.
684
+ */
685
+ acos(x: number): number;
686
+ /**
687
+ * Returns the arcsine of a number.
688
+ * @param x A numeric expression.
689
+ */
690
+ asin(x: number): number;
691
+ /**
692
+ * Returns the arctangent of a number.
693
+ * @param x A numeric expression for which the arctangent is needed.
694
+ */
695
+ atan(x: number): number;
696
+ /**
697
+ * Returns the angle (in radians) between the X axis and the line going through both the origin and the given point.
698
+ * @param y A numeric expression representing the cartesian y-coordinate.
699
+ * @param x A numeric expression representing the cartesian x-coordinate.
700
+ */
701
+ atan2(y: number, x: number): number;
702
+ /**
703
+ * Returns the smallest integer greater than or equal to its numeric argument.
704
+ * @param x A numeric expression.
705
+ */
706
+ ceil(x: number): number;
707
+ /**
708
+ * Returns the cosine of a number.
709
+ * @param x A numeric expression that contains an angle measured in radians.
710
+ */
711
+ cos(x: number): number;
712
+ /**
713
+ * Returns e (the base of natural logarithms) raised to a power.
714
+ * @param x A numeric expression representing the power of e.
715
+ */
716
+ exp(x: number): number;
717
+ /**
718
+ * Returns the greatest integer less than or equal to its numeric argument.
719
+ * @param x A numeric expression.
720
+ */
721
+ floor(x: number): number;
722
+ /**
723
+ * Returns the natural logarithm (base e) of a number.
724
+ * @param x A numeric expression.
725
+ */
726
+ log(x: number): number;
727
+ /**
728
+ * Returns the larger of a set of supplied numeric expressions.
729
+ * @param values Numeric expressions to be evaluated.
730
+ */
731
+ max(...values: number[]): number;
732
+ /**
733
+ * Returns the smaller of a set of supplied numeric expressions.
734
+ * @param values Numeric expressions to be evaluated.
735
+ */
736
+ min(...values: number[]): number;
737
+ /**
738
+ * Returns the value of a base expression taken to a specified power.
739
+ * @param x The base value of the expression.
740
+ * @param y The exponent value of the expression.
741
+ */
742
+ pow(x: number, y: number): number;
743
+ /** Returns a pseudorandom number between 0 and 1. */
744
+ random(): number;
745
+ /**
746
+ * Returns a supplied numeric expression rounded to the nearest integer.
747
+ * @param x The value to be rounded to the nearest integer.
748
+ */
749
+ round(x: number): number;
750
+ /**
751
+ * Returns the sine of a number.
752
+ * @param x A numeric expression that contains an angle measured in radians.
753
+ */
754
+ sin(x: number): number;
755
+ /**
756
+ * Returns the square root of a number.
757
+ * @param x A numeric expression.
758
+ */
759
+ sqrt(x: number): number;
760
+ /**
761
+ * Returns the tangent of a number.
762
+ * @param x A numeric expression that contains an angle measured in radians.
763
+ */
764
+ tan(x: number): number;
765
+ }
766
+ /** An intrinsic object that provides basic mathematics functionality and constants. */
767
+ declare var Math: Math;
768
+
769
+ /** Enables basic storage and retrieval of dates and times. */
770
+ interface Date {
771
+ /** Returns a string representation of a date. The format of the string depends on the locale. */
772
+ toString(): string;
773
+ /** Returns a date as a string value. */
774
+ toDateString(): string;
775
+ /** Returns a time as a string value. */
776
+ toTimeString(): string;
777
+ /** Returns a value as a string value appropriate to the host environment's current locale. */
778
+ toLocaleString(): string;
779
+ /** Returns a date as a string value appropriate to the host environment's current locale. */
780
+ toLocaleDateString(): string;
781
+ /** Returns a time as a string value appropriate to the host environment's current locale. */
782
+ toLocaleTimeString(): string;
783
+ /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
784
+ valueOf(): number;
785
+ /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
786
+ getTime(): number;
787
+ /** Gets the year, using local time. */
788
+ getFullYear(): number;
789
+ /** Gets the year using Universal Coordinated Time (UTC). */
790
+ getUTCFullYear(): number;
791
+ /** Gets the month, using local time. */
792
+ getMonth(): number;
793
+ /** Gets the month of a Date object using Universal Coordinated Time (UTC). */
794
+ getUTCMonth(): number;
795
+ /** Gets the day-of-the-month, using local time. */
796
+ getDate(): number;
797
+ /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */
798
+ getUTCDate(): number;
799
+ /** Gets the day of the week, using local time. */
800
+ getDay(): number;
801
+ /** Gets the day of the week using Universal Coordinated Time (UTC). */
802
+ getUTCDay(): number;
803
+ /** Gets the hours in a date, using local time. */
804
+ getHours(): number;
805
+ /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */
806
+ getUTCHours(): number;
807
+ /** Gets the minutes of a Date object, using local time. */
808
+ getMinutes(): number;
809
+ /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */
810
+ getUTCMinutes(): number;
811
+ /** Gets the seconds of a Date object, using local time. */
812
+ getSeconds(): number;
813
+ /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */
814
+ getUTCSeconds(): number;
815
+ /** Gets the milliseconds of a Date, using local time. */
816
+ getMilliseconds(): number;
817
+ /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
818
+ getUTCMilliseconds(): number;
819
+ /** Gets the difference in minutes between Universal Coordinated Time (UTC) and the time on the local computer. */
820
+ getTimezoneOffset(): number;
821
+ /**
822
+ * Sets the date and time value in the Date object.
823
+ * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
824
+ */
825
+ setTime(time: number): number;
826
+ /**
827
+ * Sets the milliseconds value in the Date object using local time.
828
+ * @param ms A numeric value equal to the millisecond value.
829
+ */
830
+ setMilliseconds(ms: number): number;
831
+ /**
832
+ * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
833
+ * @param ms A numeric value equal to the millisecond value.
834
+ */
835
+ setUTCMilliseconds(ms: number): number;
836
+
837
+ /**
838
+ * Sets the seconds value in the Date object using local time.
839
+ * @param sec A numeric value equal to the seconds value.
840
+ * @param ms A numeric value equal to the milliseconds value.
841
+ */
842
+ setSeconds(sec: number, ms?: number): number;
843
+ /**
844
+ * Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
845
+ * @param sec A numeric value equal to the seconds value.
846
+ * @param ms A numeric value equal to the milliseconds value.
847
+ */
848
+ setUTCSeconds(sec: number, ms?: number): number;
849
+ /**
850
+ * Sets the minutes value in the Date object using local time.
851
+ * @param min A numeric value equal to the minutes value.
852
+ * @param sec A numeric value equal to the seconds value.
853
+ * @param ms A numeric value equal to the milliseconds value.
854
+ */
855
+ setMinutes(min: number, sec?: number, ms?: number): number;
856
+ /**
857
+ * Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
858
+ * @param min A numeric value equal to the minutes value.
859
+ * @param sec A numeric value equal to the seconds value.
860
+ * @param ms A numeric value equal to the milliseconds value.
861
+ */
862
+ setUTCMinutes(min: number, sec?: number, ms?: number): number;
863
+ /**
864
+ * Sets the hour value in the Date object using local time.
865
+ * @param hours A numeric value equal to the hours value.
866
+ * @param min A numeric value equal to the minutes value.
867
+ * @param sec A numeric value equal to the seconds value.
868
+ * @param ms A numeric value equal to the milliseconds value.
869
+ */
870
+ setHours(hours: number, min?: number, sec?: number, ms?: number): number;
871
+ /**
872
+ * Sets the hours value in the Date object using Universal Coordinated Time (UTC).
873
+ * @param hours A numeric value equal to the hours value.
874
+ * @param min A numeric value equal to the minutes value.
875
+ * @param sec A numeric value equal to the seconds value.
876
+ * @param ms A numeric value equal to the milliseconds value.
877
+ */
878
+ setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
879
+ /**
880
+ * Sets the numeric day-of-the-month value of the Date object using local time.
881
+ * @param date A numeric value equal to the day of the month.
882
+ */
883
+ setDate(date: number): number;
884
+ /**
885
+ * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
886
+ * @param date A numeric value equal to the day of the month.
887
+ */
888
+ setUTCDate(date: number): number;
889
+ /**
890
+ * Sets the month value in the Date object using local time.
891
+ * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
892
+ * @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.
893
+ */
894
+ setMonth(month: number, date?: number): number;
895
+ /**
896
+ * Sets the month value in the Date object using Universal Coordinated Time (UTC).
897
+ * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
898
+ * @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.
899
+ */
900
+ setUTCMonth(month: number, date?: number): number;
901
+ /**
902
+ * Sets the year of the Date object using local time.
903
+ * @param year A numeric value for the year.
904
+ * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
905
+ * @param date A numeric value equal for the day of the month.
906
+ */
907
+ setFullYear(year: number, month?: number, date?: number): number;
908
+ /**
909
+ * Sets the year value in the Date object using Universal Coordinated Time (UTC).
910
+ * @param year A numeric value equal to the year.
911
+ * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.
912
+ * @param date A numeric value equal to the day of the month.
913
+ */
914
+ setUTCFullYear(year: number, month?: number, date?: number): number;
915
+ /** Returns a date converted to a string using Universal Coordinated Time (UTC). */
916
+ toUTCString(): string;
917
+ /** Returns a date as a string value in ISO format. */
918
+ toISOString(): string;
919
+ /** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */
920
+ toJSON(key?: any): string;
921
+ }
922
+
923
+ interface DateConstructor {
924
+ new (): Date;
925
+ new (value: number | string): Date;
926
+ /**
927
+ * Creates a new Date.
928
+ * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
929
+ * @param monthIndex The month as a number between 0 and 11 (January to December).
930
+ * @param date The date as a number between 1 and 31.
931
+ * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
932
+ * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
933
+ * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
934
+ * @param ms A number from 0 to 999 that specifies the milliseconds.
935
+ */
936
+ new (year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
937
+ (): string;
938
+ readonly prototype: Date;
939
+ /**
940
+ * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
941
+ * @param s A date string
942
+ */
943
+ parse(s: string): number;
944
+ /**
945
+ * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
946
+ * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
947
+ * @param monthIndex The month as a number between 0 and 11 (January to December).
948
+ * @param date The date as a number between 1 and 31.
949
+ * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
950
+ * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
951
+ * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
952
+ * @param ms A number from 0 to 999 that specifies the milliseconds.
953
+ */
954
+ UTC(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
955
+ /** Returns the number of milliseconds elapsed since midnight, January 1, 1970 Universal Coordinated Time (UTC). */
956
+ now(): number;
957
+ }
958
+
959
+ declare var Date: DateConstructor;
960
+
961
+ interface RegExpMatchArray extends Array<string> {
962
+ /**
963
+ * The index of the search at which the result was found.
964
+ */
965
+ index?: number;
966
+ /**
967
+ * A copy of the search string.
968
+ */
969
+ input?: string;
970
+ /**
971
+ * The first match. This will always be present because `null` will be returned if there are no matches.
972
+ */
973
+ 0: string;
974
+ }
975
+
976
+ interface RegExpExecArray extends Array<string> {
977
+ /**
978
+ * The index of the search at which the result was found.
979
+ */
980
+ index: number;
981
+ /**
982
+ * A copy of the search string.
983
+ */
984
+ input: string;
985
+ /**
986
+ * The first match. This will always be present because `null` will be returned if there are no matches.
987
+ */
988
+ 0: string;
989
+ }
990
+
991
+ interface RegExp {
992
+ /**
993
+ * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
994
+ * @param string The String object or string literal on which to perform the search.
995
+ */
996
+ exec(string: string): RegExpExecArray | null;
997
+
998
+ /**
999
+ * Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
1000
+ * @param string String on which to perform the search.
1001
+ */
1002
+ test(string: string): boolean;
1003
+
1004
+ /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */
1005
+ readonly source: string;
1006
+
1007
+ /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
1008
+ readonly global: boolean;
1009
+
1010
+ /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
1011
+ readonly ignoreCase: boolean;
1012
+
1013
+ /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
1014
+ readonly multiline: boolean;
1015
+
1016
+ lastIndex: number;
1017
+
1018
+ // Non-standard extensions
1019
+ /** @deprecated A legacy feature for browser compatibility */
1020
+ compile(pattern: string, flags?: string): this;
1021
+ }
1022
+
1023
+ interface RegExpConstructor {
1024
+ new (pattern: RegExp | string): RegExp;
1025
+ new (pattern: string, flags?: string): RegExp;
1026
+ (pattern: RegExp | string): RegExp;
1027
+ (pattern: string, flags?: string): RegExp;
1028
+ readonly "prototype": RegExp;
1029
+
1030
+ // Non-standard extensions
1031
+ /** @deprecated A legacy feature for browser compatibility */
1032
+ "$1": string;
1033
+ /** @deprecated A legacy feature for browser compatibility */
1034
+ "$2": string;
1035
+ /** @deprecated A legacy feature for browser compatibility */
1036
+ "$3": string;
1037
+ /** @deprecated A legacy feature for browser compatibility */
1038
+ "$4": string;
1039
+ /** @deprecated A legacy feature for browser compatibility */
1040
+ "$5": string;
1041
+ /** @deprecated A legacy feature for browser compatibility */
1042
+ "$6": string;
1043
+ /** @deprecated A legacy feature for browser compatibility */
1044
+ "$7": string;
1045
+ /** @deprecated A legacy feature for browser compatibility */
1046
+ "$8": string;
1047
+ /** @deprecated A legacy feature for browser compatibility */
1048
+ "$9": string;
1049
+ /** @deprecated A legacy feature for browser compatibility */
1050
+ "input": string;
1051
+ /** @deprecated A legacy feature for browser compatibility */
1052
+ "$_": string;
1053
+ /** @deprecated A legacy feature for browser compatibility */
1054
+ "lastMatch": string;
1055
+ /** @deprecated A legacy feature for browser compatibility */
1056
+ "$&": string;
1057
+ /** @deprecated A legacy feature for browser compatibility */
1058
+ "lastParen": string;
1059
+ /** @deprecated A legacy feature for browser compatibility */
1060
+ "$+": string;
1061
+ /** @deprecated A legacy feature for browser compatibility */
1062
+ "leftContext": string;
1063
+ /** @deprecated A legacy feature for browser compatibility */
1064
+ "$`": string;
1065
+ /** @deprecated A legacy feature for browser compatibility */
1066
+ "rightContext": string;
1067
+ /** @deprecated A legacy feature for browser compatibility */
1068
+ "$'": string;
1069
+ }
1070
+
1071
+ declare var RegExp: RegExpConstructor;
1072
+
1073
+ interface Error {
1074
+ name: string;
1075
+ message: string;
1076
+ stack?: string;
1077
+ }
1078
+
1079
+ interface ErrorConstructor {
1080
+ new (message?: string): Error;
1081
+ (message?: string): Error;
1082
+ readonly prototype: Error;
1083
+ }
1084
+
1085
+ declare var Error: ErrorConstructor;
1086
+
1087
+ interface EvalError extends Error {
1088
+ }
1089
+
1090
+ interface EvalErrorConstructor extends ErrorConstructor {
1091
+ new (message?: string): EvalError;
1092
+ (message?: string): EvalError;
1093
+ readonly prototype: EvalError;
1094
+ }
1095
+
1096
+ declare var EvalError: EvalErrorConstructor;
1097
+
1098
+ interface RangeError extends Error {
1099
+ }
1100
+
1101
+ interface RangeErrorConstructor extends ErrorConstructor {
1102
+ new (message?: string): RangeError;
1103
+ (message?: string): RangeError;
1104
+ readonly prototype: RangeError;
1105
+ }
1106
+
1107
+ declare var RangeError: RangeErrorConstructor;
1108
+
1109
+ interface ReferenceError extends Error {
1110
+ }
1111
+
1112
+ interface ReferenceErrorConstructor extends ErrorConstructor {
1113
+ new (message?: string): ReferenceError;
1114
+ (message?: string): ReferenceError;
1115
+ readonly prototype: ReferenceError;
1116
+ }
1117
+
1118
+ declare var ReferenceError: ReferenceErrorConstructor;
1119
+
1120
+ interface SyntaxError extends Error {
1121
+ }
1122
+
1123
+ interface SyntaxErrorConstructor extends ErrorConstructor {
1124
+ new (message?: string): SyntaxError;
1125
+ (message?: string): SyntaxError;
1126
+ readonly prototype: SyntaxError;
1127
+ }
1128
+
1129
+ declare var SyntaxError: SyntaxErrorConstructor;
1130
+
1131
+ interface TypeError extends Error {
1132
+ }
1133
+
1134
+ interface TypeErrorConstructor extends ErrorConstructor {
1135
+ new (message?: string): TypeError;
1136
+ (message?: string): TypeError;
1137
+ readonly prototype: TypeError;
1138
+ }
1139
+
1140
+ declare var TypeError: TypeErrorConstructor;
1141
+
1142
+ interface URIError extends Error {
1143
+ }
1144
+
1145
+ interface URIErrorConstructor extends ErrorConstructor {
1146
+ new (message?: string): URIError;
1147
+ (message?: string): URIError;
1148
+ readonly prototype: URIError;
1149
+ }
1150
+
1151
+ declare var URIError: URIErrorConstructor;
1152
+
1153
+ interface JSON {
1154
+ /**
1155
+ * Converts a JavaScript Object Notation (JSON) string into an object.
1156
+ * @param text A valid JSON string.
1157
+ * @param reviver A function that transforms the results. This function is called for each member of the object.
1158
+ * If a member contains nested objects, the nested objects are transformed before the parent object is.
1159
+ * @throws {SyntaxError} If `text` is not valid JSON.
1160
+ */
1161
+ parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
1162
+ /**
1163
+ * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
1164
+ * @param value A JavaScript value, usually an object or array, to be converted.
1165
+ * @param replacer A function that transforms the results.
1166
+ * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
1167
+ * @throws {TypeError} If a circular reference or a BigInt value is found.
1168
+ */
1169
+ stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
1170
+ /**
1171
+ * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
1172
+ * @param value A JavaScript value, usually an object or array, to be converted.
1173
+ * @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
1174
+ * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
1175
+ * @throws {TypeError} If a circular reference or a BigInt value is found.
1176
+ */
1177
+ stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
1178
+ }
1179
+
1180
+ /**
1181
+ * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
1182
+ */
1183
+ declare var JSON: JSON;
1184
+
1185
+ /////////////////////////////
1186
+ /// ECMAScript Array API (specially handled by compiler)
1187
+ /////////////////////////////
1188
+
1189
+ interface ReadonlyArray<T> {
1190
+ /**
1191
+ * Gets the length of the array. This is a number one higher than the highest element defined in an array.
1192
+ */
1193
+ readonly length: number;
1194
+ /**
1195
+ * Returns a string representation of an array.
1196
+ */
1197
+ toString(): string;
1198
+ /**
1199
+ * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
1200
+ */
1201
+ toLocaleString(): string;
1202
+ /**
1203
+ * Combines two or more arrays.
1204
+ * @param items Additional items to add to the end of array1.
1205
+ */
1206
+ concat(...items: ConcatArray<T>[]): T[];
1207
+ /**
1208
+ * Combines two or more arrays.
1209
+ * @param items Additional items to add to the end of array1.
1210
+ */
1211
+ concat(...items: (T | ConcatArray<T>)[]): T[];
1212
+ /**
1213
+ * Adds all the elements of an array separated by the specified separator string.
1214
+ * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
1215
+ */
1216
+ join(separator?: string): string;
1217
+ /**
1218
+ * Returns a section of an array.
1219
+ * @param start The beginning of the specified portion of the array.
1220
+ * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
1221
+ */
1222
+ slice(start?: number, end?: number): T[];
1223
+ /**
1224
+ * Returns the index of the first occurrence of a value in an array.
1225
+ * @param searchElement The value to locate in the array.
1226
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
1227
+ */
1228
+ indexOf(searchElement: T, fromIndex?: number): number;
1229
+ /**
1230
+ * Returns the index of the last occurrence of a specified value in an array.
1231
+ * @param searchElement The value to locate in the array.
1232
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
1233
+ */
1234
+ lastIndexOf(searchElement: T, fromIndex?: number): number;
1235
+ /**
1236
+ * Determines whether all the members of an array satisfy the specified test.
1237
+ * @param predicate A function that accepts up to three arguments. The every method calls
1238
+ * the predicate function for each element in the array until the predicate returns a value
1239
+ * which is coercible to the Boolean value false, or until the end of the array.
1240
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
1241
+ * If thisArg is omitted, undefined is used as the this value.
1242
+ */
1243
+ every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is readonly S[];
1244
+ /**
1245
+ * Determines whether all the members of an array satisfy the specified test.
1246
+ * @param predicate A function that accepts up to three arguments. The every method calls
1247
+ * the predicate function for each element in the array until the predicate returns a value
1248
+ * which is coercible to the Boolean value false, or until the end of the array.
1249
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
1250
+ * If thisArg is omitted, undefined is used as the this value.
1251
+ */
1252
+ every(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
1253
+ /**
1254
+ * Determines whether the specified callback function returns true for any element of an array.
1255
+ * @param predicate A function that accepts up to three arguments. The some method calls
1256
+ * the predicate function for each element in the array until the predicate returns a value
1257
+ * which is coercible to the Boolean value true, or until the end of the array.
1258
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
1259
+ * If thisArg is omitted, undefined is used as the this value.
1260
+ */
1261
+ some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
1262
+ /**
1263
+ * Performs the specified action for each element in an array.
1264
+ * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
1265
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
1266
+ */
1267
+ forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void;
1268
+ /**
1269
+ * Calls a defined callback function on each element of an array, and returns an array that contains the results.
1270
+ * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
1271
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
1272
+ */
1273
+ map<U>(callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any): U[];
1274
+ /**
1275
+ * Returns the elements of an array that meet the condition specified in a callback function.
1276
+ * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
1277
+ * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
1278
+ */
1279
+ filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];
1280
+ /**
1281
+ * Returns the elements of an array that meet the condition specified in a callback function.
1282
+ * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
1283
+ * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
1284
+ */
1285
+ filter(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[];
1286
+ /**
1287
+ * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
1288
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
1289
+ * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
1290
+ */
1291
+ reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
1292
+ reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
1293
+ /**
1294
+ * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
1295
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
1296
+ * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
1297
+ */
1298
+ reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
1299
+ /**
1300
+ * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
1301
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
1302
+ * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
1303
+ */
1304
+ reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
1305
+ reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
1306
+ /**
1307
+ * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
1308
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
1309
+ * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
1310
+ */
1311
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
1312
+
1313
+ readonly [n: number]: T;
1314
+ }
1315
+
1316
+ interface ConcatArray<T> {
1317
+ readonly length: number;
1318
+ readonly [n: number]: T;
1319
+ join(separator?: string): string;
1320
+ slice(start?: number, end?: number): T[];
1321
+ }
1322
+
1323
+ interface Array<T> {
1324
+ /**
1325
+ * Gets or sets the length of the array. This is a number one higher than the highest index in the array.
1326
+ */
1327
+ length: number;
1328
+ /**
1329
+ * Returns a string representation of an array.
1330
+ */
1331
+ toString(): string;
1332
+ /**
1333
+ * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
1334
+ */
1335
+ toLocaleString(): string;
1336
+ /**
1337
+ * Removes the last element from an array and returns it.
1338
+ * If the array is empty, undefined is returned and the array is not modified.
1339
+ */
1340
+ pop(): T | undefined;
1341
+ /**
1342
+ * Appends new elements to the end of an array, and returns the new length of the array.
1343
+ * @param items New elements to add to the array.
1344
+ */
1345
+ push(...items: T[]): number;
1346
+ /**
1347
+ * Combines two or more arrays.
1348
+ * This method returns a new array without modifying any existing arrays.
1349
+ * @param items Additional arrays and/or items to add to the end of the array.
1350
+ */
1351
+ concat(...items: ConcatArray<T>[]): T[];
1352
+ /**
1353
+ * Combines two or more arrays.
1354
+ * This method returns a new array without modifying any existing arrays.
1355
+ * @param items Additional arrays and/or items to add to the end of the array.
1356
+ */
1357
+ concat(...items: (T | ConcatArray<T>)[]): T[];
1358
+ /**
1359
+ * Adds all the elements of an array into a string, separated by the specified separator string.
1360
+ * @param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.
1361
+ */
1362
+ join(separator?: string): string;
1363
+ /**
1364
+ * Reverses the elements in an array in place.
1365
+ * This method mutates the array and returns a reference to the same array.
1366
+ */
1367
+ reverse(): T[];
1368
+ /**
1369
+ * Removes the first element from an array and returns it.
1370
+ * If the array is empty, undefined is returned and the array is not modified.
1371
+ */
1372
+ shift(): T | undefined;
1373
+ /**
1374
+ * Returns a copy of a section of an array.
1375
+ * For both start and end, a negative index can be used to indicate an offset from the end of the array.
1376
+ * For example, -2 refers to the second to last element of the array.
1377
+ * @param start The beginning index of the specified portion of the array.
1378
+ * If start is undefined, then the slice begins at index 0.
1379
+ * @param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.
1380
+ * If end is undefined, then the slice extends to the end of the array.
1381
+ */
1382
+ slice(start?: number, end?: number): T[];
1383
+ /**
1384
+ * Sorts an array in place.
1385
+ * This method mutates the array and returns a reference to the same array.
1386
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
1387
+ * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
1388
+ * value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.
1389
+ * ```ts
1390
+ * [11,2,22,1].sort((a, b) => a - b)
1391
+ * ```
1392
+ */
1393
+ sort(compareFn?: (a: T, b: T) => number): this;
1394
+ /**
1395
+ * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
1396
+ * @param start The zero-based location in the array from which to start removing elements.
1397
+ * @param deleteCount The number of elements to remove. Omitting this argument will remove all elements from the start
1398
+ * paramater location to end of the array. If value of this argument is either a negative number, zero, undefined, or a type
1399
+ * that cannot be converted to an integer, the function will evaluate the argument as zero and not remove any elements.
1400
+ * @returns An array containing the elements that were deleted.
1401
+ */
1402
+ splice(start: number, deleteCount?: number): T[];
1403
+ /**
1404
+ * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
1405
+ * @param start The zero-based location in the array from which to start removing elements.
1406
+ * @param deleteCount The number of elements to remove. If value of this argument is either a negative number, zero,
1407
+ * undefined, or a type that cannot be converted to an integer, the function will evaluate the argument as zero and
1408
+ * not remove any elements.
1409
+ * @param items Elements to insert into the array in place of the deleted elements.
1410
+ * @returns An array containing the elements that were deleted.
1411
+ */
1412
+ splice(start: number, deleteCount: number, ...items: T[]): T[];
1413
+ /**
1414
+ * Inserts new elements at the start of an array, and returns the new length of the array.
1415
+ * @param items Elements to insert at the start of the array.
1416
+ */
1417
+ unshift(...items: T[]): number;
1418
+ /**
1419
+ * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
1420
+ * @param searchElement The value to locate in the array.
1421
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
1422
+ */
1423
+ indexOf(searchElement: T, fromIndex?: number): number;
1424
+ /**
1425
+ * Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.
1426
+ * @param searchElement The value to locate in the array.
1427
+ * @param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.
1428
+ */
1429
+ lastIndexOf(searchElement: T, fromIndex?: number): number;
1430
+ /**
1431
+ * Determines whether all the members of an array satisfy the specified test.
1432
+ * @param predicate A function that accepts up to three arguments. The every method calls
1433
+ * the predicate function for each element in the array until the predicate returns a value
1434
+ * which is coercible to the Boolean value false, or until the end of the array.
1435
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
1436
+ * If thisArg is omitted, undefined is used as the this value.
1437
+ */
1438
+ every<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): this is S[];
1439
+ /**
1440
+ * Determines whether all the members of an array satisfy the specified test.
1441
+ * @param predicate A function that accepts up to three arguments. The every method calls
1442
+ * the predicate function for each element in the array until the predicate returns a value
1443
+ * which is coercible to the Boolean value false, or until the end of the array.
1444
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
1445
+ * If thisArg is omitted, undefined is used as the this value.
1446
+ */
1447
+ every(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
1448
+ /**
1449
+ * Determines whether the specified callback function returns true for any element of an array.
1450
+ * @param predicate A function that accepts up to three arguments. The some method calls
1451
+ * the predicate function for each element in the array until the predicate returns a value
1452
+ * which is coercible to the Boolean value true, or until the end of the array.
1453
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
1454
+ * If thisArg is omitted, undefined is used as the this value.
1455
+ */
1456
+ some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
1457
+ /**
1458
+ * Performs the specified action for each element in an array.
1459
+ * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
1460
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
1461
+ */
1462
+ forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
1463
+ /**
1464
+ * Calls a defined callback function on each element of an array, and returns an array that contains the results.
1465
+ * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
1466
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
1467
+ */
1468
+ map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
1469
+ /**
1470
+ * Returns the elements of an array that meet the condition specified in a callback function.
1471
+ * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
1472
+ * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
1473
+ */
1474
+ filter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];
1475
+ /**
1476
+ * Returns the elements of an array that meet the condition specified in a callback function.
1477
+ * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
1478
+ * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
1479
+ */
1480
+ filter(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];
1481
+ /**
1482
+ * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
1483
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
1484
+ * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
1485
+ */
1486
+ reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
1487
+ reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
1488
+ /**
1489
+ * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
1490
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
1491
+ * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
1492
+ */
1493
+ reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
1494
+ /**
1495
+ * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
1496
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
1497
+ * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
1498
+ */
1499
+ reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
1500
+ reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
1501
+ /**
1502
+ * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
1503
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
1504
+ * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
1505
+ */
1506
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
1507
+
1508
+ [n: number]: T;
1509
+ }
1510
+
1511
+ interface ArrayConstructor {
1512
+ new (arrayLength?: number): any[];
1513
+ new <T>(arrayLength: number): T[];
1514
+ new <T>(...items: T[]): T[];
1515
+ (arrayLength?: number): any[];
1516
+ <T>(arrayLength: number): T[];
1517
+ <T>(...items: T[]): T[];
1518
+ isArray(arg: any): arg is any[];
1519
+ readonly prototype: any[];
1520
+ }
1521
+
1522
+ declare var Array: ArrayConstructor;
1523
+
1524
+ interface TypedPropertyDescriptor<T> {
1525
+ enumerable?: boolean;
1526
+ configurable?: boolean;
1527
+ writable?: boolean;
1528
+ value?: T;
1529
+ get?: () => T;
1530
+ set?: (value: T) => void;
1531
+ }
1532
+
1533
+ declare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;
1534
+
1535
+ interface PromiseLike<T> {
1536
+ /**
1537
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1538
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1539
+ * @param onrejected The callback to execute when the Promise is rejected.
1540
+ * @returns A Promise for the completion of which ever callback is executed.
1541
+ */
1542
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;
1543
+ }
1544
+
1545
+ /**
1546
+ * Represents the completion of an asynchronous operation
1547
+ */
1548
+ interface Promise<T> {
1549
+ /**
1550
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1551
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1552
+ * @param onrejected The callback to execute when the Promise is rejected.
1553
+ * @returns A Promise for the completion of which ever callback is executed.
1554
+ */
1555
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
1556
+
1557
+ /**
1558
+ * Attaches a callback for only the rejection of the Promise.
1559
+ * @param onrejected The callback to execute when the Promise is rejected.
1560
+ * @returns A Promise for the completion of the callback.
1561
+ */
1562
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
1563
+ }
1564
+
1565
+ /**
1566
+ * Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to `never`. This emulates the behavior of `await`.
1567
+ */
1568
+ type Awaited<T> = T extends null | undefined ? T : // special case for `null | undefined` when not in `--strictNullChecks` mode
1569
+ T extends object & { then(onfulfilled: infer F, ...args: infer _): any; } ? // `await` only unwraps object types with a callable `then`. Non-object types are not unwrapped
1570
+ F extends ((value: infer V, ...args: infer _) => any) ? // if the argument to `then` is callable, extracts the first argument
1571
+ Awaited<V> : // recursively unwrap the value
1572
+ never : // the argument to `then` was not callable
1573
+ T; // non-object or non-thenable
1574
+
1575
+ interface ArrayLike<T> {
1576
+ readonly length: number;
1577
+ readonly [n: number]: T;
1578
+ }
1579
+
1580
+ /**
1581
+ * Make all properties in T optional
1582
+ */
1583
+ type Partial<T> = {
1584
+ [P in keyof T]?: T[P];
1585
+ };
1586
+
1587
+ /**
1588
+ * Make all properties in T required
1589
+ */
1590
+ type Required<T> = {
1591
+ [P in keyof T]-?: T[P];
1592
+ };
1593
+
1594
+ /**
1595
+ * Make all properties in T readonly
1596
+ */
1597
+ type Readonly<T> = {
1598
+ readonly [P in keyof T]: T[P];
1599
+ };
1600
+
1601
+ /**
1602
+ * From T, pick a set of properties whose keys are in the union K
1603
+ */
1604
+ type Pick<T, K extends keyof T> = {
1605
+ [P in K]: T[P];
1606
+ };
1607
+
1608
+ /**
1609
+ * Construct a type with a set of properties K of type T
1610
+ */
1611
+ type Record<K extends keyof any, T> = {
1612
+ [P in K]: T;
1613
+ };
1614
+
1615
+ /**
1616
+ * Exclude from T those types that are assignable to U
1617
+ */
1618
+ type Exclude<T, U> = T extends U ? never : T;
1619
+
1620
+ /**
1621
+ * Extract from T those types that are assignable to U
1622
+ */
1623
+ type Extract<T, U> = T extends U ? T : never;
1624
+
1625
+ /**
1626
+ * Construct a type with the properties of T except for those in type K.
1627
+ */
1628
+ type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
1629
+
1630
+ /**
1631
+ * Exclude null and undefined from T
1632
+ */
1633
+ type NonNullable<T> = T & {};
1634
+
1635
+ /**
1636
+ * Obtain the parameters of a function type in a tuple
1637
+ */
1638
+ type Parameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never;
1639
+
1640
+ /**
1641
+ * Obtain the parameters of a constructor function type in a tuple
1642
+ */
1643
+ type ConstructorParameters<T extends abstract new (...args: any) => any> = T extends abstract new (...args: infer P) => any ? P : never;
1644
+
1645
+ /**
1646
+ * Obtain the return type of a function type
1647
+ */
1648
+ type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;
1649
+
1650
+ /**
1651
+ * Obtain the return type of a constructor function type
1652
+ */
1653
+ type InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;
1654
+
1655
+ /**
1656
+ * Convert string literal type to uppercase
1657
+ */
1658
+ type Uppercase<S extends string> = intrinsic;
1659
+
1660
+ /**
1661
+ * Convert string literal type to lowercase
1662
+ */
1663
+ type Lowercase<S extends string> = intrinsic;
1664
+
1665
+ /**
1666
+ * Convert first character of string literal type to uppercase
1667
+ */
1668
+ type Capitalize<S extends string> = intrinsic;
1669
+
1670
+ /**
1671
+ * Convert first character of string literal type to lowercase
1672
+ */
1673
+ type Uncapitalize<S extends string> = intrinsic;
1674
+
1675
+ /**
1676
+ * Marker for non-inference type position
1677
+ */
1678
+ type NoInfer<T> = intrinsic;
1679
+
1680
+ /**
1681
+ * Marker for contextual 'this' type
1682
+ */
1683
+ interface ThisType<T> {}
1684
+
1685
+ /**
1686
+ * Stores types to be used with WeakSet, WeakMap, WeakRef, and FinalizationRegistry
1687
+ */
1688
+ interface WeakKeyTypes {
1689
+ object: object;
1690
+ }
1691
+
1692
+ type WeakKey = WeakKeyTypes[keyof WeakKeyTypes];
1693
+
1694
+ /**
1695
+ * Represents a raw buffer of binary data, which is used to store data for the
1696
+ * different typed arrays. ArrayBuffers cannot be read from or written to directly,
1697
+ * but can be passed to a typed array or DataView Object to interpret the raw
1698
+ * buffer as needed.
1699
+ */
1700
+ interface ArrayBuffer {
1701
+ /**
1702
+ * Read-only. The length of the ArrayBuffer (in bytes).
1703
+ */
1704
+ readonly byteLength: number;
1705
+
1706
+ /**
1707
+ * Returns a section of an ArrayBuffer.
1708
+ */
1709
+ slice(begin?: number, end?: number): ArrayBuffer;
1710
+ }
1711
+
1712
+ /**
1713
+ * Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays.
1714
+ */
1715
+ interface ArrayBufferTypes {
1716
+ ArrayBuffer: ArrayBuffer;
1717
+ }
1718
+ type ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];
1719
+
1720
+ interface ArrayBufferConstructor {
1721
+ readonly prototype: ArrayBuffer;
1722
+ new (byteLength: number): ArrayBuffer;
1723
+ isView(arg: any): arg is ArrayBufferView;
1724
+ }
1725
+ declare var ArrayBuffer: ArrayBufferConstructor;
1726
+
1727
+ interface ArrayBufferView<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
1728
+ /**
1729
+ * The ArrayBuffer instance referenced by the array.
1730
+ */
1731
+ readonly buffer: TArrayBuffer;
1732
+
1733
+ /**
1734
+ * The length in bytes of the array.
1735
+ */
1736
+ readonly byteLength: number;
1737
+
1738
+ /**
1739
+ * The offset in bytes of the array.
1740
+ */
1741
+ readonly byteOffset: number;
1742
+ }
1743
+
1744
+ interface DataView<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
1745
+ readonly buffer: TArrayBuffer;
1746
+ readonly byteLength: number;
1747
+ readonly byteOffset: number;
1748
+ /**
1749
+ * Gets the Float32 value at the specified byte offset from the start of the view. There is
1750
+ * no alignment constraint; multi-byte values may be fetched from any offset.
1751
+ * @param byteOffset The place in the buffer at which the value should be retrieved.
1752
+ * @param littleEndian If false or undefined, a big-endian value should be read.
1753
+ */
1754
+ getFloat32(byteOffset: number, littleEndian?: boolean): number;
1755
+
1756
+ /**
1757
+ * Gets the Float64 value at the specified byte offset from the start of the view. There is
1758
+ * no alignment constraint; multi-byte values may be fetched from any offset.
1759
+ * @param byteOffset The place in the buffer at which the value should be retrieved.
1760
+ * @param littleEndian If false or undefined, a big-endian value should be read.
1761
+ */
1762
+ getFloat64(byteOffset: number, littleEndian?: boolean): number;
1763
+
1764
+ /**
1765
+ * Gets the Int8 value at the specified byte offset from the start of the view. There is
1766
+ * no alignment constraint; multi-byte values may be fetched from any offset.
1767
+ * @param byteOffset The place in the buffer at which the value should be retrieved.
1768
+ */
1769
+ getInt8(byteOffset: number): number;
1770
+
1771
+ /**
1772
+ * Gets the Int16 value at the specified byte offset from the start of the view. There is
1773
+ * no alignment constraint; multi-byte values may be fetched from any offset.
1774
+ * @param byteOffset The place in the buffer at which the value should be retrieved.
1775
+ * @param littleEndian If false or undefined, a big-endian value should be read.
1776
+ */
1777
+ getInt16(byteOffset: number, littleEndian?: boolean): number;
1778
+ /**
1779
+ * Gets the Int32 value at the specified byte offset from the start of the view. There is
1780
+ * no alignment constraint; multi-byte values may be fetched from any offset.
1781
+ * @param byteOffset The place in the buffer at which the value should be retrieved.
1782
+ * @param littleEndian If false or undefined, a big-endian value should be read.
1783
+ */
1784
+ getInt32(byteOffset: number, littleEndian?: boolean): number;
1785
+
1786
+ /**
1787
+ * Gets the Uint8 value at the specified byte offset from the start of the view. There is
1788
+ * no alignment constraint; multi-byte values may be fetched from any offset.
1789
+ * @param byteOffset The place in the buffer at which the value should be retrieved.
1790
+ */
1791
+ getUint8(byteOffset: number): number;
1792
+
1793
+ /**
1794
+ * Gets the Uint16 value at the specified byte offset from the start of the view. There is
1795
+ * no alignment constraint; multi-byte values may be fetched from any offset.
1796
+ * @param byteOffset The place in the buffer at which the value should be retrieved.
1797
+ * @param littleEndian If false or undefined, a big-endian value should be read.
1798
+ */
1799
+ getUint16(byteOffset: number, littleEndian?: boolean): number;
1800
+
1801
+ /**
1802
+ * Gets the Uint32 value at the specified byte offset from the start of the view. There is
1803
+ * no alignment constraint; multi-byte values may be fetched from any offset.
1804
+ * @param byteOffset The place in the buffer at which the value should be retrieved.
1805
+ * @param littleEndian If false or undefined, a big-endian value should be read.
1806
+ */
1807
+ getUint32(byteOffset: number, littleEndian?: boolean): number;
1808
+
1809
+ /**
1810
+ * Stores an Float32 value at the specified byte offset from the start of the view.
1811
+ * @param byteOffset The place in the buffer at which the value should be set.
1812
+ * @param value The value to set.
1813
+ * @param littleEndian If false or undefined, a big-endian value should be written.
1814
+ */
1815
+ setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
1816
+
1817
+ /**
1818
+ * Stores an Float64 value at the specified byte offset from the start of the view.
1819
+ * @param byteOffset The place in the buffer at which the value should be set.
1820
+ * @param value The value to set.
1821
+ * @param littleEndian If false or undefined, a big-endian value should be written.
1822
+ */
1823
+ setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
1824
+
1825
+ /**
1826
+ * Stores an Int8 value at the specified byte offset from the start of the view.
1827
+ * @param byteOffset The place in the buffer at which the value should be set.
1828
+ * @param value The value to set.
1829
+ */
1830
+ setInt8(byteOffset: number, value: number): void;
1831
+
1832
+ /**
1833
+ * Stores an Int16 value at the specified byte offset from the start of the view.
1834
+ * @param byteOffset The place in the buffer at which the value should be set.
1835
+ * @param value The value to set.
1836
+ * @param littleEndian If false or undefined, a big-endian value should be written.
1837
+ */
1838
+ setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
1839
+
1840
+ /**
1841
+ * Stores an Int32 value at the specified byte offset from the start of the view.
1842
+ * @param byteOffset The place in the buffer at which the value should be set.
1843
+ * @param value The value to set.
1844
+ * @param littleEndian If false or undefined, a big-endian value should be written.
1845
+ */
1846
+ setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
1847
+
1848
+ /**
1849
+ * Stores an Uint8 value at the specified byte offset from the start of the view.
1850
+ * @param byteOffset The place in the buffer at which the value should be set.
1851
+ * @param value The value to set.
1852
+ */
1853
+ setUint8(byteOffset: number, value: number): void;
1854
+
1855
+ /**
1856
+ * Stores an Uint16 value at the specified byte offset from the start of the view.
1857
+ * @param byteOffset The place in the buffer at which the value should be set.
1858
+ * @param value The value to set.
1859
+ * @param littleEndian If false or undefined, a big-endian value should be written.
1860
+ */
1861
+ setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
1862
+
1863
+ /**
1864
+ * Stores an Uint32 value at the specified byte offset from the start of the view.
1865
+ * @param byteOffset The place in the buffer at which the value should be set.
1866
+ * @param value The value to set.
1867
+ * @param littleEndian If false or undefined, a big-endian value should be written.
1868
+ */
1869
+ setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
1870
+ }
1871
+ interface DataViewConstructor {
1872
+ readonly prototype: DataView<ArrayBufferLike>;
1873
+ new <TArrayBuffer extends ArrayBufferLike & { BYTES_PER_ELEMENT?: never; }>(buffer: TArrayBuffer, byteOffset?: number, byteLength?: number): DataView<TArrayBuffer>;
1874
+ }
1875
+ declare var DataView: DataViewConstructor;
1876
+
1877
+ /**
1878
+ * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
1879
+ * number of bytes could not be allocated an exception is raised.
1880
+ */
1881
+ interface Int8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
1882
+ /**
1883
+ * The size in bytes of each element in the array.
1884
+ */
1885
+ readonly BYTES_PER_ELEMENT: number;
1886
+
1887
+ /**
1888
+ * The ArrayBuffer instance referenced by the array.
1889
+ */
1890
+ readonly buffer: TArrayBuffer;
1891
+
1892
+ /**
1893
+ * The length in bytes of the array.
1894
+ */
1895
+ readonly byteLength: number;
1896
+
1897
+ /**
1898
+ * The offset in bytes of the array.
1899
+ */
1900
+ readonly byteOffset: number;
1901
+
1902
+ /**
1903
+ * Returns the this object after copying a section of the array identified by start and end
1904
+ * to the same array starting at position target
1905
+ * @param target If target is negative, it is treated as length+target where length is the
1906
+ * length of the array.
1907
+ * @param start If start is negative, it is treated as length+start. If end is negative, it
1908
+ * is treated as length+end.
1909
+ * @param end If not specified, length of the this object is used as its default value.
1910
+ */
1911
+ copyWithin(target: number, start: number, end?: number): this;
1912
+
1913
+ /**
1914
+ * Determines whether all the members of an array satisfy the specified test.
1915
+ * @param predicate A function that accepts up to three arguments. The every method calls
1916
+ * the predicate function for each element in the array until the predicate returns a value
1917
+ * which is coercible to the Boolean value false, or until the end of the array.
1918
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
1919
+ * If thisArg is omitted, undefined is used as the this value.
1920
+ */
1921
+ every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;
1922
+
1923
+ /**
1924
+ * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
1925
+ * @param value value to fill array section with
1926
+ * @param start index to start filling the array at. If start is negative, it is treated as
1927
+ * length+start where length is the length of the array.
1928
+ * @param end index to stop filling the array at. If end is negative, it is treated as
1929
+ * length+end.
1930
+ */
1931
+ fill(value: number, start?: number, end?: number): this;
1932
+
1933
+ /**
1934
+ * Returns the elements of an array that meet the condition specified in a callback function.
1935
+ * @param predicate A function that accepts up to three arguments. The filter method calls
1936
+ * the predicate function one time for each element in the array.
1937
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
1938
+ * If thisArg is omitted, undefined is used as the this value.
1939
+ */
1940
+ filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Int8Array<ArrayBuffer>;
1941
+
1942
+ /**
1943
+ * Returns the value of the first element in the array where predicate is true, and undefined
1944
+ * otherwise.
1945
+ * @param predicate find calls predicate once for each element of the array, in ascending
1946
+ * order, until it finds one where predicate returns true. If such an element is found, find
1947
+ * immediately returns that element value. Otherwise, find returns undefined.
1948
+ * @param thisArg If provided, it will be used as the this value for each invocation of
1949
+ * predicate. If it is not provided, undefined is used instead.
1950
+ */
1951
+ find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined;
1952
+
1953
+ /**
1954
+ * Returns the index of the first element in the array where predicate is true, and -1
1955
+ * otherwise.
1956
+ * @param predicate find calls predicate once for each element of the array, in ascending
1957
+ * order, until it finds one where predicate returns true. If such an element is found,
1958
+ * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
1959
+ * @param thisArg If provided, it will be used as the this value for each invocation of
1960
+ * predicate. If it is not provided, undefined is used instead.
1961
+ */
1962
+ findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number;
1963
+
1964
+ /**
1965
+ * Performs the specified action for each element in an array.
1966
+ * @param callbackfn A function that accepts up to three arguments. forEach calls the
1967
+ * callbackfn function one time for each element in the array.
1968
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function.
1969
+ * If thisArg is omitted, undefined is used as the this value.
1970
+ */
1971
+ forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
1972
+
1973
+ /**
1974
+ * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
1975
+ * @param searchElement The value to locate in the array.
1976
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
1977
+ * search starts at index 0.
1978
+ */
1979
+ indexOf(searchElement: number, fromIndex?: number): number;
1980
+
1981
+ /**
1982
+ * Adds all the elements of an array separated by the specified separator string.
1983
+ * @param separator A string used to separate one element of an array from the next in the
1984
+ * resulting String. If omitted, the array elements are separated with a comma.
1985
+ */
1986
+ join(separator?: string): string;
1987
+
1988
+ /**
1989
+ * Returns the index of the last occurrence of a value in an array, or -1 if it is not present.
1990
+ * @param searchElement The value to locate in the array.
1991
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
1992
+ * search starts at index 0.
1993
+ */
1994
+ lastIndexOf(searchElement: number, fromIndex?: number): number;
1995
+
1996
+ /**
1997
+ * The length of the array.
1998
+ */
1999
+ readonly length: number;
2000
+
2001
+ /**
2002
+ * Calls a defined callback function on each element of an array, and returns an array that
2003
+ * contains the results.
2004
+ * @param callbackfn A function that accepts up to three arguments. The map method calls the
2005
+ * callbackfn function one time for each element in the array.
2006
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2007
+ * If thisArg is omitted, undefined is used as the this value.
2008
+ */
2009
+ map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Int8Array<ArrayBuffer>;
2010
+
2011
+ /**
2012
+ * Calls the specified callback function for all the elements in an array. The return value of
2013
+ * the callback function is the accumulated result, and is provided as an argument in the next
2014
+ * call to the callback function.
2015
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2016
+ * callbackfn function one time for each element in the array.
2017
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
2018
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
2019
+ * instead of an array value.
2020
+ */
2021
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
2022
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;
2023
+
2024
+ /**
2025
+ * Calls the specified callback function for all the elements in an array. The return value of
2026
+ * the callback function is the accumulated result, and is provided as an argument in the next
2027
+ * call to the callback function.
2028
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2029
+ * callbackfn function one time for each element in the array.
2030
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
2031
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
2032
+ * instead of an array value.
2033
+ */
2034
+ reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;
2035
+
2036
+ /**
2037
+ * Calls the specified callback function for all the elements in an array, in descending order.
2038
+ * The return value of the callback function is the accumulated result, and is provided as an
2039
+ * argument in the next call to the callback function.
2040
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2041
+ * the callbackfn function one time for each element in the array.
2042
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
2043
+ * the accumulation. The first call to the callbackfn function provides this value as an
2044
+ * argument instead of an array value.
2045
+ */
2046
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
2047
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;
2048
+
2049
+ /**
2050
+ * Calls the specified callback function for all the elements in an array, in descending order.
2051
+ * The return value of the callback function is the accumulated result, and is provided as an
2052
+ * argument in the next call to the callback function.
2053
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2054
+ * the callbackfn function one time for each element in the array.
2055
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
2056
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
2057
+ * instead of an array value.
2058
+ */
2059
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;
2060
+
2061
+ /**
2062
+ * Reverses the elements in an Array.
2063
+ */
2064
+ reverse(): this;
2065
+
2066
+ /**
2067
+ * Sets a value or an array of values.
2068
+ * @param array A typed or untyped array of values to set.
2069
+ * @param offset The index in the current array at which the values are to be written.
2070
+ */
2071
+ set(array: ArrayLike<number>, offset?: number): void;
2072
+
2073
+ /**
2074
+ * Returns a section of an array.
2075
+ * @param start The beginning of the specified portion of the array.
2076
+ * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
2077
+ */
2078
+ slice(start?: number, end?: number): Int8Array<ArrayBuffer>;
2079
+
2080
+ /**
2081
+ * Determines whether the specified callback function returns true for any element of an array.
2082
+ * @param predicate A function that accepts up to three arguments. The some method calls
2083
+ * the predicate function for each element in the array until the predicate returns a value
2084
+ * which is coercible to the Boolean value true, or until the end of the array.
2085
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
2086
+ * If thisArg is omitted, undefined is used as the this value.
2087
+ */
2088
+ some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;
2089
+
2090
+ /**
2091
+ * Sorts an array.
2092
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
2093
+ * a negative value if first argument is less than second argument, zero if they're equal and a positive
2094
+ * value otherwise. If omitted, the elements are sorted in ascending order.
2095
+ * ```ts
2096
+ * [11,2,22,1].sort((a, b) => a - b)
2097
+ * ```
2098
+ */
2099
+ sort(compareFn?: (a: number, b: number) => number): this;
2100
+
2101
+ /**
2102
+ * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements
2103
+ * at begin, inclusive, up to end, exclusive.
2104
+ * @param begin The index of the beginning of the array.
2105
+ * @param end The index of the end of the array.
2106
+ */
2107
+ subarray(begin?: number, end?: number): Int8Array<TArrayBuffer>;
2108
+
2109
+ /**
2110
+ * Converts a number to a string by using the current locale.
2111
+ */
2112
+ toLocaleString(): string;
2113
+
2114
+ /**
2115
+ * Returns a string representation of an array.
2116
+ */
2117
+ toString(): string;
2118
+
2119
+ /** Returns the primitive value of the specified object. */
2120
+ valueOf(): this;
2121
+
2122
+ [index: number]: number;
2123
+ }
2124
+ interface Int8ArrayConstructor {
2125
+ readonly prototype: Int8Array<ArrayBufferLike>;
2126
+ new (length: number): Int8Array<ArrayBuffer>;
2127
+ new (array: ArrayLike<number>): Int8Array<ArrayBuffer>;
2128
+ new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Int8Array<TArrayBuffer>;
2129
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array<ArrayBuffer>;
2130
+ new (array: ArrayLike<number> | ArrayBuffer): Int8Array<ArrayBuffer>;
2131
+
2132
+ /**
2133
+ * The size in bytes of each element in the array.
2134
+ */
2135
+ readonly BYTES_PER_ELEMENT: number;
2136
+
2137
+ /**
2138
+ * Returns a new array from a set of elements.
2139
+ * @param items A set of elements to include in the new array object.
2140
+ */
2141
+ of(...items: number[]): Int8Array<ArrayBuffer>;
2142
+
2143
+ /**
2144
+ * Creates an array from an array-like or iterable object.
2145
+ * @param arrayLike An array-like object to convert to an array.
2146
+ */
2147
+ from(arrayLike: ArrayLike<number>): Int8Array<ArrayBuffer>;
2148
+
2149
+ /**
2150
+ * Creates an array from an array-like or iterable object.
2151
+ * @param arrayLike An array-like object to convert to an array.
2152
+ * @param mapfn A mapping function to call on every element of the array.
2153
+ * @param thisArg Value of 'this' used to invoke the mapfn.
2154
+ */
2155
+ from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array<ArrayBuffer>;
2156
+ }
2157
+ declare var Int8Array: Int8ArrayConstructor;
2158
+
2159
+ /**
2160
+ * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
2161
+ * requested number of bytes could not be allocated an exception is raised.
2162
+ */
2163
+ interface Uint8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
2164
+ /**
2165
+ * The size in bytes of each element in the array.
2166
+ */
2167
+ readonly BYTES_PER_ELEMENT: number;
2168
+
2169
+ /**
2170
+ * The ArrayBuffer instance referenced by the array.
2171
+ */
2172
+ readonly buffer: TArrayBuffer;
2173
+
2174
+ /**
2175
+ * The length in bytes of the array.
2176
+ */
2177
+ readonly byteLength: number;
2178
+
2179
+ /**
2180
+ * The offset in bytes of the array.
2181
+ */
2182
+ readonly byteOffset: number;
2183
+
2184
+ /**
2185
+ * Returns the this object after copying a section of the array identified by start and end
2186
+ * to the same array starting at position target
2187
+ * @param target If target is negative, it is treated as length+target where length is the
2188
+ * length of the array.
2189
+ * @param start If start is negative, it is treated as length+start. If end is negative, it
2190
+ * is treated as length+end.
2191
+ * @param end If not specified, length of the this object is used as its default value.
2192
+ */
2193
+ copyWithin(target: number, start: number, end?: number): this;
2194
+
2195
+ /**
2196
+ * Determines whether all the members of an array satisfy the specified test.
2197
+ * @param predicate A function that accepts up to three arguments. The every method calls
2198
+ * the predicate function for each element in the array until the predicate returns a value
2199
+ * which is coercible to the Boolean value false, or until the end of the array.
2200
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
2201
+ * If thisArg is omitted, undefined is used as the this value.
2202
+ */
2203
+ every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;
2204
+
2205
+ /**
2206
+ * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
2207
+ * @param value value to fill array section with
2208
+ * @param start index to start filling the array at. If start is negative, it is treated as
2209
+ * length+start where length is the length of the array.
2210
+ * @param end index to stop filling the array at. If end is negative, it is treated as
2211
+ * length+end.
2212
+ */
2213
+ fill(value: number, start?: number, end?: number): this;
2214
+
2215
+ /**
2216
+ * Returns the elements of an array that meet the condition specified in a callback function.
2217
+ * @param predicate A function that accepts up to three arguments. The filter method calls
2218
+ * the predicate function one time for each element in the array.
2219
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
2220
+ * If thisArg is omitted, undefined is used as the this value.
2221
+ */
2222
+ filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Uint8Array<ArrayBuffer>;
2223
+
2224
+ /**
2225
+ * Returns the value of the first element in the array where predicate is true, and undefined
2226
+ * otherwise.
2227
+ * @param predicate find calls predicate once for each element of the array, in ascending
2228
+ * order, until it finds one where predicate returns true. If such an element is found, find
2229
+ * immediately returns that element value. Otherwise, find returns undefined.
2230
+ * @param thisArg If provided, it will be used as the this value for each invocation of
2231
+ * predicate. If it is not provided, undefined is used instead.
2232
+ */
2233
+ find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined;
2234
+
2235
+ /**
2236
+ * Returns the index of the first element in the array where predicate is true, and -1
2237
+ * otherwise.
2238
+ * @param predicate find calls predicate once for each element of the array, in ascending
2239
+ * order, until it finds one where predicate returns true. If such an element is found,
2240
+ * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
2241
+ * @param thisArg If provided, it will be used as the this value for each invocation of
2242
+ * predicate. If it is not provided, undefined is used instead.
2243
+ */
2244
+ findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number;
2245
+
2246
+ /**
2247
+ * Performs the specified action for each element in an array.
2248
+ * @param callbackfn A function that accepts up to three arguments. forEach calls the
2249
+ * callbackfn function one time for each element in the array.
2250
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2251
+ * If thisArg is omitted, undefined is used as the this value.
2252
+ */
2253
+ forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
2254
+
2255
+ /**
2256
+ * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
2257
+ * @param searchElement The value to locate in the array.
2258
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2259
+ * search starts at index 0.
2260
+ */
2261
+ indexOf(searchElement: number, fromIndex?: number): number;
2262
+
2263
+ /**
2264
+ * Adds all the elements of an array separated by the specified separator string.
2265
+ * @param separator A string used to separate one element of an array from the next in the
2266
+ * resulting String. If omitted, the array elements are separated with a comma.
2267
+ */
2268
+ join(separator?: string): string;
2269
+
2270
+ /**
2271
+ * Returns the index of the last occurrence of a value in an array, or -1 if it is not present.
2272
+ * @param searchElement The value to locate in the array.
2273
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2274
+ * search starts at index 0.
2275
+ */
2276
+ lastIndexOf(searchElement: number, fromIndex?: number): number;
2277
+
2278
+ /**
2279
+ * The length of the array.
2280
+ */
2281
+ readonly length: number;
2282
+
2283
+ /**
2284
+ * Calls a defined callback function on each element of an array, and returns an array that
2285
+ * contains the results.
2286
+ * @param callbackfn A function that accepts up to three arguments. The map method calls the
2287
+ * callbackfn function one time for each element in the array.
2288
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2289
+ * If thisArg is omitted, undefined is used as the this value.
2290
+ */
2291
+ map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
2292
+
2293
+ /**
2294
+ * Calls the specified callback function for all the elements in an array. The return value of
2295
+ * the callback function is the accumulated result, and is provided as an argument in the next
2296
+ * call to the callback function.
2297
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2298
+ * callbackfn function one time for each element in the array.
2299
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
2300
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
2301
+ * instead of an array value.
2302
+ */
2303
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
2304
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;
2305
+
2306
+ /**
2307
+ * Calls the specified callback function for all the elements in an array. The return value of
2308
+ * the callback function is the accumulated result, and is provided as an argument in the next
2309
+ * call to the callback function.
2310
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2311
+ * callbackfn function one time for each element in the array.
2312
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
2313
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
2314
+ * instead of an array value.
2315
+ */
2316
+ reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;
2317
+
2318
+ /**
2319
+ * Calls the specified callback function for all the elements in an array, in descending order.
2320
+ * The return value of the callback function is the accumulated result, and is provided as an
2321
+ * argument in the next call to the callback function.
2322
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2323
+ * the callbackfn function one time for each element in the array.
2324
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
2325
+ * the accumulation. The first call to the callbackfn function provides this value as an
2326
+ * argument instead of an array value.
2327
+ */
2328
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
2329
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;
2330
+
2331
+ /**
2332
+ * Calls the specified callback function for all the elements in an array, in descending order.
2333
+ * The return value of the callback function is the accumulated result, and is provided as an
2334
+ * argument in the next call to the callback function.
2335
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2336
+ * the callbackfn function one time for each element in the array.
2337
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
2338
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
2339
+ * instead of an array value.
2340
+ */
2341
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;
2342
+
2343
+ /**
2344
+ * Reverses the elements in an Array.
2345
+ */
2346
+ reverse(): this;
2347
+
2348
+ /**
2349
+ * Sets a value or an array of values.
2350
+ * @param array A typed or untyped array of values to set.
2351
+ * @param offset The index in the current array at which the values are to be written.
2352
+ */
2353
+ set(array: ArrayLike<number>, offset?: number): void;
2354
+
2355
+ /**
2356
+ * Returns a section of an array.
2357
+ * @param start The beginning of the specified portion of the array.
2358
+ * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
2359
+ */
2360
+ slice(start?: number, end?: number): Uint8Array<ArrayBuffer>;
2361
+
2362
+ /**
2363
+ * Determines whether the specified callback function returns true for any element of an array.
2364
+ * @param predicate A function that accepts up to three arguments. The some method calls
2365
+ * the predicate function for each element in the array until the predicate returns a value
2366
+ * which is coercible to the Boolean value true, or until the end of the array.
2367
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
2368
+ * If thisArg is omitted, undefined is used as the this value.
2369
+ */
2370
+ some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;
2371
+
2372
+ /**
2373
+ * Sorts an array.
2374
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
2375
+ * a negative value if first argument is less than second argument, zero if they're equal and a positive
2376
+ * value otherwise. If omitted, the elements are sorted in ascending order.
2377
+ * ```ts
2378
+ * [11,2,22,1].sort((a, b) => a - b)
2379
+ * ```
2380
+ */
2381
+ sort(compareFn?: (a: number, b: number) => number): this;
2382
+
2383
+ /**
2384
+ * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements
2385
+ * at begin, inclusive, up to end, exclusive.
2386
+ * @param begin The index of the beginning of the array.
2387
+ * @param end The index of the end of the array.
2388
+ */
2389
+ subarray(begin?: number, end?: number): Uint8Array<TArrayBuffer>;
2390
+
2391
+ /**
2392
+ * Converts a number to a string by using the current locale.
2393
+ */
2394
+ toLocaleString(): string;
2395
+
2396
+ /**
2397
+ * Returns a string representation of an array.
2398
+ */
2399
+ toString(): string;
2400
+
2401
+ /** Returns the primitive value of the specified object. */
2402
+ valueOf(): this;
2403
+
2404
+ [index: number]: number;
2405
+ }
2406
+ interface Uint8ArrayConstructor {
2407
+ readonly prototype: Uint8Array<ArrayBufferLike>;
2408
+ new (length: number): Uint8Array<ArrayBuffer>;
2409
+ new (array: ArrayLike<number>): Uint8Array<ArrayBuffer>;
2410
+ new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Uint8Array<TArrayBuffer>;
2411
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8Array<ArrayBuffer>;
2412
+ new (array: ArrayLike<number> | ArrayBuffer): Uint8Array<ArrayBuffer>;
2413
+
2414
+ /**
2415
+ * The size in bytes of each element in the array.
2416
+ */
2417
+ readonly BYTES_PER_ELEMENT: number;
2418
+
2419
+ /**
2420
+ * Returns a new array from a set of elements.
2421
+ * @param items A set of elements to include in the new array object.
2422
+ */
2423
+ of(...items: number[]): Uint8Array<ArrayBuffer>;
2424
+
2425
+ /**
2426
+ * Creates an array from an array-like or iterable object.
2427
+ * @param arrayLike An array-like object to convert to an array.
2428
+ */
2429
+ from(arrayLike: ArrayLike<number>): Uint8Array<ArrayBuffer>;
2430
+
2431
+ /**
2432
+ * Creates an array from an array-like or iterable object.
2433
+ * @param arrayLike An array-like object to convert to an array.
2434
+ * @param mapfn A mapping function to call on every element of the array.
2435
+ * @param thisArg Value of 'this' used to invoke the mapfn.
2436
+ */
2437
+ from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
2438
+ }
2439
+ declare var Uint8Array: Uint8ArrayConstructor;
2440
+
2441
+ /**
2442
+ * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
2443
+ * If the requested number of bytes could not be allocated an exception is raised.
2444
+ */
2445
+ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
2446
+ /**
2447
+ * The size in bytes of each element in the array.
2448
+ */
2449
+ readonly BYTES_PER_ELEMENT: number;
2450
+
2451
+ /**
2452
+ * The ArrayBuffer instance referenced by the array.
2453
+ */
2454
+ readonly buffer: TArrayBuffer;
2455
+
2456
+ /**
2457
+ * The length in bytes of the array.
2458
+ */
2459
+ readonly byteLength: number;
2460
+
2461
+ /**
2462
+ * The offset in bytes of the array.
2463
+ */
2464
+ readonly byteOffset: number;
2465
+
2466
+ /**
2467
+ * Returns the this object after copying a section of the array identified by start and end
2468
+ * to the same array starting at position target
2469
+ * @param target If target is negative, it is treated as length+target where length is the
2470
+ * length of the array.
2471
+ * @param start If start is negative, it is treated as length+start. If end is negative, it
2472
+ * is treated as length+end.
2473
+ * @param end If not specified, length of the this object is used as its default value.
2474
+ */
2475
+ copyWithin(target: number, start: number, end?: number): this;
2476
+
2477
+ /**
2478
+ * Determines whether all the members of an array satisfy the specified test.
2479
+ * @param predicate A function that accepts up to three arguments. The every method calls
2480
+ * the predicate function for each element in the array until the predicate returns a value
2481
+ * which is coercible to the Boolean value false, or until the end of the array.
2482
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
2483
+ * If thisArg is omitted, undefined is used as the this value.
2484
+ */
2485
+ every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;
2486
+
2487
+ /**
2488
+ * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
2489
+ * @param value value to fill array section with
2490
+ * @param start index to start filling the array at. If start is negative, it is treated as
2491
+ * length+start where length is the length of the array.
2492
+ * @param end index to stop filling the array at. If end is negative, it is treated as
2493
+ * length+end.
2494
+ */
2495
+ fill(value: number, start?: number, end?: number): this;
2496
+
2497
+ /**
2498
+ * Returns the elements of an array that meet the condition specified in a callback function.
2499
+ * @param predicate A function that accepts up to three arguments. The filter method calls
2500
+ * the predicate function one time for each element in the array.
2501
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
2502
+ * If thisArg is omitted, undefined is used as the this value.
2503
+ */
2504
+ filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Uint8ClampedArray<ArrayBuffer>;
2505
+
2506
+ /**
2507
+ * Returns the value of the first element in the array where predicate is true, and undefined
2508
+ * otherwise.
2509
+ * @param predicate find calls predicate once for each element of the array, in ascending
2510
+ * order, until it finds one where predicate returns true. If such an element is found, find
2511
+ * immediately returns that element value. Otherwise, find returns undefined.
2512
+ * @param thisArg If provided, it will be used as the this value for each invocation of
2513
+ * predicate. If it is not provided, undefined is used instead.
2514
+ */
2515
+ find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined;
2516
+
2517
+ /**
2518
+ * Returns the index of the first element in the array where predicate is true, and -1
2519
+ * otherwise.
2520
+ * @param predicate find calls predicate once for each element of the array, in ascending
2521
+ * order, until it finds one where predicate returns true. If such an element is found,
2522
+ * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
2523
+ * @param thisArg If provided, it will be used as the this value for each invocation of
2524
+ * predicate. If it is not provided, undefined is used instead.
2525
+ */
2526
+ findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number;
2527
+
2528
+ /**
2529
+ * Performs the specified action for each element in an array.
2530
+ * @param callbackfn A function that accepts up to three arguments. forEach calls the
2531
+ * callbackfn function one time for each element in the array.
2532
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2533
+ * If thisArg is omitted, undefined is used as the this value.
2534
+ */
2535
+ forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
2536
+
2537
+ /**
2538
+ * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
2539
+ * @param searchElement The value to locate in the array.
2540
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2541
+ * search starts at index 0.
2542
+ */
2543
+ indexOf(searchElement: number, fromIndex?: number): number;
2544
+
2545
+ /**
2546
+ * Adds all the elements of an array separated by the specified separator string.
2547
+ * @param separator A string used to separate one element of an array from the next in the
2548
+ * resulting String. If omitted, the array elements are separated with a comma.
2549
+ */
2550
+ join(separator?: string): string;
2551
+
2552
+ /**
2553
+ * Returns the index of the last occurrence of a value in an array, or -1 if it is not present.
2554
+ * @param searchElement The value to locate in the array.
2555
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2556
+ * search starts at index 0.
2557
+ */
2558
+ lastIndexOf(searchElement: number, fromIndex?: number): number;
2559
+
2560
+ /**
2561
+ * The length of the array.
2562
+ */
2563
+ readonly length: number;
2564
+
2565
+ /**
2566
+ * Calls a defined callback function on each element of an array, and returns an array that
2567
+ * contains the results.
2568
+ * @param callbackfn A function that accepts up to three arguments. The map method calls the
2569
+ * callbackfn function one time for each element in the array.
2570
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2571
+ * If thisArg is omitted, undefined is used as the this value.
2572
+ */
2573
+ map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Uint8ClampedArray<ArrayBuffer>;
2574
+
2575
+ /**
2576
+ * Calls the specified callback function for all the elements in an array. The return value of
2577
+ * the callback function is the accumulated result, and is provided as an argument in the next
2578
+ * call to the callback function.
2579
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2580
+ * callbackfn function one time for each element in the array.
2581
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
2582
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
2583
+ * instead of an array value.
2584
+ */
2585
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
2586
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;
2587
+
2588
+ /**
2589
+ * Calls the specified callback function for all the elements in an array. The return value of
2590
+ * the callback function is the accumulated result, and is provided as an argument in the next
2591
+ * call to the callback function.
2592
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2593
+ * callbackfn function one time for each element in the array.
2594
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
2595
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
2596
+ * instead of an array value.
2597
+ */
2598
+ reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;
2599
+
2600
+ /**
2601
+ * Calls the specified callback function for all the elements in an array, in descending order.
2602
+ * The return value of the callback function is the accumulated result, and is provided as an
2603
+ * argument in the next call to the callback function.
2604
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2605
+ * the callbackfn function one time for each element in the array.
2606
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
2607
+ * the accumulation. The first call to the callbackfn function provides this value as an
2608
+ * argument instead of an array value.
2609
+ */
2610
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
2611
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;
2612
+
2613
+ /**
2614
+ * Calls the specified callback function for all the elements in an array, in descending order.
2615
+ * The return value of the callback function is the accumulated result, and is provided as an
2616
+ * argument in the next call to the callback function.
2617
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2618
+ * the callbackfn function one time for each element in the array.
2619
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
2620
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
2621
+ * instead of an array value.
2622
+ */
2623
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;
2624
+
2625
+ /**
2626
+ * Reverses the elements in an Array.
2627
+ */
2628
+ reverse(): this;
2629
+
2630
+ /**
2631
+ * Sets a value or an array of values.
2632
+ * @param array A typed or untyped array of values to set.
2633
+ * @param offset The index in the current array at which the values are to be written.
2634
+ */
2635
+ set(array: ArrayLike<number>, offset?: number): void;
2636
+
2637
+ /**
2638
+ * Returns a section of an array.
2639
+ * @param start The beginning of the specified portion of the array.
2640
+ * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
2641
+ */
2642
+ slice(start?: number, end?: number): Uint8ClampedArray<ArrayBuffer>;
2643
+
2644
+ /**
2645
+ * Determines whether the specified callback function returns true for any element of an array.
2646
+ * @param predicate A function that accepts up to three arguments. The some method calls
2647
+ * the predicate function for each element in the array until the predicate returns a value
2648
+ * which is coercible to the Boolean value true, or until the end of the array.
2649
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
2650
+ * If thisArg is omitted, undefined is used as the this value.
2651
+ */
2652
+ some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;
2653
+
2654
+ /**
2655
+ * Sorts an array.
2656
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
2657
+ * a negative value if first argument is less than second argument, zero if they're equal and a positive
2658
+ * value otherwise. If omitted, the elements are sorted in ascending order.
2659
+ * ```ts
2660
+ * [11,2,22,1].sort((a, b) => a - b)
2661
+ * ```
2662
+ */
2663
+ sort(compareFn?: (a: number, b: number) => number): this;
2664
+
2665
+ /**
2666
+ * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements
2667
+ * at begin, inclusive, up to end, exclusive.
2668
+ * @param begin The index of the beginning of the array.
2669
+ * @param end The index of the end of the array.
2670
+ */
2671
+ subarray(begin?: number, end?: number): Uint8ClampedArray<TArrayBuffer>;
2672
+
2673
+ /**
2674
+ * Converts a number to a string by using the current locale.
2675
+ */
2676
+ toLocaleString(): string;
2677
+
2678
+ /**
2679
+ * Returns a string representation of an array.
2680
+ */
2681
+ toString(): string;
2682
+
2683
+ /** Returns the primitive value of the specified object. */
2684
+ valueOf(): this;
2685
+
2686
+ [index: number]: number;
2687
+ }
2688
+ interface Uint8ClampedArrayConstructor {
2689
+ readonly prototype: Uint8ClampedArray<ArrayBufferLike>;
2690
+ new (length: number): Uint8ClampedArray<ArrayBuffer>;
2691
+ new (array: ArrayLike<number>): Uint8ClampedArray<ArrayBuffer>;
2692
+ new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Uint8ClampedArray<TArrayBuffer>;
2693
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8ClampedArray<ArrayBuffer>;
2694
+ new (array: ArrayLike<number> | ArrayBuffer): Uint8ClampedArray<ArrayBuffer>;
2695
+
2696
+ /**
2697
+ * The size in bytes of each element in the array.
2698
+ */
2699
+ readonly BYTES_PER_ELEMENT: number;
2700
+
2701
+ /**
2702
+ * Returns a new array from a set of elements.
2703
+ * @param items A set of elements to include in the new array object.
2704
+ */
2705
+ of(...items: number[]): Uint8ClampedArray<ArrayBuffer>;
2706
+
2707
+ /**
2708
+ * Creates an array from an array-like or iterable object.
2709
+ * @param arrayLike An array-like object to convert to an array.
2710
+ */
2711
+ from(arrayLike: ArrayLike<number>): Uint8ClampedArray<ArrayBuffer>;
2712
+
2713
+ /**
2714
+ * Creates an array from an array-like or iterable object.
2715
+ * @param arrayLike An array-like object to convert to an array.
2716
+ * @param mapfn A mapping function to call on every element of the array.
2717
+ * @param thisArg Value of 'this' used to invoke the mapfn.
2718
+ */
2719
+ from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray<ArrayBuffer>;
2720
+ }
2721
+ declare var Uint8ClampedArray: Uint8ClampedArrayConstructor;
2722
+
2723
+ /**
2724
+ * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
2725
+ * requested number of bytes could not be allocated an exception is raised.
2726
+ */
2727
+ interface Int16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
2728
+ /**
2729
+ * The size in bytes of each element in the array.
2730
+ */
2731
+ readonly BYTES_PER_ELEMENT: number;
2732
+
2733
+ /**
2734
+ * The ArrayBuffer instance referenced by the array.
2735
+ */
2736
+ readonly buffer: TArrayBuffer;
2737
+
2738
+ /**
2739
+ * The length in bytes of the array.
2740
+ */
2741
+ readonly byteLength: number;
2742
+
2743
+ /**
2744
+ * The offset in bytes of the array.
2745
+ */
2746
+ readonly byteOffset: number;
2747
+
2748
+ /**
2749
+ * Returns the this object after copying a section of the array identified by start and end
2750
+ * to the same array starting at position target
2751
+ * @param target If target is negative, it is treated as length+target where length is the
2752
+ * length of the array.
2753
+ * @param start If start is negative, it is treated as length+start. If end is negative, it
2754
+ * is treated as length+end.
2755
+ * @param end If not specified, length of the this object is used as its default value.
2756
+ */
2757
+ copyWithin(target: number, start: number, end?: number): this;
2758
+
2759
+ /**
2760
+ * Determines whether all the members of an array satisfy the specified test.
2761
+ * @param predicate A function that accepts up to three arguments. The every method calls
2762
+ * the predicate function for each element in the array until the predicate returns a value
2763
+ * which is coercible to the Boolean value false, or until the end of the array.
2764
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
2765
+ * If thisArg is omitted, undefined is used as the this value.
2766
+ */
2767
+ every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;
2768
+
2769
+ /**
2770
+ * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
2771
+ * @param value value to fill array section with
2772
+ * @param start index to start filling the array at. If start is negative, it is treated as
2773
+ * length+start where length is the length of the array.
2774
+ * @param end index to stop filling the array at. If end is negative, it is treated as
2775
+ * length+end.
2776
+ */
2777
+ fill(value: number, start?: number, end?: number): this;
2778
+
2779
+ /**
2780
+ * Returns the elements of an array that meet the condition specified in a callback function.
2781
+ * @param predicate A function that accepts up to three arguments. The filter method calls
2782
+ * the predicate function one time for each element in the array.
2783
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
2784
+ * If thisArg is omitted, undefined is used as the this value.
2785
+ */
2786
+ filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Int16Array<ArrayBuffer>;
2787
+
2788
+ /**
2789
+ * Returns the value of the first element in the array where predicate is true, and undefined
2790
+ * otherwise.
2791
+ * @param predicate find calls predicate once for each element of the array, in ascending
2792
+ * order, until it finds one where predicate returns true. If such an element is found, find
2793
+ * immediately returns that element value. Otherwise, find returns undefined.
2794
+ * @param thisArg If provided, it will be used as the this value for each invocation of
2795
+ * predicate. If it is not provided, undefined is used instead.
2796
+ */
2797
+ find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined;
2798
+
2799
+ /**
2800
+ * Returns the index of the first element in the array where predicate is true, and -1
2801
+ * otherwise.
2802
+ * @param predicate find calls predicate once for each element of the array, in ascending
2803
+ * order, until it finds one where predicate returns true. If such an element is found,
2804
+ * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
2805
+ * @param thisArg If provided, it will be used as the this value for each invocation of
2806
+ * predicate. If it is not provided, undefined is used instead.
2807
+ */
2808
+ findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number;
2809
+
2810
+ /**
2811
+ * Performs the specified action for each element in an array.
2812
+ * @param callbackfn A function that accepts up to three arguments. forEach calls the
2813
+ * callbackfn function one time for each element in the array.
2814
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2815
+ * If thisArg is omitted, undefined is used as the this value.
2816
+ */
2817
+ forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
2818
+ /**
2819
+ * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
2820
+ * @param searchElement The value to locate in the array.
2821
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2822
+ * search starts at index 0.
2823
+ */
2824
+ indexOf(searchElement: number, fromIndex?: number): number;
2825
+
2826
+ /**
2827
+ * Adds all the elements of an array separated by the specified separator string.
2828
+ * @param separator A string used to separate one element of an array from the next in the
2829
+ * resulting String. If omitted, the array elements are separated with a comma.
2830
+ */
2831
+ join(separator?: string): string;
2832
+
2833
+ /**
2834
+ * Returns the index of the last occurrence of a value in an array, or -1 if it is not present.
2835
+ * @param searchElement The value to locate in the array.
2836
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2837
+ * search starts at index 0.
2838
+ */
2839
+ lastIndexOf(searchElement: number, fromIndex?: number): number;
2840
+
2841
+ /**
2842
+ * The length of the array.
2843
+ */
2844
+ readonly length: number;
2845
+
2846
+ /**
2847
+ * Calls a defined callback function on each element of an array, and returns an array that
2848
+ * contains the results.
2849
+ * @param callbackfn A function that accepts up to three arguments. The map method calls the
2850
+ * callbackfn function one time for each element in the array.
2851
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2852
+ * If thisArg is omitted, undefined is used as the this value.
2853
+ */
2854
+ map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Int16Array<ArrayBuffer>;
2855
+
2856
+ /**
2857
+ * Calls the specified callback function for all the elements in an array. The return value of
2858
+ * the callback function is the accumulated result, and is provided as an argument in the next
2859
+ * call to the callback function.
2860
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2861
+ * callbackfn function one time for each element in the array.
2862
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
2863
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
2864
+ * instead of an array value.
2865
+ */
2866
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
2867
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;
2868
+
2869
+ /**
2870
+ * Calls the specified callback function for all the elements in an array. The return value of
2871
+ * the callback function is the accumulated result, and is provided as an argument in the next
2872
+ * call to the callback function.
2873
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2874
+ * callbackfn function one time for each element in the array.
2875
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
2876
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
2877
+ * instead of an array value.
2878
+ */
2879
+ reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;
2880
+
2881
+ /**
2882
+ * Calls the specified callback function for all the elements in an array, in descending order.
2883
+ * The return value of the callback function is the accumulated result, and is provided as an
2884
+ * argument in the next call to the callback function.
2885
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2886
+ * the callbackfn function one time for each element in the array.
2887
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
2888
+ * the accumulation. The first call to the callbackfn function provides this value as an
2889
+ * argument instead of an array value.
2890
+ */
2891
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
2892
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;
2893
+
2894
+ /**
2895
+ * Calls the specified callback function for all the elements in an array, in descending order.
2896
+ * The return value of the callback function is the accumulated result, and is provided as an
2897
+ * argument in the next call to the callback function.
2898
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2899
+ * the callbackfn function one time for each element in the array.
2900
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
2901
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
2902
+ * instead of an array value.
2903
+ */
2904
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;
2905
+
2906
+ /**
2907
+ * Reverses the elements in an Array.
2908
+ */
2909
+ reverse(): this;
2910
+
2911
+ /**
2912
+ * Sets a value or an array of values.
2913
+ * @param array A typed or untyped array of values to set.
2914
+ * @param offset The index in the current array at which the values are to be written.
2915
+ */
2916
+ set(array: ArrayLike<number>, offset?: number): void;
2917
+
2918
+ /**
2919
+ * Returns a section of an array.
2920
+ * @param start The beginning of the specified portion of the array.
2921
+ * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
2922
+ */
2923
+ slice(start?: number, end?: number): Int16Array<ArrayBuffer>;
2924
+
2925
+ /**
2926
+ * Determines whether the specified callback function returns true for any element of an array.
2927
+ * @param predicate A function that accepts up to three arguments. The some method calls
2928
+ * the predicate function for each element in the array until the predicate returns a value
2929
+ * which is coercible to the Boolean value true, or until the end of the array.
2930
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
2931
+ * If thisArg is omitted, undefined is used as the this value.
2932
+ */
2933
+ some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;
2934
+
2935
+ /**
2936
+ * Sorts an array.
2937
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
2938
+ * a negative value if first argument is less than second argument, zero if they're equal and a positive
2939
+ * value otherwise. If omitted, the elements are sorted in ascending order.
2940
+ * ```ts
2941
+ * [11,2,22,1].sort((a, b) => a - b)
2942
+ * ```
2943
+ */
2944
+ sort(compareFn?: (a: number, b: number) => number): this;
2945
+
2946
+ /**
2947
+ * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements
2948
+ * at begin, inclusive, up to end, exclusive.
2949
+ * @param begin The index of the beginning of the array.
2950
+ * @param end The index of the end of the array.
2951
+ */
2952
+ subarray(begin?: number, end?: number): Int16Array<TArrayBuffer>;
2953
+
2954
+ /**
2955
+ * Converts a number to a string by using the current locale.
2956
+ */
2957
+ toLocaleString(): string;
2958
+
2959
+ /**
2960
+ * Returns a string representation of an array.
2961
+ */
2962
+ toString(): string;
2963
+
2964
+ /** Returns the primitive value of the specified object. */
2965
+ valueOf(): this;
2966
+
2967
+ [index: number]: number;
2968
+ }
2969
+ interface Int16ArrayConstructor {
2970
+ readonly prototype: Int16Array<ArrayBufferLike>;
2971
+ new (length: number): Int16Array<ArrayBuffer>;
2972
+ new (array: ArrayLike<number>): Int16Array<ArrayBuffer>;
2973
+ new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Int16Array<TArrayBuffer>;
2974
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int16Array<ArrayBuffer>;
2975
+ new (array: ArrayLike<number> | ArrayBuffer): Int16Array<ArrayBuffer>;
2976
+
2977
+ /**
2978
+ * The size in bytes of each element in the array.
2979
+ */
2980
+ readonly BYTES_PER_ELEMENT: number;
2981
+
2982
+ /**
2983
+ * Returns a new array from a set of elements.
2984
+ * @param items A set of elements to include in the new array object.
2985
+ */
2986
+ of(...items: number[]): Int16Array<ArrayBuffer>;
2987
+
2988
+ /**
2989
+ * Creates an array from an array-like or iterable object.
2990
+ * @param arrayLike An array-like object to convert to an array.
2991
+ */
2992
+ from(arrayLike: ArrayLike<number>): Int16Array<ArrayBuffer>;
2993
+
2994
+ /**
2995
+ * Creates an array from an array-like or iterable object.
2996
+ * @param arrayLike An array-like object to convert to an array.
2997
+ * @param mapfn A mapping function to call on every element of the array.
2998
+ * @param thisArg Value of 'this' used to invoke the mapfn.
2999
+ */
3000
+ from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array<ArrayBuffer>;
3001
+ }
3002
+ declare var Int16Array: Int16ArrayConstructor;
3003
+
3004
+ /**
3005
+ * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
3006
+ * requested number of bytes could not be allocated an exception is raised.
3007
+ */
3008
+ interface Uint16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
3009
+ /**
3010
+ * The size in bytes of each element in the array.
3011
+ */
3012
+ readonly BYTES_PER_ELEMENT: number;
3013
+
3014
+ /**
3015
+ * The ArrayBuffer instance referenced by the array.
3016
+ */
3017
+ readonly buffer: TArrayBuffer;
3018
+
3019
+ /**
3020
+ * The length in bytes of the array.
3021
+ */
3022
+ readonly byteLength: number;
3023
+
3024
+ /**
3025
+ * The offset in bytes of the array.
3026
+ */
3027
+ readonly byteOffset: number;
3028
+
3029
+ /**
3030
+ * Returns the this object after copying a section of the array identified by start and end
3031
+ * to the same array starting at position target
3032
+ * @param target If target is negative, it is treated as length+target where length is the
3033
+ * length of the array.
3034
+ * @param start If start is negative, it is treated as length+start. If end is negative, it
3035
+ * is treated as length+end.
3036
+ * @param end If not specified, length of the this object is used as its default value.
3037
+ */
3038
+ copyWithin(target: number, start: number, end?: number): this;
3039
+
3040
+ /**
3041
+ * Determines whether all the members of an array satisfy the specified test.
3042
+ * @param predicate A function that accepts up to three arguments. The every method calls
3043
+ * the predicate function for each element in the array until the predicate returns a value
3044
+ * which is coercible to the Boolean value false, or until the end of the array.
3045
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
3046
+ * If thisArg is omitted, undefined is used as the this value.
3047
+ */
3048
+ every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;
3049
+
3050
+ /**
3051
+ * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
3052
+ * @param value value to fill array section with
3053
+ * @param start index to start filling the array at. If start is negative, it is treated as
3054
+ * length+start where length is the length of the array.
3055
+ * @param end index to stop filling the array at. If end is negative, it is treated as
3056
+ * length+end.
3057
+ */
3058
+ fill(value: number, start?: number, end?: number): this;
3059
+
3060
+ /**
3061
+ * Returns the elements of an array that meet the condition specified in a callback function.
3062
+ * @param predicate A function that accepts up to three arguments. The filter method calls
3063
+ * the predicate function one time for each element in the array.
3064
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
3065
+ * If thisArg is omitted, undefined is used as the this value.
3066
+ */
3067
+ filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Uint16Array<ArrayBuffer>;
3068
+
3069
+ /**
3070
+ * Returns the value of the first element in the array where predicate is true, and undefined
3071
+ * otherwise.
3072
+ * @param predicate find calls predicate once for each element of the array, in ascending
3073
+ * order, until it finds one where predicate returns true. If such an element is found, find
3074
+ * immediately returns that element value. Otherwise, find returns undefined.
3075
+ * @param thisArg If provided, it will be used as the this value for each invocation of
3076
+ * predicate. If it is not provided, undefined is used instead.
3077
+ */
3078
+ find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined;
3079
+
3080
+ /**
3081
+ * Returns the index of the first element in the array where predicate is true, and -1
3082
+ * otherwise.
3083
+ * @param predicate find calls predicate once for each element of the array, in ascending
3084
+ * order, until it finds one where predicate returns true. If such an element is found,
3085
+ * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
3086
+ * @param thisArg If provided, it will be used as the this value for each invocation of
3087
+ * predicate. If it is not provided, undefined is used instead.
3088
+ */
3089
+ findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number;
3090
+
3091
+ /**
3092
+ * Performs the specified action for each element in an array.
3093
+ * @param callbackfn A function that accepts up to three arguments. forEach calls the
3094
+ * callbackfn function one time for each element in the array.
3095
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3096
+ * If thisArg is omitted, undefined is used as the this value.
3097
+ */
3098
+ forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
3099
+
3100
+ /**
3101
+ * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
3102
+ * @param searchElement The value to locate in the array.
3103
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3104
+ * search starts at index 0.
3105
+ */
3106
+ indexOf(searchElement: number, fromIndex?: number): number;
3107
+
3108
+ /**
3109
+ * Adds all the elements of an array separated by the specified separator string.
3110
+ * @param separator A string used to separate one element of an array from the next in the
3111
+ * resulting String. If omitted, the array elements are separated with a comma.
3112
+ */
3113
+ join(separator?: string): string;
3114
+
3115
+ /**
3116
+ * Returns the index of the last occurrence of a value in an array, or -1 if it is not present.
3117
+ * @param searchElement The value to locate in the array.
3118
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3119
+ * search starts at index 0.
3120
+ */
3121
+ lastIndexOf(searchElement: number, fromIndex?: number): number;
3122
+
3123
+ /**
3124
+ * The length of the array.
3125
+ */
3126
+ readonly length: number;
3127
+
3128
+ /**
3129
+ * Calls a defined callback function on each element of an array, and returns an array that
3130
+ * contains the results.
3131
+ * @param callbackfn A function that accepts up to three arguments. The map method calls the
3132
+ * callbackfn function one time for each element in the array.
3133
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3134
+ * If thisArg is omitted, undefined is used as the this value.
3135
+ */
3136
+ map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Uint16Array<ArrayBuffer>;
3137
+
3138
+ /**
3139
+ * Calls the specified callback function for all the elements in an array. The return value of
3140
+ * the callback function is the accumulated result, and is provided as an argument in the next
3141
+ * call to the callback function.
3142
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3143
+ * callbackfn function one time for each element in the array.
3144
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
3145
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
3146
+ * instead of an array value.
3147
+ */
3148
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
3149
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;
3150
+
3151
+ /**
3152
+ * Calls the specified callback function for all the elements in an array. The return value of
3153
+ * the callback function is the accumulated result, and is provided as an argument in the next
3154
+ * call to the callback function.
3155
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3156
+ * callbackfn function one time for each element in the array.
3157
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
3158
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
3159
+ * instead of an array value.
3160
+ */
3161
+ reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;
3162
+
3163
+ /**
3164
+ * Calls the specified callback function for all the elements in an array, in descending order.
3165
+ * The return value of the callback function is the accumulated result, and is provided as an
3166
+ * argument in the next call to the callback function.
3167
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3168
+ * the callbackfn function one time for each element in the array.
3169
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
3170
+ * the accumulation. The first call to the callbackfn function provides this value as an
3171
+ * argument instead of an array value.
3172
+ */
3173
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
3174
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;
3175
+
3176
+ /**
3177
+ * Calls the specified callback function for all the elements in an array, in descending order.
3178
+ * The return value of the callback function is the accumulated result, and is provided as an
3179
+ * argument in the next call to the callback function.
3180
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3181
+ * the callbackfn function one time for each element in the array.
3182
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
3183
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
3184
+ * instead of an array value.
3185
+ */
3186
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;
3187
+
3188
+ /**
3189
+ * Reverses the elements in an Array.
3190
+ */
3191
+ reverse(): this;
3192
+
3193
+ /**
3194
+ * Sets a value or an array of values.
3195
+ * @param array A typed or untyped array of values to set.
3196
+ * @param offset The index in the current array at which the values are to be written.
3197
+ */
3198
+ set(array: ArrayLike<number>, offset?: number): void;
3199
+
3200
+ /**
3201
+ * Returns a section of an array.
3202
+ * @param start The beginning of the specified portion of the array.
3203
+ * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
3204
+ */
3205
+ slice(start?: number, end?: number): Uint16Array<ArrayBuffer>;
3206
+
3207
+ /**
3208
+ * Determines whether the specified callback function returns true for any element of an array.
3209
+ * @param predicate A function that accepts up to three arguments. The some method calls
3210
+ * the predicate function for each element in the array until the predicate returns a value
3211
+ * which is coercible to the Boolean value true, or until the end of the array.
3212
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
3213
+ * If thisArg is omitted, undefined is used as the this value.
3214
+ */
3215
+ some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;
3216
+
3217
+ /**
3218
+ * Sorts an array.
3219
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
3220
+ * a negative value if first argument is less than second argument, zero if they're equal and a positive
3221
+ * value otherwise. If omitted, the elements are sorted in ascending order.
3222
+ * ```ts
3223
+ * [11,2,22,1].sort((a, b) => a - b)
3224
+ * ```
3225
+ */
3226
+ sort(compareFn?: (a: number, b: number) => number): this;
3227
+
3228
+ /**
3229
+ * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements
3230
+ * at begin, inclusive, up to end, exclusive.
3231
+ * @param begin The index of the beginning of the array.
3232
+ * @param end The index of the end of the array.
3233
+ */
3234
+ subarray(begin?: number, end?: number): Uint16Array<TArrayBuffer>;
3235
+
3236
+ /**
3237
+ * Converts a number to a string by using the current locale.
3238
+ */
3239
+ toLocaleString(): string;
3240
+
3241
+ /**
3242
+ * Returns a string representation of an array.
3243
+ */
3244
+ toString(): string;
3245
+
3246
+ /** Returns the primitive value of the specified object. */
3247
+ valueOf(): this;
3248
+
3249
+ [index: number]: number;
3250
+ }
3251
+ interface Uint16ArrayConstructor {
3252
+ readonly prototype: Uint16Array<ArrayBufferLike>;
3253
+ new (length: number): Uint16Array<ArrayBuffer>;
3254
+ new (array: ArrayLike<number>): Uint16Array<ArrayBuffer>;
3255
+ new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Uint16Array<TArrayBuffer>;
3256
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint16Array<ArrayBuffer>;
3257
+ new (array: ArrayLike<number> | ArrayBuffer): Uint16Array<ArrayBuffer>;
3258
+
3259
+ /**
3260
+ * The size in bytes of each element in the array.
3261
+ */
3262
+ readonly BYTES_PER_ELEMENT: number;
3263
+
3264
+ /**
3265
+ * Returns a new array from a set of elements.
3266
+ * @param items A set of elements to include in the new array object.
3267
+ */
3268
+ of(...items: number[]): Uint16Array<ArrayBuffer>;
3269
+
3270
+ /**
3271
+ * Creates an array from an array-like or iterable object.
3272
+ * @param arrayLike An array-like object to convert to an array.
3273
+ */
3274
+ from(arrayLike: ArrayLike<number>): Uint16Array<ArrayBuffer>;
3275
+
3276
+ /**
3277
+ * Creates an array from an array-like or iterable object.
3278
+ * @param arrayLike An array-like object to convert to an array.
3279
+ * @param mapfn A mapping function to call on every element of the array.
3280
+ * @param thisArg Value of 'this' used to invoke the mapfn.
3281
+ */
3282
+ from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array<ArrayBuffer>;
3283
+ }
3284
+ declare var Uint16Array: Uint16ArrayConstructor;
3285
+ /**
3286
+ * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
3287
+ * requested number of bytes could not be allocated an exception is raised.
3288
+ */
3289
+ interface Int32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
3290
+ /**
3291
+ * The size in bytes of each element in the array.
3292
+ */
3293
+ readonly BYTES_PER_ELEMENT: number;
3294
+
3295
+ /**
3296
+ * The ArrayBuffer instance referenced by the array.
3297
+ */
3298
+ readonly buffer: TArrayBuffer;
3299
+
3300
+ /**
3301
+ * The length in bytes of the array.
3302
+ */
3303
+ readonly byteLength: number;
3304
+
3305
+ /**
3306
+ * The offset in bytes of the array.
3307
+ */
3308
+ readonly byteOffset: number;
3309
+
3310
+ /**
3311
+ * Returns the this object after copying a section of the array identified by start and end
3312
+ * to the same array starting at position target
3313
+ * @param target If target is negative, it is treated as length+target where length is the
3314
+ * length of the array.
3315
+ * @param start If start is negative, it is treated as length+start. If end is negative, it
3316
+ * is treated as length+end.
3317
+ * @param end If not specified, length of the this object is used as its default value.
3318
+ */
3319
+ copyWithin(target: number, start: number, end?: number): this;
3320
+
3321
+ /**
3322
+ * Determines whether all the members of an array satisfy the specified test.
3323
+ * @param predicate A function that accepts up to three arguments. The every method calls
3324
+ * the predicate function for each element in the array until the predicate returns a value
3325
+ * which is coercible to the Boolean value false, or until the end of the array.
3326
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
3327
+ * If thisArg is omitted, undefined is used as the this value.
3328
+ */
3329
+ every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;
3330
+
3331
+ /**
3332
+ * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
3333
+ * @param value value to fill array section with
3334
+ * @param start index to start filling the array at. If start is negative, it is treated as
3335
+ * length+start where length is the length of the array.
3336
+ * @param end index to stop filling the array at. If end is negative, it is treated as
3337
+ * length+end.
3338
+ */
3339
+ fill(value: number, start?: number, end?: number): this;
3340
+
3341
+ /**
3342
+ * Returns the elements of an array that meet the condition specified in a callback function.
3343
+ * @param predicate A function that accepts up to three arguments. The filter method calls
3344
+ * the predicate function one time for each element in the array.
3345
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
3346
+ * If thisArg is omitted, undefined is used as the this value.
3347
+ */
3348
+ filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Int32Array<ArrayBuffer>;
3349
+
3350
+ /**
3351
+ * Returns the value of the first element in the array where predicate is true, and undefined
3352
+ * otherwise.
3353
+ * @param predicate find calls predicate once for each element of the array, in ascending
3354
+ * order, until it finds one where predicate returns true. If such an element is found, find
3355
+ * immediately returns that element value. Otherwise, find returns undefined.
3356
+ * @param thisArg If provided, it will be used as the this value for each invocation of
3357
+ * predicate. If it is not provided, undefined is used instead.
3358
+ */
3359
+ find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined;
3360
+
3361
+ /**
3362
+ * Returns the index of the first element in the array where predicate is true, and -1
3363
+ * otherwise.
3364
+ * @param predicate find calls predicate once for each element of the array, in ascending
3365
+ * order, until it finds one where predicate returns true. If such an element is found,
3366
+ * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
3367
+ * @param thisArg If provided, it will be used as the this value for each invocation of
3368
+ * predicate. If it is not provided, undefined is used instead.
3369
+ */
3370
+ findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number;
3371
+
3372
+ /**
3373
+ * Performs the specified action for each element in an array.
3374
+ * @param callbackfn A function that accepts up to three arguments. forEach calls the
3375
+ * callbackfn function one time for each element in the array.
3376
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3377
+ * If thisArg is omitted, undefined is used as the this value.
3378
+ */
3379
+ forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
3380
+
3381
+ /**
3382
+ * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
3383
+ * @param searchElement The value to locate in the array.
3384
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3385
+ * search starts at index 0.
3386
+ */
3387
+ indexOf(searchElement: number, fromIndex?: number): number;
3388
+
3389
+ /**
3390
+ * Adds all the elements of an array separated by the specified separator string.
3391
+ * @param separator A string used to separate one element of an array from the next in the
3392
+ * resulting String. If omitted, the array elements are separated with a comma.
3393
+ */
3394
+ join(separator?: string): string;
3395
+
3396
+ /**
3397
+ * Returns the index of the last occurrence of a value in an array, or -1 if it is not present.
3398
+ * @param searchElement The value to locate in the array.
3399
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3400
+ * search starts at index 0.
3401
+ */
3402
+ lastIndexOf(searchElement: number, fromIndex?: number): number;
3403
+
3404
+ /**
3405
+ * The length of the array.
3406
+ */
3407
+ readonly length: number;
3408
+
3409
+ /**
3410
+ * Calls a defined callback function on each element of an array, and returns an array that
3411
+ * contains the results.
3412
+ * @param callbackfn A function that accepts up to three arguments. The map method calls the
3413
+ * callbackfn function one time for each element in the array.
3414
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3415
+ * If thisArg is omitted, undefined is used as the this value.
3416
+ */
3417
+ map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Int32Array<ArrayBuffer>;
3418
+
3419
+ /**
3420
+ * Calls the specified callback function for all the elements in an array. The return value of
3421
+ * the callback function is the accumulated result, and is provided as an argument in the next
3422
+ * call to the callback function.
3423
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3424
+ * callbackfn function one time for each element in the array.
3425
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
3426
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
3427
+ * instead of an array value.
3428
+ */
3429
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
3430
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;
3431
+
3432
+ /**
3433
+ * Calls the specified callback function for all the elements in an array. The return value of
3434
+ * the callback function is the accumulated result, and is provided as an argument in the next
3435
+ * call to the callback function.
3436
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3437
+ * callbackfn function one time for each element in the array.
3438
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
3439
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
3440
+ * instead of an array value.
3441
+ */
3442
+ reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;
3443
+
3444
+ /**
3445
+ * Calls the specified callback function for all the elements in an array, in descending order.
3446
+ * The return value of the callback function is the accumulated result, and is provided as an
3447
+ * argument in the next call to the callback function.
3448
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3449
+ * the callbackfn function one time for each element in the array.
3450
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
3451
+ * the accumulation. The first call to the callbackfn function provides this value as an
3452
+ * argument instead of an array value.
3453
+ */
3454
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
3455
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;
3456
+
3457
+ /**
3458
+ * Calls the specified callback function for all the elements in an array, in descending order.
3459
+ * The return value of the callback function is the accumulated result, and is provided as an
3460
+ * argument in the next call to the callback function.
3461
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3462
+ * the callbackfn function one time for each element in the array.
3463
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
3464
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
3465
+ * instead of an array value.
3466
+ */
3467
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;
3468
+
3469
+ /**
3470
+ * Reverses the elements in an Array.
3471
+ */
3472
+ reverse(): this;
3473
+
3474
+ /**
3475
+ * Sets a value or an array of values.
3476
+ * @param array A typed or untyped array of values to set.
3477
+ * @param offset The index in the current array at which the values are to be written.
3478
+ */
3479
+ set(array: ArrayLike<number>, offset?: number): void;
3480
+
3481
+ /**
3482
+ * Returns a section of an array.
3483
+ * @param start The beginning of the specified portion of the array.
3484
+ * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
3485
+ */
3486
+ slice(start?: number, end?: number): Int32Array<ArrayBuffer>;
3487
+
3488
+ /**
3489
+ * Determines whether the specified callback function returns true for any element of an array.
3490
+ * @param predicate A function that accepts up to three arguments. The some method calls
3491
+ * the predicate function for each element in the array until the predicate returns a value
3492
+ * which is coercible to the Boolean value true, or until the end of the array.
3493
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
3494
+ * If thisArg is omitted, undefined is used as the this value.
3495
+ */
3496
+ some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;
3497
+
3498
+ /**
3499
+ * Sorts an array.
3500
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
3501
+ * a negative value if first argument is less than second argument, zero if they're equal and a positive
3502
+ * value otherwise. If omitted, the elements are sorted in ascending order.
3503
+ * ```ts
3504
+ * [11,2,22,1].sort((a, b) => a - b)
3505
+ * ```
3506
+ */
3507
+ sort(compareFn?: (a: number, b: number) => number): this;
3508
+
3509
+ /**
3510
+ * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements
3511
+ * at begin, inclusive, up to end, exclusive.
3512
+ * @param begin The index of the beginning of the array.
3513
+ * @param end The index of the end of the array.
3514
+ */
3515
+ subarray(begin?: number, end?: number): Int32Array<TArrayBuffer>;
3516
+
3517
+ /**
3518
+ * Converts a number to a string by using the current locale.
3519
+ */
3520
+ toLocaleString(): string;
3521
+
3522
+ /**
3523
+ * Returns a string representation of an array.
3524
+ */
3525
+ toString(): string;
3526
+
3527
+ /** Returns the primitive value of the specified object. */
3528
+ valueOf(): this;
3529
+
3530
+ [index: number]: number;
3531
+ }
3532
+ interface Int32ArrayConstructor {
3533
+ readonly prototype: Int32Array<ArrayBufferLike>;
3534
+ new (length: number): Int32Array<ArrayBuffer>;
3535
+ new (array: ArrayLike<number>): Int32Array<ArrayBuffer>;
3536
+ new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Int32Array<TArrayBuffer>;
3537
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int32Array<ArrayBuffer>;
3538
+ new (array: ArrayLike<number> | ArrayBuffer): Int32Array<ArrayBuffer>;
3539
+
3540
+ /**
3541
+ * The size in bytes of each element in the array.
3542
+ */
3543
+ readonly BYTES_PER_ELEMENT: number;
3544
+
3545
+ /**
3546
+ * Returns a new array from a set of elements.
3547
+ * @param items A set of elements to include in the new array object.
3548
+ */
3549
+ of(...items: number[]): Int32Array<ArrayBuffer>;
3550
+
3551
+ /**
3552
+ * Creates an array from an array-like or iterable object.
3553
+ * @param arrayLike An array-like object to convert to an array.
3554
+ */
3555
+ from(arrayLike: ArrayLike<number>): Int32Array<ArrayBuffer>;
3556
+
3557
+ /**
3558
+ * Creates an array from an array-like or iterable object.
3559
+ * @param arrayLike An array-like object to convert to an array.
3560
+ * @param mapfn A mapping function to call on every element of the array.
3561
+ * @param thisArg Value of 'this' used to invoke the mapfn.
3562
+ */
3563
+ from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array<ArrayBuffer>;
3564
+ }
3565
+ declare var Int32Array: Int32ArrayConstructor;
3566
+
3567
+ /**
3568
+ * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
3569
+ * requested number of bytes could not be allocated an exception is raised.
3570
+ */
3571
+ interface Uint32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
3572
+ /**
3573
+ * The size in bytes of each element in the array.
3574
+ */
3575
+ readonly BYTES_PER_ELEMENT: number;
3576
+
3577
+ /**
3578
+ * The ArrayBuffer instance referenced by the array.
3579
+ */
3580
+ readonly buffer: TArrayBuffer;
3581
+
3582
+ /**
3583
+ * The length in bytes of the array.
3584
+ */
3585
+ readonly byteLength: number;
3586
+
3587
+ /**
3588
+ * The offset in bytes of the array.
3589
+ */
3590
+ readonly byteOffset: number;
3591
+
3592
+ /**
3593
+ * Returns the this object after copying a section of the array identified by start and end
3594
+ * to the same array starting at position target
3595
+ * @param target If target is negative, it is treated as length+target where length is the
3596
+ * length of the array.
3597
+ * @param start If start is negative, it is treated as length+start. If end is negative, it
3598
+ * is treated as length+end.
3599
+ * @param end If not specified, length of the this object is used as its default value.
3600
+ */
3601
+ copyWithin(target: number, start: number, end?: number): this;
3602
+
3603
+ /**
3604
+ * Determines whether all the members of an array satisfy the specified test.
3605
+ * @param predicate A function that accepts up to three arguments. The every method calls
3606
+ * the predicate function for each element in the array until the predicate returns a value
3607
+ * which is coercible to the Boolean value false, or until the end of the array.
3608
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
3609
+ * If thisArg is omitted, undefined is used as the this value.
3610
+ */
3611
+ every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;
3612
+
3613
+ /**
3614
+ * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
3615
+ * @param value value to fill array section with
3616
+ * @param start index to start filling the array at. If start is negative, it is treated as
3617
+ * length+start where length is the length of the array.
3618
+ * @param end index to stop filling the array at. If end is negative, it is treated as
3619
+ * length+end.
3620
+ */
3621
+ fill(value: number, start?: number, end?: number): this;
3622
+
3623
+ /**
3624
+ * Returns the elements of an array that meet the condition specified in a callback function.
3625
+ * @param predicate A function that accepts up to three arguments. The filter method calls
3626
+ * the predicate function one time for each element in the array.
3627
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
3628
+ * If thisArg is omitted, undefined is used as the this value.
3629
+ */
3630
+ filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Uint32Array<ArrayBuffer>;
3631
+
3632
+ /**
3633
+ * Returns the value of the first element in the array where predicate is true, and undefined
3634
+ * otherwise.
3635
+ * @param predicate find calls predicate once for each element of the array, in ascending
3636
+ * order, until it finds one where predicate returns true. If such an element is found, find
3637
+ * immediately returns that element value. Otherwise, find returns undefined.
3638
+ * @param thisArg If provided, it will be used as the this value for each invocation of
3639
+ * predicate. If it is not provided, undefined is used instead.
3640
+ */
3641
+ find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined;
3642
+
3643
+ /**
3644
+ * Returns the index of the first element in the array where predicate is true, and -1
3645
+ * otherwise.
3646
+ * @param predicate find calls predicate once for each element of the array, in ascending
3647
+ * order, until it finds one where predicate returns true. If such an element is found,
3648
+ * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
3649
+ * @param thisArg If provided, it will be used as the this value for each invocation of
3650
+ * predicate. If it is not provided, undefined is used instead.
3651
+ */
3652
+ findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number;
3653
+
3654
+ /**
3655
+ * Performs the specified action for each element in an array.
3656
+ * @param callbackfn A function that accepts up to three arguments. forEach calls the
3657
+ * callbackfn function one time for each element in the array.
3658
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3659
+ * If thisArg is omitted, undefined is used as the this value.
3660
+ */
3661
+ forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
3662
+ /**
3663
+ * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
3664
+ * @param searchElement The value to locate in the array.
3665
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3666
+ * search starts at index 0.
3667
+ */
3668
+ indexOf(searchElement: number, fromIndex?: number): number;
3669
+
3670
+ /**
3671
+ * Adds all the elements of an array separated by the specified separator string.
3672
+ * @param separator A string used to separate one element of an array from the next in the
3673
+ * resulting String. If omitted, the array elements are separated with a comma.
3674
+ */
3675
+ join(separator?: string): string;
3676
+
3677
+ /**
3678
+ * Returns the index of the last occurrence of a value in an array, or -1 if it is not present.
3679
+ * @param searchElement The value to locate in the array.
3680
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3681
+ * search starts at index 0.
3682
+ */
3683
+ lastIndexOf(searchElement: number, fromIndex?: number): number;
3684
+
3685
+ /**
3686
+ * The length of the array.
3687
+ */
3688
+ readonly length: number;
3689
+
3690
+ /**
3691
+ * Calls a defined callback function on each element of an array, and returns an array that
3692
+ * contains the results.
3693
+ * @param callbackfn A function that accepts up to three arguments. The map method calls the
3694
+ * callbackfn function one time for each element in the array.
3695
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3696
+ * If thisArg is omitted, undefined is used as the this value.
3697
+ */
3698
+ map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Uint32Array<ArrayBuffer>;
3699
+
3700
+ /**
3701
+ * Calls the specified callback function for all the elements in an array. The return value of
3702
+ * the callback function is the accumulated result, and is provided as an argument in the next
3703
+ * call to the callback function.
3704
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3705
+ * callbackfn function one time for each element in the array.
3706
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
3707
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
3708
+ * instead of an array value.
3709
+ */
3710
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
3711
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;
3712
+
3713
+ /**
3714
+ * Calls the specified callback function for all the elements in an array. The return value of
3715
+ * the callback function is the accumulated result, and is provided as an argument in the next
3716
+ * call to the callback function.
3717
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3718
+ * callbackfn function one time for each element in the array.
3719
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
3720
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
3721
+ * instead of an array value.
3722
+ */
3723
+ reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;
3724
+
3725
+ /**
3726
+ * Calls the specified callback function for all the elements in an array, in descending order.
3727
+ * The return value of the callback function is the accumulated result, and is provided as an
3728
+ * argument in the next call to the callback function.
3729
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3730
+ * the callbackfn function one time for each element in the array.
3731
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
3732
+ * the accumulation. The first call to the callbackfn function provides this value as an
3733
+ * argument instead of an array value.
3734
+ */
3735
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
3736
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;
3737
+
3738
+ /**
3739
+ * Calls the specified callback function for all the elements in an array, in descending order.
3740
+ * The return value of the callback function is the accumulated result, and is provided as an
3741
+ * argument in the next call to the callback function.
3742
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3743
+ * the callbackfn function one time for each element in the array.
3744
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
3745
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
3746
+ * instead of an array value.
3747
+ */
3748
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;
3749
+
3750
+ /**
3751
+ * Reverses the elements in an Array.
3752
+ */
3753
+ reverse(): this;
3754
+
3755
+ /**
3756
+ * Sets a value or an array of values.
3757
+ * @param array A typed or untyped array of values to set.
3758
+ * @param offset The index in the current array at which the values are to be written.
3759
+ */
3760
+ set(array: ArrayLike<number>, offset?: number): void;
3761
+
3762
+ /**
3763
+ * Returns a section of an array.
3764
+ * @param start The beginning of the specified portion of the array.
3765
+ * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
3766
+ */
3767
+ slice(start?: number, end?: number): Uint32Array<ArrayBuffer>;
3768
+
3769
+ /**
3770
+ * Determines whether the specified callback function returns true for any element of an array.
3771
+ * @param predicate A function that accepts up to three arguments. The some method calls
3772
+ * the predicate function for each element in the array until the predicate returns a value
3773
+ * which is coercible to the Boolean value true, or until the end of the array.
3774
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
3775
+ * If thisArg is omitted, undefined is used as the this value.
3776
+ */
3777
+ some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;
3778
+
3779
+ /**
3780
+ * Sorts an array.
3781
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
3782
+ * a negative value if first argument is less than second argument, zero if they're equal and a positive
3783
+ * value otherwise. If omitted, the elements are sorted in ascending order.
3784
+ * ```ts
3785
+ * [11,2,22,1].sort((a, b) => a - b)
3786
+ * ```
3787
+ */
3788
+ sort(compareFn?: (a: number, b: number) => number): this;
3789
+
3790
+ /**
3791
+ * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements
3792
+ * at begin, inclusive, up to end, exclusive.
3793
+ * @param begin The index of the beginning of the array.
3794
+ * @param end The index of the end of the array.
3795
+ */
3796
+ subarray(begin?: number, end?: number): Uint32Array<TArrayBuffer>;
3797
+
3798
+ /**
3799
+ * Converts a number to a string by using the current locale.
3800
+ */
3801
+ toLocaleString(): string;
3802
+
3803
+ /**
3804
+ * Returns a string representation of an array.
3805
+ */
3806
+ toString(): string;
3807
+
3808
+ /** Returns the primitive value of the specified object. */
3809
+ valueOf(): this;
3810
+
3811
+ [index: number]: number;
3812
+ }
3813
+ interface Uint32ArrayConstructor {
3814
+ readonly prototype: Uint32Array<ArrayBufferLike>;
3815
+ new (length: number): Uint32Array<ArrayBuffer>;
3816
+ new (array: ArrayLike<number>): Uint32Array<ArrayBuffer>;
3817
+ new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Uint32Array<TArrayBuffer>;
3818
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint32Array<ArrayBuffer>;
3819
+ new (array: ArrayLike<number> | ArrayBuffer): Uint32Array<ArrayBuffer>;
3820
+
3821
+ /**
3822
+ * The size in bytes of each element in the array.
3823
+ */
3824
+ readonly BYTES_PER_ELEMENT: number;
3825
+
3826
+ /**
3827
+ * Returns a new array from a set of elements.
3828
+ * @param items A set of elements to include in the new array object.
3829
+ */
3830
+ of(...items: number[]): Uint32Array<ArrayBuffer>;
3831
+
3832
+ /**
3833
+ * Creates an array from an array-like or iterable object.
3834
+ * @param arrayLike An array-like object to convert to an array.
3835
+ */
3836
+ from(arrayLike: ArrayLike<number>): Uint32Array<ArrayBuffer>;
3837
+
3838
+ /**
3839
+ * Creates an array from an array-like or iterable object.
3840
+ * @param arrayLike An array-like object to convert to an array.
3841
+ * @param mapfn A mapping function to call on every element of the array.
3842
+ * @param thisArg Value of 'this' used to invoke the mapfn.
3843
+ */
3844
+ from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array<ArrayBuffer>;
3845
+ }
3846
+ declare var Uint32Array: Uint32ArrayConstructor;
3847
+
3848
+ /**
3849
+ * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
3850
+ * of bytes could not be allocated an exception is raised.
3851
+ */
3852
+ interface Float32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
3853
+ /**
3854
+ * The size in bytes of each element in the array.
3855
+ */
3856
+ readonly BYTES_PER_ELEMENT: number;
3857
+
3858
+ /**
3859
+ * The ArrayBuffer instance referenced by the array.
3860
+ */
3861
+ readonly buffer: TArrayBuffer;
3862
+
3863
+ /**
3864
+ * The length in bytes of the array.
3865
+ */
3866
+ readonly byteLength: number;
3867
+
3868
+ /**
3869
+ * The offset in bytes of the array.
3870
+ */
3871
+ readonly byteOffset: number;
3872
+
3873
+ /**
3874
+ * Returns the this object after copying a section of the array identified by start and end
3875
+ * to the same array starting at position target
3876
+ * @param target If target is negative, it is treated as length+target where length is the
3877
+ * length of the array.
3878
+ * @param start If start is negative, it is treated as length+start. If end is negative, it
3879
+ * is treated as length+end.
3880
+ * @param end If not specified, length of the this object is used as its default value.
3881
+ */
3882
+ copyWithin(target: number, start: number, end?: number): this;
3883
+
3884
+ /**
3885
+ * Determines whether all the members of an array satisfy the specified test.
3886
+ * @param predicate A function that accepts up to three arguments. The every method calls
3887
+ * the predicate function for each element in the array until the predicate returns a value
3888
+ * which is coercible to the Boolean value false, or until the end of the array.
3889
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
3890
+ * If thisArg is omitted, undefined is used as the this value.
3891
+ */
3892
+ every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;
3893
+
3894
+ /**
3895
+ * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
3896
+ * @param value value to fill array section with
3897
+ * @param start index to start filling the array at. If start is negative, it is treated as
3898
+ * length+start where length is the length of the array.
3899
+ * @param end index to stop filling the array at. If end is negative, it is treated as
3900
+ * length+end.
3901
+ */
3902
+ fill(value: number, start?: number, end?: number): this;
3903
+
3904
+ /**
3905
+ * Returns the elements of an array that meet the condition specified in a callback function.
3906
+ * @param predicate A function that accepts up to three arguments. The filter method calls
3907
+ * the predicate function one time for each element in the array.
3908
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
3909
+ * If thisArg is omitted, undefined is used as the this value.
3910
+ */
3911
+ filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Float32Array<ArrayBuffer>;
3912
+
3913
+ /**
3914
+ * Returns the value of the first element in the array where predicate is true, and undefined
3915
+ * otherwise.
3916
+ * @param predicate find calls predicate once for each element of the array, in ascending
3917
+ * order, until it finds one where predicate returns true. If such an element is found, find
3918
+ * immediately returns that element value. Otherwise, find returns undefined.
3919
+ * @param thisArg If provided, it will be used as the this value for each invocation of
3920
+ * predicate. If it is not provided, undefined is used instead.
3921
+ */
3922
+ find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined;
3923
+
3924
+ /**
3925
+ * Returns the index of the first element in the array where predicate is true, and -1
3926
+ * otherwise.
3927
+ * @param predicate find calls predicate once for each element of the array, in ascending
3928
+ * order, until it finds one where predicate returns true. If such an element is found,
3929
+ * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
3930
+ * @param thisArg If provided, it will be used as the this value for each invocation of
3931
+ * predicate. If it is not provided, undefined is used instead.
3932
+ */
3933
+ findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number;
3934
+
3935
+ /**
3936
+ * Performs the specified action for each element in an array.
3937
+ * @param callbackfn A function that accepts up to three arguments. forEach calls the
3938
+ * callbackfn function one time for each element in the array.
3939
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3940
+ * If thisArg is omitted, undefined is used as the this value.
3941
+ */
3942
+ forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
3943
+
3944
+ /**
3945
+ * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
3946
+ * @param searchElement The value to locate in the array.
3947
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3948
+ * search starts at index 0.
3949
+ */
3950
+ indexOf(searchElement: number, fromIndex?: number): number;
3951
+
3952
+ /**
3953
+ * Adds all the elements of an array separated by the specified separator string.
3954
+ * @param separator A string used to separate one element of an array from the next in the
3955
+ * resulting String. If omitted, the array elements are separated with a comma.
3956
+ */
3957
+ join(separator?: string): string;
3958
+
3959
+ /**
3960
+ * Returns the index of the last occurrence of a value in an array, or -1 if it is not present.
3961
+ * @param searchElement The value to locate in the array.
3962
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3963
+ * search starts at index 0.
3964
+ */
3965
+ lastIndexOf(searchElement: number, fromIndex?: number): number;
3966
+
3967
+ /**
3968
+ * The length of the array.
3969
+ */
3970
+ readonly length: number;
3971
+
3972
+ /**
3973
+ * Calls a defined callback function on each element of an array, and returns an array that
3974
+ * contains the results.
3975
+ * @param callbackfn A function that accepts up to three arguments. The map method calls the
3976
+ * callbackfn function one time for each element in the array.
3977
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3978
+ * If thisArg is omitted, undefined is used as the this value.
3979
+ */
3980
+ map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Float32Array<ArrayBuffer>;
3981
+
3982
+ /**
3983
+ * Calls the specified callback function for all the elements in an array. The return value of
3984
+ * the callback function is the accumulated result, and is provided as an argument in the next
3985
+ * call to the callback function.
3986
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3987
+ * callbackfn function one time for each element in the array.
3988
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
3989
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
3990
+ * instead of an array value.
3991
+ */
3992
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
3993
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;
3994
+
3995
+ /**
3996
+ * Calls the specified callback function for all the elements in an array. The return value of
3997
+ * the callback function is the accumulated result, and is provided as an argument in the next
3998
+ * call to the callback function.
3999
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
4000
+ * callbackfn function one time for each element in the array.
4001
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
4002
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
4003
+ * instead of an array value.
4004
+ */
4005
+ reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;
4006
+
4007
+ /**
4008
+ * Calls the specified callback function for all the elements in an array, in descending order.
4009
+ * The return value of the callback function is the accumulated result, and is provided as an
4010
+ * argument in the next call to the callback function.
4011
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
4012
+ * the callbackfn function one time for each element in the array.
4013
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
4014
+ * the accumulation. The first call to the callbackfn function provides this value as an
4015
+ * argument instead of an array value.
4016
+ */
4017
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
4018
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;
4019
+
4020
+ /**
4021
+ * Calls the specified callback function for all the elements in an array, in descending order.
4022
+ * The return value of the callback function is the accumulated result, and is provided as an
4023
+ * argument in the next call to the callback function.
4024
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
4025
+ * the callbackfn function one time for each element in the array.
4026
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
4027
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
4028
+ * instead of an array value.
4029
+ */
4030
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;
4031
+
4032
+ /**
4033
+ * Reverses the elements in an Array.
4034
+ */
4035
+ reverse(): this;
4036
+
4037
+ /**
4038
+ * Sets a value or an array of values.
4039
+ * @param array A typed or untyped array of values to set.
4040
+ * @param offset The index in the current array at which the values are to be written.
4041
+ */
4042
+ set(array: ArrayLike<number>, offset?: number): void;
4043
+
4044
+ /**
4045
+ * Returns a section of an array.
4046
+ * @param start The beginning of the specified portion of the array.
4047
+ * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
4048
+ */
4049
+ slice(start?: number, end?: number): Float32Array<ArrayBuffer>;
4050
+
4051
+ /**
4052
+ * Determines whether the specified callback function returns true for any element of an array.
4053
+ * @param predicate A function that accepts up to three arguments. The some method calls
4054
+ * the predicate function for each element in the array until the predicate returns a value
4055
+ * which is coercible to the Boolean value true, or until the end of the array.
4056
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
4057
+ * If thisArg is omitted, undefined is used as the this value.
4058
+ */
4059
+ some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;
4060
+
4061
+ /**
4062
+ * Sorts an array.
4063
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
4064
+ * a negative value if first argument is less than second argument, zero if they're equal and a positive
4065
+ * value otherwise. If omitted, the elements are sorted in ascending order.
4066
+ * ```ts
4067
+ * [11,2,22,1].sort((a, b) => a - b)
4068
+ * ```
4069
+ */
4070
+ sort(compareFn?: (a: number, b: number) => number): this;
4071
+
4072
+ /**
4073
+ * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements
4074
+ * at begin, inclusive, up to end, exclusive.
4075
+ * @param begin The index of the beginning of the array.
4076
+ * @param end The index of the end of the array.
4077
+ */
4078
+ subarray(begin?: number, end?: number): Float32Array<TArrayBuffer>;
4079
+
4080
+ /**
4081
+ * Converts a number to a string by using the current locale.
4082
+ */
4083
+ toLocaleString(): string;
4084
+
4085
+ /**
4086
+ * Returns a string representation of an array.
4087
+ */
4088
+ toString(): string;
4089
+
4090
+ /** Returns the primitive value of the specified object. */
4091
+ valueOf(): this;
4092
+
4093
+ [index: number]: number;
4094
+ }
4095
+ interface Float32ArrayConstructor {
4096
+ readonly prototype: Float32Array<ArrayBufferLike>;
4097
+ new (length: number): Float32Array<ArrayBuffer>;
4098
+ new (array: ArrayLike<number>): Float32Array<ArrayBuffer>;
4099
+ new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Float32Array<TArrayBuffer>;
4100
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float32Array<ArrayBuffer>;
4101
+ new (array: ArrayLike<number> | ArrayBuffer): Float32Array<ArrayBuffer>;
4102
+
4103
+ /**
4104
+ * The size in bytes of each element in the array.
4105
+ */
4106
+ readonly BYTES_PER_ELEMENT: number;
4107
+
4108
+ /**
4109
+ * Returns a new array from a set of elements.
4110
+ * @param items A set of elements to include in the new array object.
4111
+ */
4112
+ of(...items: number[]): Float32Array<ArrayBuffer>;
4113
+
4114
+ /**
4115
+ * Creates an array from an array-like or iterable object.
4116
+ * @param arrayLike An array-like object to convert to an array.
4117
+ */
4118
+ from(arrayLike: ArrayLike<number>): Float32Array<ArrayBuffer>;
4119
+
4120
+ /**
4121
+ * Creates an array from an array-like or iterable object.
4122
+ * @param arrayLike An array-like object to convert to an array.
4123
+ * @param mapfn A mapping function to call on every element of the array.
4124
+ * @param thisArg Value of 'this' used to invoke the mapfn.
4125
+ */
4126
+ from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array<ArrayBuffer>;
4127
+ }
4128
+ declare var Float32Array: Float32ArrayConstructor;
4129
+
4130
+ /**
4131
+ * A typed array of 64-bit float values. The contents are initialized to 0. If the requested
4132
+ * number of bytes could not be allocated an exception is raised.
4133
+ */
4134
+ interface Float64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
4135
+ /**
4136
+ * The size in bytes of each element in the array.
4137
+ */
4138
+ readonly BYTES_PER_ELEMENT: number;
4139
+
4140
+ /**
4141
+ * The ArrayBuffer instance referenced by the array.
4142
+ */
4143
+ readonly buffer: TArrayBuffer;
4144
+
4145
+ /**
4146
+ * The length in bytes of the array.
4147
+ */
4148
+ readonly byteLength: number;
4149
+
4150
+ /**
4151
+ * The offset in bytes of the array.
4152
+ */
4153
+ readonly byteOffset: number;
4154
+
4155
+ /**
4156
+ * Returns the this object after copying a section of the array identified by start and end
4157
+ * to the same array starting at position target
4158
+ * @param target If target is negative, it is treated as length+target where length is the
4159
+ * length of the array.
4160
+ * @param start If start is negative, it is treated as length+start. If end is negative, it
4161
+ * is treated as length+end.
4162
+ * @param end If not specified, length of the this object is used as its default value.
4163
+ */
4164
+ copyWithin(target: number, start: number, end?: number): this;
4165
+
4166
+ /**
4167
+ * Determines whether all the members of an array satisfy the specified test.
4168
+ * @param predicate A function that accepts up to three arguments. The every method calls
4169
+ * the predicate function for each element in the array until the predicate returns a value
4170
+ * which is coercible to the Boolean value false, or until the end of the array.
4171
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
4172
+ * If thisArg is omitted, undefined is used as the this value.
4173
+ */
4174
+ every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;
4175
+
4176
+ /**
4177
+ * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
4178
+ * @param value value to fill array section with
4179
+ * @param start index to start filling the array at. If start is negative, it is treated as
4180
+ * length+start where length is the length of the array.
4181
+ * @param end index to stop filling the array at. If end is negative, it is treated as
4182
+ * length+end.
4183
+ */
4184
+ fill(value: number, start?: number, end?: number): this;
4185
+
4186
+ /**
4187
+ * Returns the elements of an array that meet the condition specified in a callback function.
4188
+ * @param predicate A function that accepts up to three arguments. The filter method calls
4189
+ * the predicate function one time for each element in the array.
4190
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
4191
+ * If thisArg is omitted, undefined is used as the this value.
4192
+ */
4193
+ filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Float64Array<ArrayBuffer>;
4194
+
4195
+ /**
4196
+ * Returns the value of the first element in the array where predicate is true, and undefined
4197
+ * otherwise.
4198
+ * @param predicate find calls predicate once for each element of the array, in ascending
4199
+ * order, until it finds one where predicate returns true. If such an element is found, find
4200
+ * immediately returns that element value. Otherwise, find returns undefined.
4201
+ * @param thisArg If provided, it will be used as the this value for each invocation of
4202
+ * predicate. If it is not provided, undefined is used instead.
4203
+ */
4204
+ find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined;
4205
+
4206
+ /**
4207
+ * Returns the index of the first element in the array where predicate is true, and -1
4208
+ * otherwise.
4209
+ * @param predicate find calls predicate once for each element of the array, in ascending
4210
+ * order, until it finds one where predicate returns true. If such an element is found,
4211
+ * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
4212
+ * @param thisArg If provided, it will be used as the this value for each invocation of
4213
+ * predicate. If it is not provided, undefined is used instead.
4214
+ */
4215
+ findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number;
4216
+
4217
+ /**
4218
+ * Performs the specified action for each element in an array.
4219
+ * @param callbackfn A function that accepts up to three arguments. forEach calls the
4220
+ * callbackfn function one time for each element in the array.
4221
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4222
+ * If thisArg is omitted, undefined is used as the this value.
4223
+ */
4224
+ forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
4225
+
4226
+ /**
4227
+ * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
4228
+ * @param searchElement The value to locate in the array.
4229
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
4230
+ * search starts at index 0.
4231
+ */
4232
+ indexOf(searchElement: number, fromIndex?: number): number;
4233
+
4234
+ /**
4235
+ * Adds all the elements of an array separated by the specified separator string.
4236
+ * @param separator A string used to separate one element of an array from the next in the
4237
+ * resulting String. If omitted, the array elements are separated with a comma.
4238
+ */
4239
+ join(separator?: string): string;
4240
+
4241
+ /**
4242
+ * Returns the index of the last occurrence of a value in an array, or -1 if it is not present.
4243
+ * @param searchElement The value to locate in the array.
4244
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
4245
+ * search starts at index 0.
4246
+ */
4247
+ lastIndexOf(searchElement: number, fromIndex?: number): number;
4248
+
4249
+ /**
4250
+ * The length of the array.
4251
+ */
4252
+ readonly length: number;
4253
+
4254
+ /**
4255
+ * Calls a defined callback function on each element of an array, and returns an array that
4256
+ * contains the results.
4257
+ * @param callbackfn A function that accepts up to three arguments. The map method calls the
4258
+ * callbackfn function one time for each element in the array.
4259
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4260
+ * If thisArg is omitted, undefined is used as the this value.
4261
+ */
4262
+ map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Float64Array<ArrayBuffer>;
4263
+
4264
+ /**
4265
+ * Calls the specified callback function for all the elements in an array. The return value of
4266
+ * the callback function is the accumulated result, and is provided as an argument in the next
4267
+ * call to the callback function.
4268
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
4269
+ * callbackfn function one time for each element in the array.
4270
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
4271
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
4272
+ * instead of an array value.
4273
+ */
4274
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
4275
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;
4276
+
4277
+ /**
4278
+ * Calls the specified callback function for all the elements in an array. The return value of
4279
+ * the callback function is the accumulated result, and is provided as an argument in the next
4280
+ * call to the callback function.
4281
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
4282
+ * callbackfn function one time for each element in the array.
4283
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
4284
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
4285
+ * instead of an array value.
4286
+ */
4287
+ reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;
4288
+
4289
+ /**
4290
+ * Calls the specified callback function for all the elements in an array, in descending order.
4291
+ * The return value of the callback function is the accumulated result, and is provided as an
4292
+ * argument in the next call to the callback function.
4293
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
4294
+ * the callbackfn function one time for each element in the array.
4295
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
4296
+ * the accumulation. The first call to the callbackfn function provides this value as an
4297
+ * argument instead of an array value.
4298
+ */
4299
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
4300
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;
4301
+
4302
+ /**
4303
+ * Calls the specified callback function for all the elements in an array, in descending order.
4304
+ * The return value of the callback function is the accumulated result, and is provided as an
4305
+ * argument in the next call to the callback function.
4306
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
4307
+ * the callbackfn function one time for each element in the array.
4308
+ * @param initialValue If initialValue is specified, it is used as the initial value to start
4309
+ * the accumulation. The first call to the callbackfn function provides this value as an argument
4310
+ * instead of an array value.
4311
+ */
4312
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;
4313
+
4314
+ /**
4315
+ * Reverses the elements in an Array.
4316
+ */
4317
+ reverse(): this;
4318
+
4319
+ /**
4320
+ * Sets a value or an array of values.
4321
+ * @param array A typed or untyped array of values to set.
4322
+ * @param offset The index in the current array at which the values are to be written.
4323
+ */
4324
+ set(array: ArrayLike<number>, offset?: number): void;
4325
+
4326
+ /**
4327
+ * Returns a section of an array.
4328
+ * @param start The beginning of the specified portion of the array.
4329
+ * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
4330
+ */
4331
+ slice(start?: number, end?: number): Float64Array<ArrayBuffer>;
4332
+
4333
+ /**
4334
+ * Determines whether the specified callback function returns true for any element of an array.
4335
+ * @param predicate A function that accepts up to three arguments. The some method calls
4336
+ * the predicate function for each element in the array until the predicate returns a value
4337
+ * which is coercible to the Boolean value true, or until the end of the array.
4338
+ * @param thisArg An object to which the this keyword can refer in the predicate function.
4339
+ * If thisArg is omitted, undefined is used as the this value.
4340
+ */
4341
+ some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;
4342
+
4343
+ /**
4344
+ * Sorts an array.
4345
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
4346
+ * a negative value if first argument is less than second argument, zero if they're equal and a positive
4347
+ * value otherwise. If omitted, the elements are sorted in ascending order.
4348
+ * ```ts
4349
+ * [11,2,22,1].sort((a, b) => a - b)
4350
+ * ```
4351
+ */
4352
+ sort(compareFn?: (a: number, b: number) => number): this;
4353
+
4354
+ /**
4355
+ * Gets a new Float64Array view of the ArrayBuffer store for this array, referencing the elements
4356
+ * at begin, inclusive, up to end, exclusive.
4357
+ * @param begin The index of the beginning of the array.
4358
+ * @param end The index of the end of the array.
4359
+ */
4360
+ subarray(begin?: number, end?: number): Float64Array<TArrayBuffer>;
4361
+
4362
+ /**
4363
+ * Converts a number to a string by using the current locale.
4364
+ */
4365
+ toLocaleString(): string;
4366
+
4367
+ /**
4368
+ * Returns a string representation of an array.
4369
+ */
4370
+ toString(): string;
4371
+
4372
+ /** Returns the primitive value of the specified object. */
4373
+ valueOf(): this;
4374
+
4375
+ [index: number]: number;
4376
+ }
4377
+ interface Float64ArrayConstructor {
4378
+ readonly prototype: Float64Array<ArrayBufferLike>;
4379
+ new (length: number): Float64Array<ArrayBuffer>;
4380
+ new (array: ArrayLike<number>): Float64Array<ArrayBuffer>;
4381
+ new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Float64Array<TArrayBuffer>;
4382
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float64Array<ArrayBuffer>;
4383
+ new (array: ArrayLike<number> | ArrayBuffer): Float64Array<ArrayBuffer>;
4384
+
4385
+ /**
4386
+ * The size in bytes of each element in the array.
4387
+ */
4388
+ readonly BYTES_PER_ELEMENT: number;
4389
+
4390
+ /**
4391
+ * Returns a new array from a set of elements.
4392
+ * @param items A set of elements to include in the new array object.
4393
+ */
4394
+ of(...items: number[]): Float64Array<ArrayBuffer>;
4395
+
4396
+ /**
4397
+ * Creates an array from an array-like or iterable object.
4398
+ * @param arrayLike An array-like object to convert to an array.
4399
+ */
4400
+ from(arrayLike: ArrayLike<number>): Float64Array<ArrayBuffer>;
4401
+
4402
+ /**
4403
+ * Creates an array from an array-like or iterable object.
4404
+ * @param arrayLike An array-like object to convert to an array.
4405
+ * @param mapfn A mapping function to call on every element of the array.
4406
+ * @param thisArg Value of 'this' used to invoke the mapfn.
4407
+ */
4408
+ from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array<ArrayBuffer>;
4409
+ }
4410
+ declare var Float64Array: Float64ArrayConstructor;
4411
+
4412
+ /////////////////////////////
4413
+ /// ECMAScript Internationalization API
4414
+ /////////////////////////////
4415
+
4416
+ declare namespace Intl {
4417
+ interface CollatorOptions {
4418
+ usage?: "sort" | "search" | undefined;
4419
+ localeMatcher?: "lookup" | "best fit" | undefined;
4420
+ numeric?: boolean | undefined;
4421
+ caseFirst?: "upper" | "lower" | "false" | undefined;
4422
+ sensitivity?: "base" | "accent" | "case" | "variant" | undefined;
4423
+ collation?: "big5han" | "compat" | "default" | "dict" | "direct" | "ducet" | "emoji" | "eor" | "gb2312" | "phonebk" | "phonetic" | "pinyin" | "reformed" | "searchjl" | "stroke" | "trad" | "unihan" | "zhuyin" | undefined;
4424
+ ignorePunctuation?: boolean | undefined;
4425
+ }
4426
+
4427
+ interface ResolvedCollatorOptions {
4428
+ locale: string;
4429
+ usage: string;
4430
+ sensitivity: string;
4431
+ ignorePunctuation: boolean;
4432
+ collation: string;
4433
+ caseFirst: string;
4434
+ numeric: boolean;
4435
+ }
4436
+
4437
+ interface Collator {
4438
+ compare(x: string, y: string): number;
4439
+ resolvedOptions(): ResolvedCollatorOptions;
4440
+ }
4441
+
4442
+ interface CollatorConstructor {
4443
+ new (locales?: string | string[], options?: CollatorOptions): Collator;
4444
+ (locales?: string | string[], options?: CollatorOptions): Collator;
4445
+ supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
4446
+ }
4447
+
4448
+ var Collator: CollatorConstructor;
4449
+
4450
+ interface NumberFormatOptionsStyleRegistry {
4451
+ decimal: never;
4452
+ percent: never;
4453
+ currency: never;
4454
+ }
4455
+
4456
+ type NumberFormatOptionsStyle = keyof NumberFormatOptionsStyleRegistry;
4457
+
4458
+ interface NumberFormatOptionsCurrencyDisplayRegistry {
4459
+ code: never;
4460
+ symbol: never;
4461
+ name: never;
4462
+ }
4463
+
4464
+ type NumberFormatOptionsCurrencyDisplay = keyof NumberFormatOptionsCurrencyDisplayRegistry;
4465
+
4466
+ interface NumberFormatOptionsUseGroupingRegistry {}
4467
+
4468
+ type NumberFormatOptionsUseGrouping = {} extends NumberFormatOptionsUseGroupingRegistry ? boolean : keyof NumberFormatOptionsUseGroupingRegistry | "true" | "false" | boolean;
4469
+ type ResolvedNumberFormatOptionsUseGrouping = {} extends NumberFormatOptionsUseGroupingRegistry ? boolean : keyof NumberFormatOptionsUseGroupingRegistry | false;
4470
+
4471
+ interface NumberFormatOptions {
4472
+ localeMatcher?: "lookup" | "best fit" | undefined;
4473
+ style?: NumberFormatOptionsStyle | undefined;
4474
+ currency?: string | undefined;
4475
+ currencyDisplay?: NumberFormatOptionsCurrencyDisplay | undefined;
4476
+ useGrouping?: NumberFormatOptionsUseGrouping | undefined;
4477
+ minimumIntegerDigits?: number | undefined;
4478
+ minimumFractionDigits?: number | undefined;
4479
+ maximumFractionDigits?: number | undefined;
4480
+ minimumSignificantDigits?: number | undefined;
4481
+ maximumSignificantDigits?: number | undefined;
4482
+ }
4483
+
4484
+ interface ResolvedNumberFormatOptions {
4485
+ locale: string;
4486
+ numberingSystem: string;
4487
+ style: NumberFormatOptionsStyle;
4488
+ currency?: string;
4489
+ currencyDisplay?: NumberFormatOptionsCurrencyDisplay;
4490
+ minimumIntegerDigits: number;
4491
+ minimumFractionDigits?: number;
4492
+ maximumFractionDigits?: number;
4493
+ minimumSignificantDigits?: number;
4494
+ maximumSignificantDigits?: number;
4495
+ useGrouping: ResolvedNumberFormatOptionsUseGrouping;
4496
+ }
4497
+
4498
+ interface NumberFormat {
4499
+ format(value: number): string;
4500
+ resolvedOptions(): ResolvedNumberFormatOptions;
4501
+ }
4502
+
4503
+ interface NumberFormatConstructor {
4504
+ new (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
4505
+ (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
4506
+ supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
4507
+ readonly prototype: NumberFormat;
4508
+ }
4509
+
4510
+ var NumberFormat: NumberFormatConstructor;
4511
+
4512
+ interface DateTimeFormatOptions {
4513
+ localeMatcher?: "best fit" | "lookup" | undefined;
4514
+ weekday?: "long" | "short" | "narrow" | undefined;
4515
+ era?: "long" | "short" | "narrow" | undefined;
4516
+ year?: "numeric" | "2-digit" | undefined;
4517
+ month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined;
4518
+ day?: "numeric" | "2-digit" | undefined;
4519
+ hour?: "numeric" | "2-digit" | undefined;
4520
+ minute?: "numeric" | "2-digit" | undefined;
4521
+ second?: "numeric" | "2-digit" | undefined;
4522
+ timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
4523
+ formatMatcher?: "best fit" | "basic" | undefined;
4524
+ hour12?: boolean | undefined;
4525
+ timeZone?: string | undefined;
4526
+ }
4527
+
4528
+ interface ResolvedDateTimeFormatOptions {
4529
+ locale: string;
4530
+ calendar: string;
4531
+ numberingSystem: string;
4532
+ timeZone: string;
4533
+ hour12?: boolean;
4534
+ weekday?: string;
4535
+ era?: string;
4536
+ year?: string;
4537
+ month?: string;
4538
+ day?: string;
4539
+ hour?: string;
4540
+ minute?: string;
4541
+ second?: string;
4542
+ timeZoneName?: string;
4543
+ }
4544
+
4545
+ interface DateTimeFormat {
4546
+ format(date?: Date | number): string;
4547
+ resolvedOptions(): ResolvedDateTimeFormatOptions;
4548
+ }
4549
+
4550
+ interface DateTimeFormatConstructor {
4551
+ new (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
4552
+ (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
4553
+ supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
4554
+ readonly prototype: DateTimeFormat;
4555
+ }
4556
+
4557
+ var DateTimeFormat: DateTimeFormatConstructor;
4558
+ }
4559
+
4560
+ interface String {
4561
+ /**
4562
+ * Determines whether two strings are equivalent in the current or specified locale.
4563
+ * @param that String to compare to target string
4564
+ * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
4565
+ * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
4566
+ */
4567
+ localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
4568
+ }
4569
+
4570
+ interface Number {
4571
+ /**
4572
+ * Converts a number to a string by using the current or specified locale.
4573
+ * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
4574
+ * @param options An object that contains one or more properties that specify comparison options.
4575
+ */
4576
+ toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
4577
+ }
4578
+
4579
+ interface Date {
4580
+ /**
4581
+ * Converts a date and time to a string by using the current or specified locale.
4582
+ * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
4583
+ * @param options An object that contains one or more properties that specify comparison options.
4584
+ */
4585
+ toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
4586
+ /**
4587
+ * Converts a date to a string by using the current or specified locale.
4588
+ * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
4589
+ * @param options An object that contains one or more properties that specify comparison options.
4590
+ */
4591
+ toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
4592
+
4593
+ /**
4594
+ * Converts a time to a string by using the current or specified locale.
4595
+ * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
4596
+ * @param options An object that contains one or more properties that specify comparison options.
4597
+ */
4598
+ toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
4599
+ }