isomorfeus-puppetmaster 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (932) hide show
  1. checksums.yaml +4 -4
  2. data/lib/isomorfeus/puppetmaster/driver/puppeteer.rb +21 -18
  3. data/lib/isomorfeus/puppetmaster/driver_registration.rb +4 -4
  4. data/lib/isomorfeus/puppetmaster/server_registration.rb +0 -52
  5. data/lib/isomorfeus/puppetmaster/version.rb +1 -1
  6. data/lib/isomorfeus/puppetmaster.rb +6 -3
  7. data/lib/isomorfeus-puppetmaster.rb +2 -1
  8. data/node_modules/.bin/extract-zip +12 -0
  9. data/node_modules/.bin/extract-zip.cmd +17 -0
  10. data/node_modules/.bin/extract-zip.ps1 +28 -0
  11. data/node_modules/.bin/mkdirp +12 -0
  12. data/node_modules/.bin/mkdirp.cmd +17 -0
  13. data/node_modules/.bin/mkdirp.ps1 +28 -0
  14. data/node_modules/.bin/rimraf +12 -0
  15. data/node_modules/.bin/rimraf.cmd +17 -0
  16. data/node_modules/.bin/rimraf.ps1 +28 -0
  17. data/node_modules/.package-lock.json +574 -0
  18. data/node_modules/@types/node/LICENSE +21 -0
  19. data/node_modules/@types/node/README.md +16 -0
  20. data/node_modules/@types/node/assert/strict.d.ts +8 -0
  21. data/node_modules/@types/node/assert.d.ts +912 -0
  22. data/node_modules/@types/node/async_hooks.d.ts +497 -0
  23. data/node_modules/@types/node/buffer.d.ts +2142 -0
  24. data/node_modules/@types/node/child_process.d.ts +1355 -0
  25. data/node_modules/@types/node/cluster.d.ts +414 -0
  26. data/node_modules/@types/node/console.d.ts +407 -0
  27. data/node_modules/@types/node/constants.d.ts +18 -0
  28. data/node_modules/@types/node/crypto.d.ts +3224 -0
  29. data/node_modules/@types/node/dgram.d.ts +545 -0
  30. data/node_modules/@types/node/diagnostics_channel.d.ts +128 -0
  31. data/node_modules/@types/node/dns/promises.d.ts +357 -0
  32. data/node_modules/@types/node/dns.d.ts +643 -0
  33. data/node_modules/@types/node/domain.d.ts +169 -0
  34. data/node_modules/@types/node/events.d.ts +623 -0
  35. data/node_modules/@types/node/fs/promises.d.ts +997 -0
  36. data/node_modules/@types/node/fs.d.ts +3723 -0
  37. data/node_modules/@types/node/globals.d.ts +285 -0
  38. data/node_modules/@types/node/globals.global.d.ts +1 -0
  39. data/node_modules/@types/node/http.d.ts +1358 -0
  40. data/node_modules/@types/node/http2.d.ts +2100 -0
  41. data/node_modules/@types/node/https.d.ts +391 -0
  42. data/node_modules/@types/node/index.d.ts +131 -0
  43. data/node_modules/@types/node/inspector.d.ts +2738 -0
  44. data/node_modules/@types/node/module.d.ts +114 -0
  45. data/node_modules/@types/node/net.d.ts +783 -0
  46. data/node_modules/@types/node/os.d.ts +455 -0
  47. data/node_modules/@types/node/package.json +230 -0
  48. data/node_modules/@types/node/path.d.ts +172 -0
  49. data/node_modules/@types/node/perf_hooks.d.ts +555 -0
  50. data/node_modules/@types/node/process.d.ts +1477 -0
  51. data/node_modules/@types/node/punycode.d.ts +117 -0
  52. data/node_modules/@types/node/querystring.d.ts +131 -0
  53. data/node_modules/@types/node/readline.d.ts +542 -0
  54. data/node_modules/@types/node/repl.d.ts +424 -0
  55. data/node_modules/@types/node/stream/consumers.d.ts +24 -0
  56. data/node_modules/@types/node/stream/promises.d.ts +42 -0
  57. data/node_modules/@types/node/stream/web.d.ts +6 -0
  58. data/node_modules/@types/node/stream.d.ts +1181 -0
  59. data/node_modules/@types/node/string_decoder.d.ts +67 -0
  60. data/node_modules/@types/node/timers/promises.d.ts +68 -0
  61. data/node_modules/@types/node/timers.d.ts +94 -0
  62. data/node_modules/@types/node/tls.d.ts +1019 -0
  63. data/node_modules/@types/node/trace_events.d.ts +161 -0
  64. data/node_modules/@types/node/tty.d.ts +206 -0
  65. data/node_modules/@types/node/url.d.ts +798 -0
  66. data/node_modules/@types/node/util.d.ts +1556 -0
  67. data/node_modules/@types/node/v8.d.ts +378 -0
  68. data/node_modules/@types/node/vm.d.ts +504 -0
  69. data/node_modules/@types/node/wasi.d.ts +153 -0
  70. data/node_modules/@types/node/worker_threads.d.ts +649 -0
  71. data/node_modules/@types/node/zlib.d.ts +517 -0
  72. data/node_modules/@types/yauzl/LICENSE +21 -0
  73. data/node_modules/@types/yauzl/README.md +16 -0
  74. data/node_modules/@types/yauzl/index.d.ts +98 -0
  75. data/node_modules/@types/yauzl/package.json +27 -0
  76. data/node_modules/agent-base/README.md +145 -0
  77. data/node_modules/agent-base/dist/src/index.d.ts +78 -0
  78. data/node_modules/agent-base/dist/src/index.js +203 -0
  79. data/node_modules/agent-base/dist/src/index.js.map +1 -0
  80. data/node_modules/agent-base/dist/src/promisify.d.ts +4 -0
  81. data/node_modules/agent-base/dist/src/promisify.js +18 -0
  82. data/node_modules/agent-base/dist/src/promisify.js.map +1 -0
  83. data/node_modules/agent-base/package.json +64 -0
  84. data/node_modules/agent-base/src/index.ts +345 -0
  85. data/node_modules/agent-base/src/promisify.ts +33 -0
  86. data/node_modules/balanced-match/.github/FUNDING.yml +2 -0
  87. data/node_modules/balanced-match/LICENSE.md +21 -0
  88. data/node_modules/balanced-match/README.md +97 -0
  89. data/node_modules/balanced-match/index.js +62 -0
  90. data/node_modules/balanced-match/package.json +48 -0
  91. data/node_modules/base64-js/LICENSE +21 -0
  92. data/node_modules/base64-js/README.md +34 -0
  93. data/node_modules/base64-js/base64js.min.js +1 -0
  94. data/node_modules/base64-js/index.d.ts +3 -0
  95. data/node_modules/base64-js/index.js +150 -0
  96. data/node_modules/base64-js/package.json +47 -0
  97. data/node_modules/bl/.travis.yml +17 -0
  98. data/node_modules/bl/BufferList.js +396 -0
  99. data/node_modules/bl/LICENSE.md +13 -0
  100. data/node_modules/bl/README.md +247 -0
  101. data/node_modules/bl/bl.js +84 -0
  102. data/node_modules/bl/package.json +37 -0
  103. data/node_modules/bl/test/convert.js +21 -0
  104. data/node_modules/bl/test/indexOf.js +492 -0
  105. data/node_modules/bl/test/isBufferList.js +32 -0
  106. data/node_modules/bl/test/test.js +869 -0
  107. data/node_modules/brace-expansion/LICENSE +21 -0
  108. data/node_modules/brace-expansion/README.md +129 -0
  109. data/node_modules/brace-expansion/index.js +201 -0
  110. data/node_modules/brace-expansion/package.json +47 -0
  111. data/node_modules/buffer/AUTHORS.md +70 -0
  112. data/node_modules/buffer/LICENSE +21 -0
  113. data/node_modules/buffer/README.md +410 -0
  114. data/node_modules/buffer/index.d.ts +186 -0
  115. data/node_modules/buffer/index.js +1817 -0
  116. data/node_modules/buffer/package.json +96 -0
  117. data/node_modules/buffer-crc32/LICENSE +19 -0
  118. data/node_modules/buffer-crc32/README.md +47 -0
  119. data/node_modules/buffer-crc32/index.js +111 -0
  120. data/node_modules/buffer-crc32/package.json +39 -0
  121. data/node_modules/chownr/LICENSE +15 -0
  122. data/node_modules/chownr/README.md +3 -0
  123. data/node_modules/chownr/chownr.js +167 -0
  124. data/node_modules/chownr/package.json +29 -0
  125. data/node_modules/concat-map/.travis.yml +4 -0
  126. data/node_modules/concat-map/LICENSE +18 -0
  127. data/node_modules/concat-map/README.markdown +62 -0
  128. data/node_modules/concat-map/example/map.js +6 -0
  129. data/node_modules/concat-map/index.js +13 -0
  130. data/node_modules/concat-map/package.json +43 -0
  131. data/node_modules/concat-map/test/map.js +39 -0
  132. data/node_modules/debug/LICENSE +19 -0
  133. data/node_modules/debug/README.md +455 -0
  134. data/node_modules/debug/package.json +59 -0
  135. data/node_modules/debug/src/browser.js +269 -0
  136. data/node_modules/debug/src/common.js +261 -0
  137. data/node_modules/debug/src/index.js +10 -0
  138. data/node_modules/debug/src/node.js +263 -0
  139. data/node_modules/devtools-protocol/LICENSE +27 -0
  140. data/node_modules/devtools-protocol/README.md +12 -0
  141. data/node_modules/devtools-protocol/changelog.md +10491 -0
  142. data/node_modules/devtools-protocol/externs/protocol_externs.js +9734 -0
  143. data/node_modules/devtools-protocol/json/browser_protocol.json +20641 -0
  144. data/node_modules/devtools-protocol/json/js_protocol.json +3581 -0
  145. data/node_modules/devtools-protocol/package.json +18 -0
  146. data/node_modules/devtools-protocol/pdl/browser_protocol.pdl +9637 -0
  147. data/node_modules/devtools-protocol/pdl/js_protocol.pdl +1678 -0
  148. data/node_modules/devtools-protocol/types/protocol-mapping.d.ts +4321 -0
  149. data/node_modules/devtools-protocol/types/protocol-proxy-api.d.ts +3683 -0
  150. data/node_modules/devtools-protocol/types/protocol.d.ts +15538 -0
  151. data/node_modules/end-of-stream/LICENSE +21 -0
  152. data/node_modules/end-of-stream/README.md +54 -0
  153. data/node_modules/end-of-stream/index.js +94 -0
  154. data/node_modules/end-of-stream/package.json +37 -0
  155. data/node_modules/extract-zip/LICENSE +23 -0
  156. data/node_modules/extract-zip/cli.js +19 -0
  157. data/node_modules/extract-zip/index.d.ts +21 -0
  158. data/node_modules/extract-zip/index.js +173 -0
  159. data/node_modules/extract-zip/package.json +80 -0
  160. data/node_modules/extract-zip/readme.md +57 -0
  161. data/node_modules/fd-slicer/.npmignore +2 -0
  162. data/node_modules/fd-slicer/.travis.yml +7 -0
  163. data/node_modules/fd-slicer/CHANGELOG.md +49 -0
  164. data/node_modules/fd-slicer/LICENSE +21 -0
  165. data/node_modules/fd-slicer/README.md +199 -0
  166. data/node_modules/fd-slicer/index.js +296 -0
  167. data/node_modules/fd-slicer/package.json +36 -0
  168. data/node_modules/fd-slicer/test/test.js +350 -0
  169. data/node_modules/find-up/index.d.ts +137 -0
  170. data/node_modules/find-up/index.js +89 -0
  171. data/node_modules/find-up/license +9 -0
  172. data/node_modules/find-up/package.json +53 -0
  173. data/node_modules/find-up/readme.md +156 -0
  174. data/node_modules/fs-constants/LICENSE +21 -0
  175. data/node_modules/fs-constants/README.md +26 -0
  176. data/node_modules/fs-constants/browser.js +1 -0
  177. data/node_modules/fs-constants/index.js +1 -0
  178. data/node_modules/fs-constants/package.json +19 -0
  179. data/node_modules/fs.realpath/LICENSE +43 -0
  180. data/node_modules/fs.realpath/README.md +33 -0
  181. data/node_modules/fs.realpath/index.js +66 -0
  182. data/node_modules/fs.realpath/old.js +303 -0
  183. data/node_modules/fs.realpath/package.json +26 -0
  184. data/node_modules/get-stream/buffer-stream.js +52 -0
  185. data/node_modules/get-stream/index.d.ts +108 -0
  186. data/node_modules/get-stream/index.js +60 -0
  187. data/node_modules/get-stream/license +9 -0
  188. data/node_modules/get-stream/package.json +50 -0
  189. data/node_modules/get-stream/readme.md +124 -0
  190. data/node_modules/glob/LICENSE +21 -0
  191. data/node_modules/glob/README.md +375 -0
  192. data/node_modules/glob/changelog.md +67 -0
  193. data/node_modules/glob/common.js +234 -0
  194. data/node_modules/glob/glob.js +788 -0
  195. data/node_modules/glob/package.json +51 -0
  196. data/node_modules/glob/sync.js +484 -0
  197. data/node_modules/https-proxy-agent/README.md +137 -0
  198. data/node_modules/https-proxy-agent/dist/agent.d.ts +30 -0
  199. data/node_modules/https-proxy-agent/dist/agent.js +180 -0
  200. data/node_modules/https-proxy-agent/dist/agent.js.map +1 -0
  201. data/node_modules/https-proxy-agent/dist/index.d.ts +23 -0
  202. data/node_modules/https-proxy-agent/dist/index.js +14 -0
  203. data/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  204. data/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
  205. data/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
  206. data/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  207. data/node_modules/https-proxy-agent/package.json +56 -0
  208. data/node_modules/ieee754/LICENSE +11 -0
  209. data/node_modules/ieee754/README.md +51 -0
  210. data/node_modules/ieee754/index.d.ts +10 -0
  211. data/node_modules/ieee754/index.js +85 -0
  212. data/node_modules/ieee754/package.json +52 -0
  213. data/node_modules/inflight/LICENSE +15 -0
  214. data/node_modules/inflight/README.md +37 -0
  215. data/node_modules/inflight/inflight.js +54 -0
  216. data/node_modules/inflight/package.json +29 -0
  217. data/node_modules/inherits/LICENSE +16 -0
  218. data/node_modules/inherits/README.md +42 -0
  219. data/node_modules/inherits/inherits.js +9 -0
  220. data/node_modules/inherits/inherits_browser.js +27 -0
  221. data/node_modules/inherits/package.json +29 -0
  222. data/node_modules/locate-path/index.d.ts +83 -0
  223. data/node_modules/locate-path/index.js +65 -0
  224. data/node_modules/locate-path/license +9 -0
  225. data/node_modules/locate-path/package.json +45 -0
  226. data/node_modules/locate-path/readme.md +122 -0
  227. data/node_modules/minimatch/LICENSE +15 -0
  228. data/node_modules/minimatch/README.md +209 -0
  229. data/node_modules/minimatch/minimatch.js +923 -0
  230. data/node_modules/minimatch/package.json +30 -0
  231. data/node_modules/minimist/.travis.yml +8 -0
  232. data/node_modules/minimist/LICENSE +18 -0
  233. data/node_modules/minimist/example/parse.js +2 -0
  234. data/node_modules/minimist/index.js +245 -0
  235. data/node_modules/minimist/package.json +45 -0
  236. data/node_modules/minimist/readme.markdown +95 -0
  237. data/node_modules/minimist/test/all_bool.js +32 -0
  238. data/node_modules/minimist/test/bool.js +178 -0
  239. data/node_modules/minimist/test/dash.js +31 -0
  240. data/node_modules/minimist/test/default_bool.js +35 -0
  241. data/node_modules/minimist/test/dotted.js +22 -0
  242. data/node_modules/minimist/test/kv_short.js +16 -0
  243. data/node_modules/minimist/test/long.js +31 -0
  244. data/node_modules/minimist/test/num.js +36 -0
  245. data/node_modules/minimist/test/parse.js +197 -0
  246. data/node_modules/minimist/test/parse_modified.js +9 -0
  247. data/node_modules/minimist/test/proto.js +44 -0
  248. data/node_modules/minimist/test/short.js +67 -0
  249. data/node_modules/minimist/test/stop_early.js +15 -0
  250. data/node_modules/minimist/test/unknown.js +102 -0
  251. data/node_modules/minimist/test/whitespace.js +8 -0
  252. data/node_modules/mkdirp/LICENSE +21 -0
  253. data/node_modules/mkdirp/bin/cmd.js +33 -0
  254. data/node_modules/mkdirp/bin/usage.txt +12 -0
  255. data/node_modules/mkdirp/index.js +99 -0
  256. data/node_modules/mkdirp/package.json +34 -0
  257. data/node_modules/mkdirp/readme.markdown +100 -0
  258. data/node_modules/ms/index.js +162 -0
  259. data/node_modules/ms/license.md +21 -0
  260. data/node_modules/ms/package.json +37 -0
  261. data/node_modules/ms/readme.md +60 -0
  262. data/node_modules/node-fetch/CHANGELOG.md +272 -0
  263. data/node_modules/node-fetch/LICENSE.md +22 -0
  264. data/node_modules/node-fetch/README.md +590 -0
  265. data/node_modules/node-fetch/browser.js +25 -0
  266. data/node_modules/node-fetch/lib/index.es.js +1640 -0
  267. data/node_modules/node-fetch/lib/index.js +1649 -0
  268. data/node_modules/node-fetch/lib/index.mjs +1638 -0
  269. data/node_modules/node-fetch/package.json +66 -0
  270. data/node_modules/once/LICENSE +15 -0
  271. data/node_modules/once/README.md +79 -0
  272. data/node_modules/once/once.js +42 -0
  273. data/node_modules/once/package.json +33 -0
  274. data/node_modules/p-limit/index.d.ts +38 -0
  275. data/node_modules/p-limit/index.js +57 -0
  276. data/node_modules/p-limit/license +9 -0
  277. data/node_modules/p-limit/package.json +52 -0
  278. data/node_modules/p-limit/readme.md +101 -0
  279. data/node_modules/p-locate/index.d.ts +64 -0
  280. data/node_modules/p-locate/index.js +52 -0
  281. data/node_modules/p-locate/license +9 -0
  282. data/node_modules/p-locate/package.json +53 -0
  283. data/node_modules/p-locate/readme.md +90 -0
  284. data/node_modules/p-try/index.d.ts +39 -0
  285. data/node_modules/p-try/index.js +9 -0
  286. data/node_modules/p-try/license +9 -0
  287. data/node_modules/p-try/package.json +42 -0
  288. data/node_modules/p-try/readme.md +58 -0
  289. data/node_modules/path-exists/index.d.ts +28 -0
  290. data/node_modules/path-exists/index.js +23 -0
  291. data/node_modules/path-exists/license +9 -0
  292. data/node_modules/path-exists/package.json +39 -0
  293. data/node_modules/path-exists/readme.md +52 -0
  294. data/node_modules/path-is-absolute/index.js +20 -0
  295. data/node_modules/path-is-absolute/license +21 -0
  296. data/node_modules/path-is-absolute/package.json +43 -0
  297. data/node_modules/path-is-absolute/readme.md +59 -0
  298. data/node_modules/pend/LICENSE +23 -0
  299. data/node_modules/pend/README.md +41 -0
  300. data/node_modules/pend/index.js +55 -0
  301. data/node_modules/pend/package.json +18 -0
  302. data/node_modules/pend/test.js +137 -0
  303. data/node_modules/pkg-dir/index.d.ts +44 -0
  304. data/node_modules/pkg-dir/index.js +17 -0
  305. data/node_modules/pkg-dir/license +9 -0
  306. data/node_modules/pkg-dir/package.json +56 -0
  307. data/node_modules/pkg-dir/readme.md +66 -0
  308. data/node_modules/progress/CHANGELOG.md +115 -0
  309. data/node_modules/progress/LICENSE +22 -0
  310. data/node_modules/progress/Makefile +8 -0
  311. data/node_modules/progress/Readme.md +146 -0
  312. data/node_modules/progress/index.js +1 -0
  313. data/node_modules/progress/lib/node-progress.js +235 -0
  314. data/node_modules/progress/package.json +26 -0
  315. data/node_modules/proxy-from-env/.eslintrc +29 -0
  316. data/node_modules/proxy-from-env/.travis.yml +10 -0
  317. data/node_modules/proxy-from-env/LICENSE +20 -0
  318. data/node_modules/proxy-from-env/README.md +131 -0
  319. data/node_modules/proxy-from-env/index.js +108 -0
  320. data/node_modules/proxy-from-env/package.json +34 -0
  321. data/node_modules/proxy-from-env/test.js +483 -0
  322. data/node_modules/pump/.travis.yml +5 -0
  323. data/node_modules/pump/LICENSE +21 -0
  324. data/node_modules/pump/README.md +65 -0
  325. data/node_modules/pump/index.js +82 -0
  326. data/node_modules/pump/package.json +24 -0
  327. data/node_modules/pump/test-browser.js +66 -0
  328. data/node_modules/pump/test-node.js +53 -0
  329. data/node_modules/puppeteer-core/CHANGELOG.md +226 -0
  330. data/node_modules/puppeteer-core/LICENSE +202 -0
  331. data/node_modules/puppeteer-core/README.md +483 -0
  332. data/node_modules/puppeteer-core/cjs-entry-core.js +29 -0
  333. data/node_modules/puppeteer-core/cjs-entry.js +29 -0
  334. data/node_modules/puppeteer-core/install.js +89 -0
  335. data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.d.ts +111 -0
  336. data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.d.ts.map +1 -0
  337. data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.js +81 -0
  338. data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.js.map +1 -0
  339. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.d.ts +176 -0
  340. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.d.ts.map +1 -0
  341. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.js +361 -0
  342. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.js.map +1 -0
  343. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts +21 -0
  344. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts.map +1 -0
  345. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.js +85 -0
  346. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -0
  347. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.d.ts +438 -0
  348. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -0
  349. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.js +528 -0
  350. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.js.map +1 -0
  351. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.d.ts +54 -0
  352. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map +1 -0
  353. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.js +98 -0
  354. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -0
  355. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.d.ts +26 -0
  356. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -0
  357. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.js +35 -0
  358. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.js.map +1 -0
  359. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.d.ts +130 -0
  360. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.d.ts.map +1 -0
  361. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js +281 -0
  362. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js.map +1 -0
  363. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.d.ts +25 -0
  364. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.d.ts.map +1 -0
  365. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.js +18 -0
  366. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.js.map +1 -0
  367. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.d.ts +73 -0
  368. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.d.ts.map +1 -0
  369. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.js +65 -0
  370. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.js.map +1 -0
  371. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.d.ts +189 -0
  372. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.d.ts.map +1 -0
  373. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.js +329 -0
  374. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.js.map +1 -0
  375. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.d.ts +173 -0
  376. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -0
  377. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.js +655 -0
  378. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -0
  379. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.d.ts +53 -0
  380. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.d.ts.map +1 -0
  381. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.js +82 -0
  382. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.js.map +1 -0
  383. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts +41 -0
  384. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts.map +1 -0
  385. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.js +951 -0
  386. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.js.map +1 -0
  387. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.d.ts +75 -0
  388. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.d.ts.map +1 -0
  389. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.js +98 -0
  390. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.js.map +1 -0
  391. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.d.ts +25 -0
  392. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.d.ts.map +1 -0
  393. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.js +38 -0
  394. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.js.map +1 -0
  395. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.d.ts +42 -0
  396. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -0
  397. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.js +49 -0
  398. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.js.map +1 -0
  399. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.d.ts +61 -0
  400. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.d.ts.map +1 -0
  401. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.js +18 -0
  402. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.js.map +1 -0
  403. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts +93 -0
  404. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts.map +1 -0
  405. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js +117 -0
  406. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js.map +1 -0
  407. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.d.ts +82 -0
  408. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.d.ts.map +1 -0
  409. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.js +87 -0
  410. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.js.map +1 -0
  411. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.d.ts +194 -0
  412. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.d.ts.map +1 -0
  413. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js +322 -0
  414. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js.map +1 -0
  415. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.d.ts +59 -0
  416. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.d.ts.map +1 -0
  417. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.js +72 -0
  418. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.js.map +1 -0
  419. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.d.ts +733 -0
  420. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -0
  421. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.js +965 -0
  422. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.js.map +1 -0
  423. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.d.ts +341 -0
  424. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -0
  425. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.js +547 -0
  426. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -0
  427. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.d.ts +126 -0
  428. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -0
  429. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.js +155 -0
  430. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.js.map +1 -0
  431. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.d.ts +360 -0
  432. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.d.ts.map +1 -0
  433. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.js +545 -0
  434. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.js.map +1 -0
  435. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.d.ts +469 -0
  436. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -0
  437. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.js +803 -0
  438. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.js.map +1 -0
  439. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts +66 -0
  440. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts.map +1 -0
  441. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.js +149 -0
  442. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -0
  443. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.d.ts +27 -0
  444. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.d.ts.map +1 -0
  445. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.js +34 -0
  446. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.js.map +1 -0
  447. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.d.ts +97 -0
  448. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -0
  449. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js +341 -0
  450. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -0
  451. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts +157 -0
  452. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +1 -0
  453. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.js +35 -0
  454. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.js.map +1 -0
  455. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.d.ts +2011 -0
  456. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.d.ts.map +1 -0
  457. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js +2427 -0
  458. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js.map +1 -0
  459. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.d.ts +21 -0
  460. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.d.ts.map +1 -0
  461. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.js +18 -0
  462. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.js.map +1 -0
  463. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.d.ts +160 -0
  464. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.d.ts.map +1 -0
  465. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.js +162 -0
  466. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.js.map +1 -0
  467. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.d.ts +52 -0
  468. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.d.ts.map +1 -0
  469. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.js +3 -0
  470. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.js.map +1 -0
  471. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.d.ts +65 -0
  472. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.d.ts.map +1 -0
  473. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.js +166 -0
  474. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.js.map +1 -0
  475. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.d.ts +61 -0
  476. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.d.ts.map +1 -0
  477. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.js +77 -0
  478. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.js.map +1 -0
  479. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.d.ts +99 -0
  480. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.d.ts.map +1 -0
  481. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.js +145 -0
  482. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.js.map +1 -0
  483. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.d.ts +28 -0
  484. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.d.ts.map +1 -0
  485. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.js +48 -0
  486. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.js.map +1 -0
  487. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.d.ts +47 -0
  488. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.d.ts.map +1 -0
  489. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.js +104 -0
  490. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.js.map +1 -0
  491. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.d.ts +40 -0
  492. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.d.ts.map +1 -0
  493. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.js +407 -0
  494. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.js.map +1 -0
  495. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.d.ts +99 -0
  496. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.d.ts.map +1 -0
  497. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.js +113 -0
  498. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.js.map +1 -0
  499. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.d.ts +22 -0
  500. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.d.ts.map +1 -0
  501. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.js +29 -0
  502. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.js.map +1 -0
  503. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.d.ts +17 -0
  504. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.d.ts.map +1 -0
  505. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.js +44 -0
  506. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.js.map +1 -0
  507. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.d.ts +85 -0
  508. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.d.ts.map +1 -0
  509. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.js +328 -0
  510. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.js.map +1 -0
  511. data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts +17 -0
  512. data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts.map +1 -0
  513. data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js +20 -0
  514. data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js.map +1 -0
  515. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.d.ts +18 -0
  516. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.d.ts.map +1 -0
  517. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.js +45 -0
  518. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.js.map +1 -0
  519. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.d.ts +18 -0
  520. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.d.ts.map +1 -0
  521. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.js +27 -0
  522. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.js.map +1 -0
  523. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.d.ts +134 -0
  524. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.d.ts.map +1 -0
  525. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.js +502 -0
  526. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -0
  527. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.d.ts +40 -0
  528. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -0
  529. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js +225 -0
  530. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -0
  531. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.d.ts +131 -0
  532. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -0
  533. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.js +18 -0
  534. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.js.map +1 -0
  535. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.d.ts +17 -0
  536. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.d.ts.map +1 -0
  537. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js +574 -0
  538. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js.map +1 -0
  539. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts +27 -0
  540. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -0
  541. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.js +42 -0
  542. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.js.map +1 -0
  543. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.d.ts +30 -0
  544. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.d.ts.map +1 -0
  545. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.js +65 -0
  546. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.js.map +1 -0
  547. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.d.ts +154 -0
  548. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.d.ts.map +1 -0
  549. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.js +189 -0
  550. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.js.map +1 -0
  551. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.d.ts +18 -0
  552. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.d.ts.map +1 -0
  553. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.js +160 -0
  554. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.js.map +1 -0
  555. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.d.ts +18 -0
  556. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.d.ts.map +1 -0
  557. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.js +25 -0
  558. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.js.map +1 -0
  559. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.d.ts +18 -0
  560. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.d.ts.map +1 -0
  561. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.js +24 -0
  562. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.js.map +1 -0
  563. data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts +22 -0
  564. data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts.map +1 -0
  565. data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js +23 -0
  566. data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js.map +1 -0
  567. data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.d.ts +18 -0
  568. data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.d.ts.map +1 -0
  569. data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.js +24 -0
  570. data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.js.map +1 -0
  571. data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.d.ts +28 -0
  572. data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.d.ts.map +1 -0
  573. data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.js +57 -0
  574. data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.js.map +1 -0
  575. data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.d.ts +111 -0
  576. data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.d.ts.map +1 -0
  577. data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.js +81 -0
  578. data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.js.map +1 -0
  579. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.d.ts +176 -0
  580. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.d.ts.map +1 -0
  581. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.js +357 -0
  582. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.js.map +1 -0
  583. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.d.ts +21 -0
  584. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -0
  585. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js +82 -0
  586. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -0
  587. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.d.ts +438 -0
  588. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.d.ts.map +1 -0
  589. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.js +523 -0
  590. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.js.map +1 -0
  591. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.d.ts +54 -0
  592. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -0
  593. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js +75 -0
  594. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -0
  595. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts +26 -0
  596. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -0
  597. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js +31 -0
  598. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js.map +1 -0
  599. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.d.ts +130 -0
  600. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.d.ts.map +1 -0
  601. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js +276 -0
  602. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js.map +1 -0
  603. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.d.ts +25 -0
  604. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.d.ts.map +1 -0
  605. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.js +17 -0
  606. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.js.map +1 -0
  607. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.d.ts +73 -0
  608. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.d.ts.map +1 -0
  609. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js +61 -0
  610. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js.map +1 -0
  611. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.d.ts +189 -0
  612. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -0
  613. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.js +323 -0
  614. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.js.map +1 -0
  615. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.d.ts +173 -0
  616. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -0
  617. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.js +650 -0
  618. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.js.map +1 -0
  619. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.d.ts +53 -0
  620. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.d.ts.map +1 -0
  621. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js +78 -0
  622. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js.map +1 -0
  623. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.d.ts +41 -0
  624. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.d.ts.map +1 -0
  625. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.js +948 -0
  626. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.js.map +1 -0
  627. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.d.ts +75 -0
  628. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.d.ts.map +1 -0
  629. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.js +94 -0
  630. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.js.map +1 -0
  631. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.d.ts +25 -0
  632. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.d.ts.map +1 -0
  633. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.js +34 -0
  634. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.js.map +1 -0
  635. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.d.ts +42 -0
  636. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.d.ts.map +1 -0
  637. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js +44 -0
  638. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js.map +1 -0
  639. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.d.ts +61 -0
  640. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.d.ts.map +1 -0
  641. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.js +17 -0
  642. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.js.map +1 -0
  643. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts +93 -0
  644. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts.map +1 -0
  645. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js +110 -0
  646. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js.map +1 -0
  647. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.d.ts +82 -0
  648. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.d.ts.map +1 -0
  649. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.js +84 -0
  650. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.js.map +1 -0
  651. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.d.ts +194 -0
  652. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.d.ts.map +1 -0
  653. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.js +318 -0
  654. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.js.map +1 -0
  655. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.d.ts +59 -0
  656. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.d.ts.map +1 -0
  657. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js +68 -0
  658. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js.map +1 -0
  659. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.d.ts +733 -0
  660. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -0
  661. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.js +960 -0
  662. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.js.map +1 -0
  663. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.d.ts +341 -0
  664. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -0
  665. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.js +543 -0
  666. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -0
  667. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.d.ts +126 -0
  668. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -0
  669. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.js +151 -0
  670. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.js.map +1 -0
  671. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.d.ts +360 -0
  672. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.d.ts.map +1 -0
  673. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.js +539 -0
  674. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.js.map +1 -0
  675. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.d.ts +469 -0
  676. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -0
  677. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.js +778 -0
  678. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.js.map +1 -0
  679. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.d.ts +66 -0
  680. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -0
  681. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js +145 -0
  682. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js.map +1 -0
  683. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.d.ts +27 -0
  684. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.d.ts.map +1 -0
  685. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.js +31 -0
  686. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.js.map +1 -0
  687. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.d.ts +97 -0
  688. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -0
  689. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.js +337 -0
  690. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.js.map +1 -0
  691. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts +157 -0
  692. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -0
  693. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js +32 -0
  694. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js.map +1 -0
  695. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.d.ts +2011 -0
  696. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.d.ts.map +1 -0
  697. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js +2423 -0
  698. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js.map +1 -0
  699. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.d.ts +21 -0
  700. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.d.ts.map +1 -0
  701. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.js +17 -0
  702. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.js.map +1 -0
  703. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.d.ts +160 -0
  704. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.d.ts.map +1 -0
  705. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js +158 -0
  706. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js.map +1 -0
  707. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.d.ts +52 -0
  708. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.d.ts.map +1 -0
  709. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.js +2 -0
  710. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.js.map +1 -0
  711. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.d.ts +65 -0
  712. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.d.ts.map +1 -0
  713. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js +158 -0
  714. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js.map +1 -0
  715. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.d.ts +61 -0
  716. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.d.ts.map +1 -0
  717. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js +73 -0
  718. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js.map +1 -0
  719. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.d.ts +99 -0
  720. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.d.ts.map +1 -0
  721. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.js +141 -0
  722. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.js.map +1 -0
  723. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.d.ts +28 -0
  724. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.d.ts.map +1 -0
  725. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js +44 -0
  726. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js.map +1 -0
  727. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.d.ts +47 -0
  728. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.d.ts.map +1 -0
  729. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.js +100 -0
  730. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.js.map +1 -0
  731. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.d.ts +40 -0
  732. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.d.ts.map +1 -0
  733. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js +404 -0
  734. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js.map +1 -0
  735. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.d.ts +99 -0
  736. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.d.ts.map +1 -0
  737. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.js +109 -0
  738. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.js.map +1 -0
  739. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.d.ts +22 -0
  740. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.d.ts.map +1 -0
  741. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.js +25 -0
  742. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.js.map +1 -0
  743. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.d.ts +17 -0
  744. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.d.ts.map +1 -0
  745. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.js +21 -0
  746. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.js.map +1 -0
  747. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.d.ts +85 -0
  748. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.d.ts.map +1 -0
  749. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.js +306 -0
  750. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.js.map +1 -0
  751. data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts +17 -0
  752. data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts.map +1 -0
  753. data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js +17 -0
  754. data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js.map +1 -0
  755. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.d.ts +18 -0
  756. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.d.ts.map +1 -0
  757. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.js +38 -0
  758. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.js.map +1 -0
  759. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.d.ts +18 -0
  760. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.d.ts.map +1 -0
  761. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.js +23 -0
  762. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.js.map +1 -0
  763. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.d.ts +134 -0
  764. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -0
  765. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.js +476 -0
  766. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -0
  767. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.d.ts +40 -0
  768. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -0
  769. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js +199 -0
  770. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -0
  771. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.d.ts +131 -0
  772. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -0
  773. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.js +17 -0
  774. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.js.map +1 -0
  775. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.d.ts +17 -0
  776. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -0
  777. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.js +552 -0
  778. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.js.map +1 -0
  779. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts +27 -0
  780. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -0
  781. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js +35 -0
  782. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js.map +1 -0
  783. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.d.ts +30 -0
  784. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.d.ts.map +1 -0
  785. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.js +61 -0
  786. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.js.map +1 -0
  787. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.d.ts +154 -0
  788. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.d.ts.map +1 -0
  789. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.js +182 -0
  790. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.js.map +1 -0
  791. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.d.ts +18 -0
  792. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.d.ts.map +1 -0
  793. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.js +152 -0
  794. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.js.map +1 -0
  795. data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.d.ts +18 -0
  796. data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.d.ts.map +1 -0
  797. data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.js +23 -0
  798. data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.js.map +1 -0
  799. data/node_modules/puppeteer-core/lib/esm/puppeteer/node.d.ts +18 -0
  800. data/node_modules/puppeteer-core/lib/esm/puppeteer/node.d.ts.map +1 -0
  801. data/node_modules/puppeteer-core/lib/esm/puppeteer/node.js +22 -0
  802. data/node_modules/puppeteer-core/lib/esm/puppeteer/node.js.map +1 -0
  803. data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts +22 -0
  804. data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts.map +1 -0
  805. data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js +20 -0
  806. data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js.map +1 -0
  807. data/node_modules/puppeteer-core/lib/esm/puppeteer/web.d.ts +18 -0
  808. data/node_modules/puppeteer-core/lib/esm/puppeteer/web.d.ts.map +1 -0
  809. data/node_modules/puppeteer-core/lib/esm/puppeteer/web.js +22 -0
  810. data/node_modules/puppeteer-core/lib/esm/puppeteer/web.js.map +1 -0
  811. data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.d.ts +28 -0
  812. data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.d.ts.map +1 -0
  813. data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.js +54 -0
  814. data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.js.map +1 -0
  815. data/node_modules/puppeteer-core/lib/types.d.ts +6911 -0
  816. data/node_modules/puppeteer-core/package.json +122 -0
  817. data/node_modules/puppeteer-core/typescript-if-required.js +61 -0
  818. data/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  819. data/node_modules/readable-stream/GOVERNANCE.md +136 -0
  820. data/node_modules/readable-stream/LICENSE +47 -0
  821. data/node_modules/readable-stream/README.md +106 -0
  822. data/node_modules/readable-stream/errors-browser.js +127 -0
  823. data/node_modules/readable-stream/errors.js +116 -0
  824. data/node_modules/readable-stream/experimentalWarning.js +17 -0
  825. data/node_modules/readable-stream/lib/_stream_duplex.js +139 -0
  826. data/node_modules/readable-stream/lib/_stream_passthrough.js +39 -0
  827. data/node_modules/readable-stream/lib/_stream_readable.js +1124 -0
  828. data/node_modules/readable-stream/lib/_stream_transform.js +201 -0
  829. data/node_modules/readable-stream/lib/_stream_writable.js +697 -0
  830. data/node_modules/readable-stream/lib/internal/streams/async_iterator.js +207 -0
  831. data/node_modules/readable-stream/lib/internal/streams/buffer_list.js +210 -0
  832. data/node_modules/readable-stream/lib/internal/streams/destroy.js +105 -0
  833. data/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +104 -0
  834. data/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
  835. data/node_modules/readable-stream/lib/internal/streams/from.js +64 -0
  836. data/node_modules/readable-stream/lib/internal/streams/pipeline.js +97 -0
  837. data/node_modules/readable-stream/lib/internal/streams/state.js +27 -0
  838. data/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  839. data/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  840. data/node_modules/readable-stream/package.json +68 -0
  841. data/node_modules/readable-stream/readable-browser.js +9 -0
  842. data/node_modules/readable-stream/readable.js +16 -0
  843. data/node_modules/rimraf/CHANGELOG.md +65 -0
  844. data/node_modules/rimraf/LICENSE +15 -0
  845. data/node_modules/rimraf/README.md +101 -0
  846. data/node_modules/rimraf/bin.js +68 -0
  847. data/node_modules/rimraf/package.json +32 -0
  848. data/node_modules/rimraf/rimraf.js +360 -0
  849. data/node_modules/safe-buffer/LICENSE +21 -0
  850. data/node_modules/safe-buffer/README.md +584 -0
  851. data/node_modules/safe-buffer/index.d.ts +187 -0
  852. data/node_modules/safe-buffer/index.js +65 -0
  853. data/node_modules/safe-buffer/package.json +51 -0
  854. data/node_modules/string_decoder/LICENSE +48 -0
  855. data/node_modules/string_decoder/README.md +47 -0
  856. data/node_modules/string_decoder/lib/string_decoder.js +296 -0
  857. data/node_modules/string_decoder/package.json +34 -0
  858. data/node_modules/tar-fs/.travis.yml +5 -0
  859. data/node_modules/tar-fs/LICENSE +21 -0
  860. data/node_modules/tar-fs/README.md +163 -0
  861. data/node_modules/tar-fs/index.js +348 -0
  862. data/node_modules/tar-fs/package.json +41 -0
  863. data/node_modules/tar-fs/test/fixtures/a/hello.txt +1 -0
  864. data/node_modules/tar-fs/test/fixtures/b/a/test.txt +1 -0
  865. data/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
  866. data/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
  867. data/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
  868. data/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
  869. data/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
  870. data/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
  871. data/node_modules/tar-fs/test/fixtures/e/file +0 -0
  872. data/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
  873. data/node_modules/tar-fs/test/index.js +346 -0
  874. data/node_modules/tar-stream/LICENSE +21 -0
  875. data/node_modules/tar-stream/README.md +168 -0
  876. data/node_modules/tar-stream/extract.js +257 -0
  877. data/node_modules/tar-stream/headers.js +295 -0
  878. data/node_modules/tar-stream/index.js +2 -0
  879. data/node_modules/tar-stream/pack.js +255 -0
  880. data/node_modules/tar-stream/package.json +58 -0
  881. data/node_modules/tar-stream/sandbox.js +11 -0
  882. data/node_modules/through/.travis.yml +5 -0
  883. data/node_modules/through/LICENSE.APACHE2 +15 -0
  884. data/node_modules/through/LICENSE.MIT +24 -0
  885. data/node_modules/through/index.js +108 -0
  886. data/node_modules/through/package.json +36 -0
  887. data/node_modules/through/readme.markdown +64 -0
  888. data/node_modules/through/test/async.js +28 -0
  889. data/node_modules/through/test/auto-destroy.js +30 -0
  890. data/node_modules/through/test/buffering.js +71 -0
  891. data/node_modules/through/test/end.js +45 -0
  892. data/node_modules/through/test/index.js +133 -0
  893. data/node_modules/unbzip2-stream/LICENSE +24 -0
  894. data/node_modules/unbzip2-stream/README.md +59 -0
  895. data/node_modules/unbzip2-stream/dist/unbzip2-stream.min.js +1 -0
  896. data/node_modules/unbzip2-stream/index.js +92 -0
  897. data/node_modules/unbzip2-stream/lib/bit_iterator.js +39 -0
  898. data/node_modules/unbzip2-stream/lib/bzip2.js +367 -0
  899. data/node_modules/unbzip2-stream/package.json +51 -0
  900. data/node_modules/util-deprecate/History.md +16 -0
  901. data/node_modules/util-deprecate/LICENSE +24 -0
  902. data/node_modules/util-deprecate/README.md +53 -0
  903. data/node_modules/util-deprecate/browser.js +67 -0
  904. data/node_modules/util-deprecate/node.js +6 -0
  905. data/node_modules/util-deprecate/package.json +27 -0
  906. data/node_modules/wrappy/LICENSE +15 -0
  907. data/node_modules/wrappy/README.md +36 -0
  908. data/node_modules/wrappy/package.json +29 -0
  909. data/node_modules/wrappy/wrappy.js +33 -0
  910. data/node_modules/ws/LICENSE +21 -0
  911. data/node_modules/ws/README.md +496 -0
  912. data/node_modules/ws/browser.js +8 -0
  913. data/node_modules/ws/index.js +10 -0
  914. data/node_modules/ws/lib/buffer-util.js +129 -0
  915. data/node_modules/ws/lib/constants.js +10 -0
  916. data/node_modules/ws/lib/event-target.js +184 -0
  917. data/node_modules/ws/lib/extension.js +223 -0
  918. data/node_modules/ws/lib/limiter.js +55 -0
  919. data/node_modules/ws/lib/permessage-deflate.js +517 -0
  920. data/node_modules/ws/lib/receiver.js +507 -0
  921. data/node_modules/ws/lib/sender.js +405 -0
  922. data/node_modules/ws/lib/stream.js +165 -0
  923. data/node_modules/ws/lib/validation.js +104 -0
  924. data/node_modules/ws/lib/websocket-server.js +418 -0
  925. data/node_modules/ws/lib/websocket.js +942 -0
  926. data/node_modules/ws/package.json +56 -0
  927. data/node_modules/yauzl/LICENSE +21 -0
  928. data/node_modules/yauzl/README.md +658 -0
  929. data/node_modules/yauzl/index.js +796 -0
  930. data/node_modules/yauzl/package.json +40 -0
  931. data/package.json +6 -0
  932. metadata +940 -58
@@ -0,0 +1,2142 @@
1
+ /**
2
+ * `Buffer` objects are used to represent a fixed-length sequence of bytes. Many
3
+ * Node.js APIs support `Buffer`s.
4
+ *
5
+ * The `Buffer` class is a subclass of JavaScript's [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) class and
6
+ * extends it with methods that cover additional use cases. Node.js APIs accept
7
+ * plain [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array)s wherever `Buffer`s are supported as well.
8
+ *
9
+ * While the `Buffer` class is available within the global scope, it is still
10
+ * recommended to explicitly reference it via an import or require statement.
11
+ *
12
+ * ```js
13
+ * import { Buffer } from 'buffer';
14
+ *
15
+ * // Creates a zero-filled Buffer of length 10.
16
+ * const buf1 = Buffer.alloc(10);
17
+ *
18
+ * // Creates a Buffer of length 10,
19
+ * // filled with bytes which all have the value `1`.
20
+ * const buf2 = Buffer.alloc(10, 1);
21
+ *
22
+ * // Creates an uninitialized buffer of length 10.
23
+ * // This is faster than calling Buffer.alloc() but the returned
24
+ * // Buffer instance might contain old data that needs to be
25
+ * // overwritten using fill(), write(), or other functions that fill the Buffer's
26
+ * // contents.
27
+ * const buf3 = Buffer.allocUnsafe(10);
28
+ *
29
+ * // Creates a Buffer containing the bytes [1, 2, 3].
30
+ * const buf4 = Buffer.from([1, 2, 3]);
31
+ *
32
+ * // Creates a Buffer containing the bytes [1, 1, 1, 1] – the entries
33
+ * // are all truncated using `(value & 255)` to fit into the range 0–255.
34
+ * const buf5 = Buffer.from([257, 257.5, -255, '1']);
35
+ *
36
+ * // Creates a Buffer containing the UTF-8-encoded bytes for the string 'tést':
37
+ * // [0x74, 0xc3, 0xa9, 0x73, 0x74] (in hexadecimal notation)
38
+ * // [116, 195, 169, 115, 116] (in decimal notation)
39
+ * const buf6 = Buffer.from('tést');
40
+ *
41
+ * // Creates a Buffer containing the Latin-1 bytes [0x74, 0xe9, 0x73, 0x74].
42
+ * const buf7 = Buffer.from('tést', 'latin1');
43
+ * ```
44
+ * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/buffer.js)
45
+ */
46
+ declare module 'buffer' {
47
+ import { BinaryLike } from 'node:crypto';
48
+ export const INSPECT_MAX_BYTES: number;
49
+ export const kMaxLength: number;
50
+ export const kStringMaxLength: number;
51
+ export const constants: {
52
+ MAX_LENGTH: number;
53
+ MAX_STRING_LENGTH: number;
54
+ };
55
+ export type TranscodeEncoding = 'ascii' | 'utf8' | 'utf16le' | 'ucs2' | 'latin1' | 'binary';
56
+ /**
57
+ * Re-encodes the given `Buffer` or `Uint8Array` instance from one character
58
+ * encoding to another. Returns a new `Buffer` instance.
59
+ *
60
+ * Throws if the `fromEnc` or `toEnc` specify invalid character encodings or if
61
+ * conversion from `fromEnc` to `toEnc` is not permitted.
62
+ *
63
+ * Encodings supported by `buffer.transcode()` are: `'ascii'`, `'utf8'`,`'utf16le'`, `'ucs2'`, `'latin1'`, and `'binary'`.
64
+ *
65
+ * The transcoding process will use substitution characters if a given byte
66
+ * sequence cannot be adequately represented in the target encoding. For instance:
67
+ *
68
+ * ```js
69
+ * import { Buffer, transcode } from 'buffer';
70
+ *
71
+ * const newBuf = transcode(Buffer.from('€'), 'utf8', 'ascii');
72
+ * console.log(newBuf.toString('ascii'));
73
+ * // Prints: '?'
74
+ * ```
75
+ *
76
+ * Because the Euro (`€`) sign is not representable in US-ASCII, it is replaced
77
+ * with `?` in the transcoded `Buffer`.
78
+ * @since v7.1.0
79
+ * @param source A `Buffer` or `Uint8Array` instance.
80
+ * @param fromEnc The current encoding.
81
+ * @param toEnc To target encoding.
82
+ */
83
+ export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer;
84
+ export const SlowBuffer: {
85
+ /** @deprecated since v6.0.0, use `Buffer.allocUnsafeSlow()` */
86
+ new (size: number): Buffer;
87
+ prototype: Buffer;
88
+ };
89
+ /**
90
+ * Resolves a `'blob:nodedata:...'` an associated `Blob` object registered using
91
+ * a prior call to `URL.createObjectURL()`.
92
+ * @since v16.7.0
93
+ * @experimental
94
+ * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
95
+ */
96
+ export function resolveObjectURL(id: string): Blob | undefined;
97
+ export { Buffer };
98
+ /**
99
+ * @experimental
100
+ */
101
+ export interface BlobOptions {
102
+ /**
103
+ * @default 'utf8'
104
+ */
105
+ encoding?: BufferEncoding | undefined;
106
+ /**
107
+ * The Blob content-type. The intent is for `type` to convey
108
+ * the MIME media type of the data, however no validation of the type format
109
+ * is performed.
110
+ */
111
+ type?: string | undefined;
112
+ }
113
+ /**
114
+ * A [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) encapsulates immutable, raw data that can be safely shared across
115
+ * multiple worker threads.
116
+ * @since v15.7.0
117
+ * @experimental
118
+ */
119
+ export class Blob {
120
+ /**
121
+ * The total size of the `Blob` in bytes.
122
+ * @since v15.7.0
123
+ */
124
+ readonly size: number;
125
+ /**
126
+ * The content-type of the `Blob`.
127
+ * @since v15.7.0
128
+ */
129
+ readonly type: string;
130
+ /**
131
+ * Creates a new `Blob` object containing a concatenation of the given sources.
132
+ *
133
+ * {ArrayBuffer}, {TypedArray}, {DataView}, and {Buffer} sources are copied into
134
+ * the 'Blob' and can therefore be safely modified after the 'Blob' is created.
135
+ *
136
+ * String sources are also copied into the `Blob`.
137
+ */
138
+ constructor(sources: Array<BinaryLike | Blob>, options?: BlobOptions);
139
+ /**
140
+ * Returns a promise that fulfills with an [&lt;ArrayBuffer&gt;](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of
141
+ * the `Blob` data.
142
+ * @since v15.7.0
143
+ */
144
+ arrayBuffer(): Promise<ArrayBuffer>;
145
+ /**
146
+ * Creates and returns a new `Blob` containing a subset of this `Blob` objects
147
+ * data. The original `Blob` is not altered.
148
+ * @since v15.7.0
149
+ * @param start The starting index.
150
+ * @param end The ending index.
151
+ * @param type The content-type for the new `Blob`
152
+ */
153
+ slice(start?: number, end?: number, type?: string): Blob;
154
+ /**
155
+ * Returns a promise that fulfills with the contents of the `Blob` decoded as a
156
+ * UTF-8 string.
157
+ * @since v15.7.0
158
+ */
159
+ text(): Promise<string>;
160
+ /**
161
+ * Returns a new `ReadableStream` that allows the content of the `Blob` to be read.
162
+ * @since v16.7.0
163
+ */
164
+ stream(): unknown; // pending web streams types
165
+ }
166
+ export import atob = globalThis.atob;
167
+ export import btoa = globalThis.btoa;
168
+ global {
169
+ // Buffer class
170
+ type BufferEncoding = 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex';
171
+ type WithImplicitCoercion<T> =
172
+ | T
173
+ | {
174
+ valueOf(): T;
175
+ };
176
+ /**
177
+ * Raw data is stored in instances of the Buffer class.
178
+ * A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized.
179
+ * Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'
180
+ */
181
+ interface BufferConstructor {
182
+ /**
183
+ * Allocates a new buffer containing the given {str}.
184
+ *
185
+ * @param str String to store in buffer.
186
+ * @param encoding encoding to use, optional. Default is 'utf8'
187
+ * @deprecated since v10.0.0 - Use `Buffer.from(string[, encoding])` instead.
188
+ */
189
+ new (str: string, encoding?: BufferEncoding): Buffer;
190
+ /**
191
+ * Allocates a new buffer of {size} octets.
192
+ *
193
+ * @param size count of octets to allocate.
194
+ * @deprecated since v10.0.0 - Use `Buffer.alloc()` instead (also see `Buffer.allocUnsafe()`).
195
+ */
196
+ new (size: number): Buffer;
197
+ /**
198
+ * Allocates a new buffer containing the given {array} of octets.
199
+ *
200
+ * @param array The octets to store.
201
+ * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
202
+ */
203
+ new (array: Uint8Array): Buffer;
204
+ /**
205
+ * Produces a Buffer backed by the same allocated memory as
206
+ * the given {ArrayBuffer}/{SharedArrayBuffer}.
207
+ *
208
+ *
209
+ * @param arrayBuffer The ArrayBuffer with which to share memory.
210
+ * @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead.
211
+ */
212
+ new (arrayBuffer: ArrayBuffer | SharedArrayBuffer): Buffer;
213
+ /**
214
+ * Allocates a new buffer containing the given {array} of octets.
215
+ *
216
+ * @param array The octets to store.
217
+ * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
218
+ */
219
+ new (array: ReadonlyArray<any>): Buffer;
220
+ /**
221
+ * Copies the passed {buffer} data onto a new {Buffer} instance.
222
+ *
223
+ * @param buffer The buffer to copy.
224
+ * @deprecated since v10.0.0 - Use `Buffer.from(buffer)` instead.
225
+ */
226
+ new (buffer: Buffer): Buffer;
227
+ /**
228
+ * Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`.
229
+ * Array entries outside that range will be truncated to fit into it.
230
+ *
231
+ * ```js
232
+ * import { Buffer } from 'buffer';
233
+ *
234
+ * // Creates a new Buffer containing the UTF-8 bytes of the string 'buffer'.
235
+ * const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]);
236
+ * ```
237
+ *
238
+ * A `TypeError` will be thrown if `array` is not an `Array` or another type
239
+ * appropriate for `Buffer.from()` variants.
240
+ *
241
+ * `Buffer.from(array)` and `Buffer.from(string)` may also use the internal`Buffer` pool like `Buffer.allocUnsafe()` does.
242
+ * @since v5.10.0
243
+ */
244
+ from(arrayBuffer: WithImplicitCoercion<ArrayBuffer | SharedArrayBuffer>, byteOffset?: number, length?: number): Buffer;
245
+ /**
246
+ * Creates a new Buffer using the passed {data}
247
+ * @param data data to create a new Buffer
248
+ */
249
+ from(data: Uint8Array | ReadonlyArray<number>): Buffer;
250
+ from(data: WithImplicitCoercion<Uint8Array | ReadonlyArray<number> | string>): Buffer;
251
+ /**
252
+ * Creates a new Buffer containing the given JavaScript string {str}.
253
+ * If provided, the {encoding} parameter identifies the character encoding.
254
+ * If not provided, {encoding} defaults to 'utf8'.
255
+ */
256
+ from(
257
+ str:
258
+ | WithImplicitCoercion<string>
259
+ | {
260
+ [Symbol.toPrimitive](hint: 'string'): string;
261
+ },
262
+ encoding?: BufferEncoding
263
+ ): Buffer;
264
+ /**
265
+ * Creates a new Buffer using the passed {data}
266
+ * @param values to create a new Buffer
267
+ */
268
+ of(...items: number[]): Buffer;
269
+ /**
270
+ * Returns `true` if `obj` is a `Buffer`, `false` otherwise.
271
+ *
272
+ * ```js
273
+ * import { Buffer } from 'buffer';
274
+ *
275
+ * Buffer.isBuffer(Buffer.alloc(10)); // true
276
+ * Buffer.isBuffer(Buffer.from('foo')); // true
277
+ * Buffer.isBuffer('a string'); // false
278
+ * Buffer.isBuffer([]); // false
279
+ * Buffer.isBuffer(new Uint8Array(1024)); // false
280
+ * ```
281
+ * @since v0.1.101
282
+ */
283
+ isBuffer(obj: any): obj is Buffer;
284
+ /**
285
+ * Returns `true` if `encoding` is the name of a supported character encoding,
286
+ * or `false` otherwise.
287
+ *
288
+ * ```js
289
+ * import { Buffer } from 'buffer';
290
+ *
291
+ * console.log(Buffer.isEncoding('utf8'));
292
+ * // Prints: true
293
+ *
294
+ * console.log(Buffer.isEncoding('hex'));
295
+ * // Prints: true
296
+ *
297
+ * console.log(Buffer.isEncoding('utf/8'));
298
+ * // Prints: false
299
+ *
300
+ * console.log(Buffer.isEncoding(''));
301
+ * // Prints: false
302
+ * ```
303
+ * @since v0.9.1
304
+ * @param encoding A character encoding name to check.
305
+ */
306
+ isEncoding(encoding: string): encoding is BufferEncoding;
307
+ /**
308
+ * Returns the byte length of a string when encoded using `encoding`.
309
+ * This is not the same as [`String.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length), which does not account
310
+ * for the encoding that is used to convert the string into bytes.
311
+ *
312
+ * For `'base64'`, `'base64url'`, and `'hex'`, this function assumes valid input.
313
+ * For strings that contain non-base64/hex-encoded data (e.g. whitespace), the
314
+ * return value might be greater than the length of a `Buffer` created from the
315
+ * string.
316
+ *
317
+ * ```js
318
+ * import { Buffer } from 'buffer';
319
+ *
320
+ * const str = '\u00bd + \u00bc = \u00be';
321
+ *
322
+ * console.log(`${str}: ${str.length} characters, ` +
323
+ * `${Buffer.byteLength(str, 'utf8')} bytes`);
324
+ * // Prints: ½ + ¼ = ¾: 9 characters, 12 bytes
325
+ * ```
326
+ *
327
+ * When `string` is a
328
+ * `Buffer`/[`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView)/[`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/-
329
+ * Reference/Global_Objects/TypedArray)/[`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)/[`SharedArrayBuffer`](https://develop-
330
+ * er.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer), the byte length as reported by `.byteLength`is returned.
331
+ * @since v0.1.90
332
+ * @param string A value to calculate the length of.
333
+ * @param [encoding='utf8'] If `string` is a string, this is its encoding.
334
+ * @return The number of bytes contained within `string`.
335
+ */
336
+ byteLength(string: string | NodeJS.ArrayBufferView | ArrayBuffer | SharedArrayBuffer, encoding?: BufferEncoding): number;
337
+ /**
338
+ * Returns a new `Buffer` which is the result of concatenating all the `Buffer`instances in the `list` together.
339
+ *
340
+ * If the list has no items, or if the `totalLength` is 0, then a new zero-length`Buffer` is returned.
341
+ *
342
+ * If `totalLength` is not provided, it is calculated from the `Buffer` instances
343
+ * in `list` by adding their lengths.
344
+ *
345
+ * If `totalLength` is provided, it is coerced to an unsigned integer. If the
346
+ * combined length of the `Buffer`s in `list` exceeds `totalLength`, the result is
347
+ * truncated to `totalLength`.
348
+ *
349
+ * ```js
350
+ * import { Buffer } from 'buffer';
351
+ *
352
+ * // Create a single `Buffer` from a list of three `Buffer` instances.
353
+ *
354
+ * const buf1 = Buffer.alloc(10);
355
+ * const buf2 = Buffer.alloc(14);
356
+ * const buf3 = Buffer.alloc(18);
357
+ * const totalLength = buf1.length + buf2.length + buf3.length;
358
+ *
359
+ * console.log(totalLength);
360
+ * // Prints: 42
361
+ *
362
+ * const bufA = Buffer.concat([buf1, buf2, buf3], totalLength);
363
+ *
364
+ * console.log(bufA);
365
+ * // Prints: <Buffer 00 00 00 00 ...>
366
+ * console.log(bufA.length);
367
+ * // Prints: 42
368
+ * ```
369
+ *
370
+ * `Buffer.concat()` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does.
371
+ * @since v0.7.11
372
+ * @param list List of `Buffer` or {@link Uint8Array} instances to concatenate.
373
+ * @param totalLength Total length of the `Buffer` instances in `list` when concatenated.
374
+ */
375
+ concat(list: ReadonlyArray<Uint8Array>, totalLength?: number): Buffer;
376
+ /**
377
+ * Compares `buf1` to `buf2`, typically for the purpose of sorting arrays of`Buffer` instances. This is equivalent to calling `buf1.compare(buf2)`.
378
+ *
379
+ * ```js
380
+ * import { Buffer } from 'buffer';
381
+ *
382
+ * const buf1 = Buffer.from('1234');
383
+ * const buf2 = Buffer.from('0123');
384
+ * const arr = [buf1, buf2];
385
+ *
386
+ * console.log(arr.sort(Buffer.compare));
387
+ * // Prints: [ <Buffer 30 31 32 33>, <Buffer 31 32 33 34> ]
388
+ * // (This result is equal to: [buf2, buf1].)
389
+ * ```
390
+ * @since v0.11.13
391
+ * @return Either `-1`, `0`, or `1`, depending on the result of the comparison. See `compare` for details.
392
+ */
393
+ compare(buf1: Uint8Array, buf2: Uint8Array): number;
394
+ /**
395
+ * Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the`Buffer` will be zero-filled.
396
+ *
397
+ * ```js
398
+ * import { Buffer } from 'buffer';
399
+ *
400
+ * const buf = Buffer.alloc(5);
401
+ *
402
+ * console.log(buf);
403
+ * // Prints: <Buffer 00 00 00 00 00>
404
+ * ```
405
+ *
406
+ * If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown.
407
+ *
408
+ * If `fill` is specified, the allocated `Buffer` will be initialized by calling `buf.fill(fill)`.
409
+ *
410
+ * ```js
411
+ * import { Buffer } from 'buffer';
412
+ *
413
+ * const buf = Buffer.alloc(5, 'a');
414
+ *
415
+ * console.log(buf);
416
+ * // Prints: <Buffer 61 61 61 61 61>
417
+ * ```
418
+ *
419
+ * If both `fill` and `encoding` are specified, the allocated `Buffer` will be
420
+ * initialized by calling `buf.fill(fill, encoding)`.
421
+ *
422
+ * ```js
423
+ * import { Buffer } from 'buffer';
424
+ *
425
+ * const buf = Buffer.alloc(11, 'aGVsbG8gd29ybGQ=', 'base64');
426
+ *
427
+ * console.log(buf);
428
+ * // Prints: <Buffer 68 65 6c 6c 6f 20 77 6f 72 6c 64>
429
+ * ```
430
+ *
431
+ * Calling `Buffer.alloc()` can be measurably slower than the alternative `Buffer.allocUnsafe()` but ensures that the newly created `Buffer` instance
432
+ * contents will never contain sensitive data from previous allocations, including
433
+ * data that might not have been allocated for `Buffer`s.
434
+ *
435
+ * A `TypeError` will be thrown if `size` is not a number.
436
+ * @since v5.10.0
437
+ * @param size The desired length of the new `Buffer`.
438
+ * @param [fill=0] A value to pre-fill the new `Buffer` with.
439
+ * @param [encoding='utf8'] If `fill` is a string, this is its encoding.
440
+ */
441
+ alloc(size: number, fill?: string | Buffer | number, encoding?: BufferEncoding): Buffer;
442
+ /**
443
+ * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown.
444
+ *
445
+ * The underlying memory for `Buffer` instances created in this way is _not_
446
+ * _initialized_. The contents of the newly created `Buffer` are unknown and_may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes.
447
+ *
448
+ * ```js
449
+ * import { Buffer } from 'buffer';
450
+ *
451
+ * const buf = Buffer.allocUnsafe(10);
452
+ *
453
+ * console.log(buf);
454
+ * // Prints (contents may vary): <Buffer a0 8b 28 3f 01 00 00 00 50 32>
455
+ *
456
+ * buf.fill(0);
457
+ *
458
+ * console.log(buf);
459
+ * // Prints: <Buffer 00 00 00 00 00 00 00 00 00 00>
460
+ * ```
461
+ *
462
+ * A `TypeError` will be thrown if `size` is not a number.
463
+ *
464
+ * The `Buffer` module pre-allocates an internal `Buffer` instance of
465
+ * size `Buffer.poolSize` that is used as a pool for the fast allocation of new`Buffer` instances created using `Buffer.allocUnsafe()`,`Buffer.from(array)`, `Buffer.concat()`, and the
466
+ * deprecated`new Buffer(size)` constructor only when `size` is less than or equal
467
+ * to `Buffer.poolSize >> 1` (floor of `Buffer.poolSize` divided by two).
468
+ *
469
+ * Use of this pre-allocated internal memory pool is a key difference between
470
+ * calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`.
471
+ * Specifically, `Buffer.alloc(size, fill)` will _never_ use the internal `Buffer`pool, while `Buffer.allocUnsafe(size).fill(fill)`_will_ use the internal`Buffer` pool if `size` is less
472
+ * than or equal to half `Buffer.poolSize`. The
473
+ * difference is subtle but can be important when an application requires the
474
+ * additional performance that `Buffer.allocUnsafe()` provides.
475
+ * @since v5.10.0
476
+ * @param size The desired length of the new `Buffer`.
477
+ */
478
+ allocUnsafe(size: number): Buffer;
479
+ /**
480
+ * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown. A zero-length `Buffer` is created
481
+ * if `size` is 0.
482
+ *
483
+ * The underlying memory for `Buffer` instances created in this way is _not_
484
+ * _initialized_. The contents of the newly created `Buffer` are unknown and_may contain sensitive data_. Use `buf.fill(0)` to initialize
485
+ * such `Buffer` instances with zeroes.
486
+ *
487
+ * When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances,
488
+ * allocations under 4 KB are sliced from a single pre-allocated `Buffer`. This
489
+ * allows applications to avoid the garbage collection overhead of creating many
490
+ * individually allocated `Buffer` instances. This approach improves both
491
+ * performance and memory usage by eliminating the need to track and clean up as
492
+ * many individual `ArrayBuffer` objects.
493
+ *
494
+ * However, in the case where a developer may need to retain a small chunk of
495
+ * memory from a pool for an indeterminate amount of time, it may be appropriate
496
+ * to create an un-pooled `Buffer` instance using `Buffer.allocUnsafeSlow()` and
497
+ * then copying out the relevant bits.
498
+ *
499
+ * ```js
500
+ * import { Buffer } from 'buffer';
501
+ *
502
+ * // Need to keep around a few small chunks of memory.
503
+ * const store = [];
504
+ *
505
+ * socket.on('readable', () => {
506
+ * let data;
507
+ * while (null !== (data = readable.read())) {
508
+ * // Allocate for retained data.
509
+ * const sb = Buffer.allocUnsafeSlow(10);
510
+ *
511
+ * // Copy the data into the new allocation.
512
+ * data.copy(sb, 0, 0, 10);
513
+ *
514
+ * store.push(sb);
515
+ * }
516
+ * });
517
+ * ```
518
+ *
519
+ * A `TypeError` will be thrown if `size` is not a number.
520
+ * @since v5.12.0
521
+ * @param size The desired length of the new `Buffer`.
522
+ */
523
+ allocUnsafeSlow(size: number): Buffer;
524
+ /**
525
+ * This is the size (in bytes) of pre-allocated internal `Buffer` instances used
526
+ * for pooling. This value may be modified.
527
+ * @since v0.11.3
528
+ */
529
+ poolSize: number;
530
+ }
531
+ interface Buffer extends Uint8Array {
532
+ /**
533
+ * Writes `string` to `buf` at `offset` according to the character encoding in`encoding`. The `length` parameter is the number of bytes to write. If `buf` did
534
+ * not contain enough space to fit the entire string, only part of `string` will be
535
+ * written. However, partially encoded characters will not be written.
536
+ *
537
+ * ```js
538
+ * import { Buffer } from 'buffer';
539
+ *
540
+ * const buf = Buffer.alloc(256);
541
+ *
542
+ * const len = buf.write('\u00bd + \u00bc = \u00be', 0);
543
+ *
544
+ * console.log(`${len} bytes: ${buf.toString('utf8', 0, len)}`);
545
+ * // Prints: 12 bytes: ½ + ¼ = ¾
546
+ *
547
+ * const buffer = Buffer.alloc(10);
548
+ *
549
+ * const length = buffer.write('abcd', 8);
550
+ *
551
+ * console.log(`${length} bytes: ${buffer.toString('utf8', 8, 10)}`);
552
+ * // Prints: 2 bytes : ab
553
+ * ```
554
+ * @since v0.1.90
555
+ * @param string String to write to `buf`.
556
+ * @param [offset=0] Number of bytes to skip before starting to write `string`.
557
+ * @param [length=buf.length - offset] Maximum number of bytes to write (written bytes will not exceed `buf.length - offset`).
558
+ * @param [encoding='utf8'] The character encoding of `string`.
559
+ * @return Number of bytes written.
560
+ */
561
+ write(string: string, encoding?: BufferEncoding): number;
562
+ write(string: string, offset: number, encoding?: BufferEncoding): number;
563
+ write(string: string, offset: number, length: number, encoding?: BufferEncoding): number;
564
+ /**
565
+ * Decodes `buf` to a string according to the specified character encoding in`encoding`. `start` and `end` may be passed to decode only a subset of `buf`.
566
+ *
567
+ * If `encoding` is `'utf8'` and a byte sequence in the input is not valid UTF-8,
568
+ * then each invalid byte is replaced with the replacement character `U+FFFD`.
569
+ *
570
+ * The maximum length of a string instance (in UTF-16 code units) is available
571
+ * as {@link constants.MAX_STRING_LENGTH}.
572
+ *
573
+ * ```js
574
+ * import { Buffer } from 'buffer';
575
+ *
576
+ * const buf1 = Buffer.allocUnsafe(26);
577
+ *
578
+ * for (let i = 0; i < 26; i++) {
579
+ * // 97 is the decimal ASCII value for 'a'.
580
+ * buf1[i] = i + 97;
581
+ * }
582
+ *
583
+ * console.log(buf1.toString('utf8'));
584
+ * // Prints: abcdefghijklmnopqrstuvwxyz
585
+ * console.log(buf1.toString('utf8', 0, 5));
586
+ * // Prints: abcde
587
+ *
588
+ * const buf2 = Buffer.from('tést');
589
+ *
590
+ * console.log(buf2.toString('hex'));
591
+ * // Prints: 74c3a97374
592
+ * console.log(buf2.toString('utf8', 0, 3));
593
+ * // Prints: té
594
+ * console.log(buf2.toString(undefined, 0, 3));
595
+ * // Prints: té
596
+ * ```
597
+ * @since v0.1.90
598
+ * @param [encoding='utf8'] The character encoding to use.
599
+ * @param [start=0] The byte offset to start decoding at.
600
+ * @param [end=buf.length] The byte offset to stop decoding at (not inclusive).
601
+ */
602
+ toString(encoding?: BufferEncoding, start?: number, end?: number): string;
603
+ /**
604
+ * Returns a JSON representation of `buf`. [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) implicitly calls
605
+ * this function when stringifying a `Buffer` instance.
606
+ *
607
+ * `Buffer.from()` accepts objects in the format returned from this method.
608
+ * In particular, `Buffer.from(buf.toJSON())` works like `Buffer.from(buf)`.
609
+ *
610
+ * ```js
611
+ * import { Buffer } from 'buffer';
612
+ *
613
+ * const buf = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5]);
614
+ * const json = JSON.stringify(buf);
615
+ *
616
+ * console.log(json);
617
+ * // Prints: {"type":"Buffer","data":[1,2,3,4,5]}
618
+ *
619
+ * const copy = JSON.parse(json, (key, value) => {
620
+ * return value &#x26;&#x26; value.type === 'Buffer' ?
621
+ * Buffer.from(value) :
622
+ * value;
623
+ * });
624
+ *
625
+ * console.log(copy);
626
+ * // Prints: <Buffer 01 02 03 04 05>
627
+ * ```
628
+ * @since v0.9.2
629
+ */
630
+ toJSON(): {
631
+ type: 'Buffer';
632
+ data: number[];
633
+ };
634
+ /**
635
+ * Returns `true` if both `buf` and `otherBuffer` have exactly the same bytes,`false` otherwise. Equivalent to `buf.compare(otherBuffer) === 0`.
636
+ *
637
+ * ```js
638
+ * import { Buffer } from 'buffer';
639
+ *
640
+ * const buf1 = Buffer.from('ABC');
641
+ * const buf2 = Buffer.from('414243', 'hex');
642
+ * const buf3 = Buffer.from('ABCD');
643
+ *
644
+ * console.log(buf1.equals(buf2));
645
+ * // Prints: true
646
+ * console.log(buf1.equals(buf3));
647
+ * // Prints: false
648
+ * ```
649
+ * @since v0.11.13
650
+ * @param otherBuffer A `Buffer` or {@link Uint8Array} with which to compare `buf`.
651
+ */
652
+ equals(otherBuffer: Uint8Array): boolean;
653
+ /**
654
+ * Compares `buf` with `target` and returns a number indicating whether `buf`comes before, after, or is the same as `target` in sort order.
655
+ * Comparison is based on the actual sequence of bytes in each `Buffer`.
656
+ *
657
+ * * `0` is returned if `target` is the same as `buf`
658
+ * * `1` is returned if `target` should come _before_`buf` when sorted.
659
+ * * `-1` is returned if `target` should come _after_`buf` when sorted.
660
+ *
661
+ * ```js
662
+ * import { Buffer } from 'buffer';
663
+ *
664
+ * const buf1 = Buffer.from('ABC');
665
+ * const buf2 = Buffer.from('BCD');
666
+ * const buf3 = Buffer.from('ABCD');
667
+ *
668
+ * console.log(buf1.compare(buf1));
669
+ * // Prints: 0
670
+ * console.log(buf1.compare(buf2));
671
+ * // Prints: -1
672
+ * console.log(buf1.compare(buf3));
673
+ * // Prints: -1
674
+ * console.log(buf2.compare(buf1));
675
+ * // Prints: 1
676
+ * console.log(buf2.compare(buf3));
677
+ * // Prints: 1
678
+ * console.log([buf1, buf2, buf3].sort(Buffer.compare));
679
+ * // Prints: [ <Buffer 41 42 43>, <Buffer 41 42 43 44>, <Buffer 42 43 44> ]
680
+ * // (This result is equal to: [buf1, buf3, buf2].)
681
+ * ```
682
+ *
683
+ * The optional `targetStart`, `targetEnd`, `sourceStart`, and `sourceEnd`arguments can be used to limit the comparison to specific ranges within `target`and `buf` respectively.
684
+ *
685
+ * ```js
686
+ * import { Buffer } from 'buffer';
687
+ *
688
+ * const buf1 = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8, 9]);
689
+ * const buf2 = Buffer.from([5, 6, 7, 8, 9, 1, 2, 3, 4]);
690
+ *
691
+ * console.log(buf1.compare(buf2, 5, 9, 0, 4));
692
+ * // Prints: 0
693
+ * console.log(buf1.compare(buf2, 0, 6, 4));
694
+ * // Prints: -1
695
+ * console.log(buf1.compare(buf2, 5, 6, 5));
696
+ * // Prints: 1
697
+ * ```
698
+ *
699
+ * `ERR_OUT_OF_RANGE` is thrown if `targetStart < 0`, `sourceStart < 0`,`targetEnd > target.byteLength`, or `sourceEnd > source.byteLength`.
700
+ * @since v0.11.13
701
+ * @param target A `Buffer` or {@link Uint8Array} with which to compare `buf`.
702
+ * @param [targetStart=0] The offset within `target` at which to begin comparison.
703
+ * @param [targetEnd=target.length] The offset within `target` at which to end comparison (not inclusive).
704
+ * @param [sourceStart=0] The offset within `buf` at which to begin comparison.
705
+ * @param [sourceEnd=buf.length] The offset within `buf` at which to end comparison (not inclusive).
706
+ */
707
+ compare(target: Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): number;
708
+ /**
709
+ * Copies data from a region of `buf` to a region in `target`, even if the `target`memory region overlaps with `buf`.
710
+ *
711
+ * [`TypedArray.prototype.set()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) performs the same operation, and is available
712
+ * for all TypedArrays, including Node.js `Buffer`s, although it takes
713
+ * different function arguments.
714
+ *
715
+ * ```js
716
+ * import { Buffer } from 'buffer';
717
+ *
718
+ * // Create two `Buffer` instances.
719
+ * const buf1 = Buffer.allocUnsafe(26);
720
+ * const buf2 = Buffer.allocUnsafe(26).fill('!');
721
+ *
722
+ * for (let i = 0; i < 26; i++) {
723
+ * // 97 is the decimal ASCII value for 'a'.
724
+ * buf1[i] = i + 97;
725
+ * }
726
+ *
727
+ * // Copy `buf1` bytes 16 through 19 into `buf2` starting at byte 8 of `buf2`.
728
+ * buf1.copy(buf2, 8, 16, 20);
729
+ * // This is equivalent to:
730
+ * // buf2.set(buf1.subarray(16, 20), 8);
731
+ *
732
+ * console.log(buf2.toString('ascii', 0, 25));
733
+ * // Prints: !!!!!!!!qrst!!!!!!!!!!!!!
734
+ * ```
735
+ *
736
+ * ```js
737
+ * import { Buffer } from 'buffer';
738
+ *
739
+ * // Create a `Buffer` and copy data from one region to an overlapping region
740
+ * // within the same `Buffer`.
741
+ *
742
+ * const buf = Buffer.allocUnsafe(26);
743
+ *
744
+ * for (let i = 0; i < 26; i++) {
745
+ * // 97 is the decimal ASCII value for 'a'.
746
+ * buf[i] = i + 97;
747
+ * }
748
+ *
749
+ * buf.copy(buf, 0, 4, 10);
750
+ *
751
+ * console.log(buf.toString());
752
+ * // Prints: efghijghijklmnopqrstuvwxyz
753
+ * ```
754
+ * @since v0.1.90
755
+ * @param target A `Buffer` or {@link Uint8Array} to copy into.
756
+ * @param [targetStart=0] The offset within `target` at which to begin writing.
757
+ * @param [sourceStart=0] The offset within `buf` from which to begin copying.
758
+ * @param [sourceEnd=buf.length] The offset within `buf` at which to stop copying (not inclusive).
759
+ * @return The number of bytes copied.
760
+ */
761
+ copy(target: Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number;
762
+ /**
763
+ * Returns a new `Buffer` that references the same memory as the original, but
764
+ * offset and cropped by the `start` and `end` indices.
765
+ *
766
+ * This is the same behavior as `buf.subarray()`.
767
+ *
768
+ * This method is not compatible with the `Uint8Array.prototype.slice()`,
769
+ * which is a superclass of `Buffer`. To copy the slice, use`Uint8Array.prototype.slice()`.
770
+ *
771
+ * ```js
772
+ * import { Buffer } from 'buffer';
773
+ *
774
+ * const buf = Buffer.from('buffer');
775
+ *
776
+ * const copiedBuf = Uint8Array.prototype.slice.call(buf);
777
+ * copiedBuf[0]++;
778
+ * console.log(copiedBuf.toString());
779
+ * // Prints: cuffer
780
+ *
781
+ * console.log(buf.toString());
782
+ * // Prints: buffer
783
+ * ```
784
+ * @since v0.3.0
785
+ * @param [start=0] Where the new `Buffer` will start.
786
+ * @param [end=buf.length] Where the new `Buffer` will end (not inclusive).
787
+ */
788
+ slice(start?: number, end?: number): Buffer;
789
+ /**
790
+ * Returns a new `Buffer` that references the same memory as the original, but
791
+ * offset and cropped by the `start` and `end` indices.
792
+ *
793
+ * Specifying `end` greater than `buf.length` will return the same result as
794
+ * that of `end` equal to `buf.length`.
795
+ *
796
+ * This method is inherited from [`TypedArray.prototype.subarray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray).
797
+ *
798
+ * Modifying the new `Buffer` slice will modify the memory in the original `Buffer`because the allocated memory of the two objects overlap.
799
+ *
800
+ * ```js
801
+ * import { Buffer } from 'buffer';
802
+ *
803
+ * // Create a `Buffer` with the ASCII alphabet, take a slice, and modify one byte
804
+ * // from the original `Buffer`.
805
+ *
806
+ * const buf1 = Buffer.allocUnsafe(26);
807
+ *
808
+ * for (let i = 0; i < 26; i++) {
809
+ * // 97 is the decimal ASCII value for 'a'.
810
+ * buf1[i] = i + 97;
811
+ * }
812
+ *
813
+ * const buf2 = buf1.subarray(0, 3);
814
+ *
815
+ * console.log(buf2.toString('ascii', 0, buf2.length));
816
+ * // Prints: abc
817
+ *
818
+ * buf1[0] = 33;
819
+ *
820
+ * console.log(buf2.toString('ascii', 0, buf2.length));
821
+ * // Prints: !bc
822
+ * ```
823
+ *
824
+ * Specifying negative indexes causes the slice to be generated relative to the
825
+ * end of `buf` rather than the beginning.
826
+ *
827
+ * ```js
828
+ * import { Buffer } from 'buffer';
829
+ *
830
+ * const buf = Buffer.from('buffer');
831
+ *
832
+ * console.log(buf.subarray(-6, -1).toString());
833
+ * // Prints: buffe
834
+ * // (Equivalent to buf.subarray(0, 5).)
835
+ *
836
+ * console.log(buf.subarray(-6, -2).toString());
837
+ * // Prints: buff
838
+ * // (Equivalent to buf.subarray(0, 4).)
839
+ *
840
+ * console.log(buf.subarray(-5, -2).toString());
841
+ * // Prints: uff
842
+ * // (Equivalent to buf.subarray(1, 4).)
843
+ * ```
844
+ * @since v3.0.0
845
+ * @param [start=0] Where the new `Buffer` will start.
846
+ * @param [end=buf.length] Where the new `Buffer` will end (not inclusive).
847
+ */
848
+ subarray(start?: number, end?: number): Buffer;
849
+ /**
850
+ * Writes `value` to `buf` at the specified `offset` as big-endian.
851
+ *
852
+ * `value` is interpreted and written as a two's complement signed integer.
853
+ *
854
+ * ```js
855
+ * import { Buffer } from 'buffer';
856
+ *
857
+ * const buf = Buffer.allocUnsafe(8);
858
+ *
859
+ * buf.writeBigInt64BE(0x0102030405060708n, 0);
860
+ *
861
+ * console.log(buf);
862
+ * // Prints: <Buffer 01 02 03 04 05 06 07 08>
863
+ * ```
864
+ * @since v12.0.0, v10.20.0
865
+ * @param value Number to be written to `buf`.
866
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`.
867
+ * @return `offset` plus the number of bytes written.
868
+ */
869
+ writeBigInt64BE(value: bigint, offset?: number): number;
870
+ /**
871
+ * Writes `value` to `buf` at the specified `offset` as little-endian.
872
+ *
873
+ * `value` is interpreted and written as a two's complement signed integer.
874
+ *
875
+ * ```js
876
+ * import { Buffer } from 'buffer';
877
+ *
878
+ * const buf = Buffer.allocUnsafe(8);
879
+ *
880
+ * buf.writeBigInt64LE(0x0102030405060708n, 0);
881
+ *
882
+ * console.log(buf);
883
+ * // Prints: <Buffer 08 07 06 05 04 03 02 01>
884
+ * ```
885
+ * @since v12.0.0, v10.20.0
886
+ * @param value Number to be written to `buf`.
887
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`.
888
+ * @return `offset` plus the number of bytes written.
889
+ */
890
+ writeBigInt64LE(value: bigint, offset?: number): number;
891
+ /**
892
+ * Writes `value` to `buf` at the specified `offset` as big-endian.
893
+ *
894
+ * This function is also available under the `writeBigUint64BE` alias.
895
+ *
896
+ * ```js
897
+ * import { Buffer } from 'buffer';
898
+ *
899
+ * const buf = Buffer.allocUnsafe(8);
900
+ *
901
+ * buf.writeBigUInt64BE(0xdecafafecacefaden, 0);
902
+ *
903
+ * console.log(buf);
904
+ * // Prints: <Buffer de ca fa fe ca ce fa de>
905
+ * ```
906
+ * @since v12.0.0, v10.20.0
907
+ * @param value Number to be written to `buf`.
908
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`.
909
+ * @return `offset` plus the number of bytes written.
910
+ */
911
+ writeBigUInt64BE(value: bigint, offset?: number): number;
912
+ /**
913
+ * Writes `value` to `buf` at the specified `offset` as little-endian
914
+ *
915
+ * ```js
916
+ * import { Buffer } from 'buffer';
917
+ *
918
+ * const buf = Buffer.allocUnsafe(8);
919
+ *
920
+ * buf.writeBigUInt64LE(0xdecafafecacefaden, 0);
921
+ *
922
+ * console.log(buf);
923
+ * // Prints: <Buffer de fa ce ca fe fa ca de>
924
+ * ```
925
+ *
926
+ * This function is also available under the `writeBigUint64LE` alias.
927
+ * @since v12.0.0, v10.20.0
928
+ * @param value Number to be written to `buf`.
929
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`.
930
+ * @return `offset` plus the number of bytes written.
931
+ */
932
+ writeBigUInt64LE(value: bigint, offset?: number): number;
933
+ /**
934
+ * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined
935
+ * when `value` is anything other than an unsigned integer.
936
+ *
937
+ * This function is also available under the `writeUintLE` alias.
938
+ *
939
+ * ```js
940
+ * import { Buffer } from 'buffer';
941
+ *
942
+ * const buf = Buffer.allocUnsafe(6);
943
+ *
944
+ * buf.writeUIntLE(0x1234567890ab, 0, 6);
945
+ *
946
+ * console.log(buf);
947
+ * // Prints: <Buffer ab 90 78 56 34 12>
948
+ * ```
949
+ * @since v0.5.5
950
+ * @param value Number to be written to `buf`.
951
+ * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`.
952
+ * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`.
953
+ * @return `offset` plus the number of bytes written.
954
+ */
955
+ writeUIntLE(value: number, offset: number, byteLength: number): number;
956
+ /**
957
+ * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined
958
+ * when `value` is anything other than an unsigned integer.
959
+ *
960
+ * This function is also available under the `writeUintBE` alias.
961
+ *
962
+ * ```js
963
+ * import { Buffer } from 'buffer';
964
+ *
965
+ * const buf = Buffer.allocUnsafe(6);
966
+ *
967
+ * buf.writeUIntBE(0x1234567890ab, 0, 6);
968
+ *
969
+ * console.log(buf);
970
+ * // Prints: <Buffer 12 34 56 78 90 ab>
971
+ * ```
972
+ * @since v0.5.5
973
+ * @param value Number to be written to `buf`.
974
+ * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`.
975
+ * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`.
976
+ * @return `offset` plus the number of bytes written.
977
+ */
978
+ writeUIntBE(value: number, offset: number, byteLength: number): number;
979
+ /**
980
+ * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined
981
+ * when `value` is anything other than a signed integer.
982
+ *
983
+ * ```js
984
+ * import { Buffer } from 'buffer';
985
+ *
986
+ * const buf = Buffer.allocUnsafe(6);
987
+ *
988
+ * buf.writeIntLE(0x1234567890ab, 0, 6);
989
+ *
990
+ * console.log(buf);
991
+ * // Prints: <Buffer ab 90 78 56 34 12>
992
+ * ```
993
+ * @since v0.11.15
994
+ * @param value Number to be written to `buf`.
995
+ * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`.
996
+ * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`.
997
+ * @return `offset` plus the number of bytes written.
998
+ */
999
+ writeIntLE(value: number, offset: number, byteLength: number): number;
1000
+ /**
1001
+ * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined when`value` is anything other than a
1002
+ * signed integer.
1003
+ *
1004
+ * ```js
1005
+ * import { Buffer } from 'buffer';
1006
+ *
1007
+ * const buf = Buffer.allocUnsafe(6);
1008
+ *
1009
+ * buf.writeIntBE(0x1234567890ab, 0, 6);
1010
+ *
1011
+ * console.log(buf);
1012
+ * // Prints: <Buffer 12 34 56 78 90 ab>
1013
+ * ```
1014
+ * @since v0.11.15
1015
+ * @param value Number to be written to `buf`.
1016
+ * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`.
1017
+ * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`.
1018
+ * @return `offset` plus the number of bytes written.
1019
+ */
1020
+ writeIntBE(value: number, offset: number, byteLength: number): number;
1021
+ /**
1022
+ * Reads an unsigned, big-endian 64-bit integer from `buf` at the specified`offset`.
1023
+ *
1024
+ * This function is also available under the `readBigUint64BE` alias.
1025
+ *
1026
+ * ```js
1027
+ * import { Buffer } from 'buffer';
1028
+ *
1029
+ * const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]);
1030
+ *
1031
+ * console.log(buf.readBigUInt64BE(0));
1032
+ * // Prints: 4294967295n
1033
+ * ```
1034
+ * @since v12.0.0, v10.20.0
1035
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`.
1036
+ */
1037
+ readBigUInt64BE(offset?: number): bigint;
1038
+ /**
1039
+ * Reads an unsigned, little-endian 64-bit integer from `buf` at the specified`offset`.
1040
+ *
1041
+ * This function is also available under the `readBigUint64LE` alias.
1042
+ *
1043
+ * ```js
1044
+ * import { Buffer } from 'buffer';
1045
+ *
1046
+ * const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]);
1047
+ *
1048
+ * console.log(buf.readBigUInt64LE(0));
1049
+ * // Prints: 18446744069414584320n
1050
+ * ```
1051
+ * @since v12.0.0, v10.20.0
1052
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`.
1053
+ */
1054
+ readBigUInt64LE(offset?: number): bigint;
1055
+ /**
1056
+ * Reads a signed, big-endian 64-bit integer from `buf` at the specified `offset`.
1057
+ *
1058
+ * Integers read from a `Buffer` are interpreted as two's complement signed
1059
+ * values.
1060
+ * @since v12.0.0, v10.20.0
1061
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`.
1062
+ */
1063
+ readBigInt64BE(offset?: number): bigint;
1064
+ /**
1065
+ * Reads a signed, little-endian 64-bit integer from `buf` at the specified`offset`.
1066
+ *
1067
+ * Integers read from a `Buffer` are interpreted as two's complement signed
1068
+ * values.
1069
+ * @since v12.0.0, v10.20.0
1070
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`.
1071
+ */
1072
+ readBigInt64LE(offset?: number): bigint;
1073
+ /**
1074
+ * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as an unsigned, little-endian integer supporting
1075
+ * up to 48 bits of accuracy.
1076
+ *
1077
+ * This function is also available under the `readUintLE` alias.
1078
+ *
1079
+ * ```js
1080
+ * import { Buffer } from 'buffer';
1081
+ *
1082
+ * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
1083
+ *
1084
+ * console.log(buf.readUIntLE(0, 6).toString(16));
1085
+ * // Prints: ab9078563412
1086
+ * ```
1087
+ * @since v0.11.15
1088
+ * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`.
1089
+ * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`.
1090
+ */
1091
+ readUIntLE(offset: number, byteLength: number): number;
1092
+ /**
1093
+ * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as an unsigned big-endian integer supporting
1094
+ * up to 48 bits of accuracy.
1095
+ *
1096
+ * This function is also available under the `readUintBE` alias.
1097
+ *
1098
+ * ```js
1099
+ * import { Buffer } from 'buffer';
1100
+ *
1101
+ * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
1102
+ *
1103
+ * console.log(buf.readUIntBE(0, 6).toString(16));
1104
+ * // Prints: 1234567890ab
1105
+ * console.log(buf.readUIntBE(1, 6).toString(16));
1106
+ * // Throws ERR_OUT_OF_RANGE.
1107
+ * ```
1108
+ * @since v0.11.15
1109
+ * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`.
1110
+ * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`.
1111
+ */
1112
+ readUIntBE(offset: number, byteLength: number): number;
1113
+ /**
1114
+ * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as a little-endian, two's complement signed value
1115
+ * supporting up to 48 bits of accuracy.
1116
+ *
1117
+ * ```js
1118
+ * import { Buffer } from 'buffer';
1119
+ *
1120
+ * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
1121
+ *
1122
+ * console.log(buf.readIntLE(0, 6).toString(16));
1123
+ * // Prints: -546f87a9cbee
1124
+ * ```
1125
+ * @since v0.11.15
1126
+ * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`.
1127
+ * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`.
1128
+ */
1129
+ readIntLE(offset: number, byteLength: number): number;
1130
+ /**
1131
+ * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as a big-endian, two's complement signed value
1132
+ * supporting up to 48 bits of accuracy.
1133
+ *
1134
+ * ```js
1135
+ * import { Buffer } from 'buffer';
1136
+ *
1137
+ * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
1138
+ *
1139
+ * console.log(buf.readIntBE(0, 6).toString(16));
1140
+ * // Prints: 1234567890ab
1141
+ * console.log(buf.readIntBE(1, 6).toString(16));
1142
+ * // Throws ERR_OUT_OF_RANGE.
1143
+ * console.log(buf.readIntBE(1, 0).toString(16));
1144
+ * // Throws ERR_OUT_OF_RANGE.
1145
+ * ```
1146
+ * @since v0.11.15
1147
+ * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`.
1148
+ * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`.
1149
+ */
1150
+ readIntBE(offset: number, byteLength: number): number;
1151
+ /**
1152
+ * Reads an unsigned 8-bit integer from `buf` at the specified `offset`.
1153
+ *
1154
+ * This function is also available under the `readUint8` alias.
1155
+ *
1156
+ * ```js
1157
+ * import { Buffer } from 'buffer';
1158
+ *
1159
+ * const buf = Buffer.from([1, -2]);
1160
+ *
1161
+ * console.log(buf.readUInt8(0));
1162
+ * // Prints: 1
1163
+ * console.log(buf.readUInt8(1));
1164
+ * // Prints: 254
1165
+ * console.log(buf.readUInt8(2));
1166
+ * // Throws ERR_OUT_OF_RANGE.
1167
+ * ```
1168
+ * @since v0.5.0
1169
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 1`.
1170
+ */
1171
+ readUInt8(offset?: number): number;
1172
+ /**
1173
+ * Reads an unsigned, little-endian 16-bit integer from `buf` at the specified`offset`.
1174
+ *
1175
+ * This function is also available under the `readUint16LE` alias.
1176
+ *
1177
+ * ```js
1178
+ * import { Buffer } from 'buffer';
1179
+ *
1180
+ * const buf = Buffer.from([0x12, 0x34, 0x56]);
1181
+ *
1182
+ * console.log(buf.readUInt16LE(0).toString(16));
1183
+ * // Prints: 3412
1184
+ * console.log(buf.readUInt16LE(1).toString(16));
1185
+ * // Prints: 5634
1186
+ * console.log(buf.readUInt16LE(2).toString(16));
1187
+ * // Throws ERR_OUT_OF_RANGE.
1188
+ * ```
1189
+ * @since v0.5.5
1190
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`.
1191
+ */
1192
+ readUInt16LE(offset?: number): number;
1193
+ /**
1194
+ * Reads an unsigned, big-endian 16-bit integer from `buf` at the specified`offset`.
1195
+ *
1196
+ * This function is also available under the `readUint16BE` alias.
1197
+ *
1198
+ * ```js
1199
+ * import { Buffer } from 'buffer';
1200
+ *
1201
+ * const buf = Buffer.from([0x12, 0x34, 0x56]);
1202
+ *
1203
+ * console.log(buf.readUInt16BE(0).toString(16));
1204
+ * // Prints: 1234
1205
+ * console.log(buf.readUInt16BE(1).toString(16));
1206
+ * // Prints: 3456
1207
+ * ```
1208
+ * @since v0.5.5
1209
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`.
1210
+ */
1211
+ readUInt16BE(offset?: number): number;
1212
+ /**
1213
+ * Reads an unsigned, little-endian 32-bit integer from `buf` at the specified`offset`.
1214
+ *
1215
+ * This function is also available under the `readUint32LE` alias.
1216
+ *
1217
+ * ```js
1218
+ * import { Buffer } from 'buffer';
1219
+ *
1220
+ * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]);
1221
+ *
1222
+ * console.log(buf.readUInt32LE(0).toString(16));
1223
+ * // Prints: 78563412
1224
+ * console.log(buf.readUInt32LE(1).toString(16));
1225
+ * // Throws ERR_OUT_OF_RANGE.
1226
+ * ```
1227
+ * @since v0.5.5
1228
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
1229
+ */
1230
+ readUInt32LE(offset?: number): number;
1231
+ /**
1232
+ * Reads an unsigned, big-endian 32-bit integer from `buf` at the specified`offset`.
1233
+ *
1234
+ * This function is also available under the `readUint32BE` alias.
1235
+ *
1236
+ * ```js
1237
+ * import { Buffer } from 'buffer';
1238
+ *
1239
+ * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]);
1240
+ *
1241
+ * console.log(buf.readUInt32BE(0).toString(16));
1242
+ * // Prints: 12345678
1243
+ * ```
1244
+ * @since v0.5.5
1245
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
1246
+ */
1247
+ readUInt32BE(offset?: number): number;
1248
+ /**
1249
+ * Reads a signed 8-bit integer from `buf` at the specified `offset`.
1250
+ *
1251
+ * Integers read from a `Buffer` are interpreted as two's complement signed values.
1252
+ *
1253
+ * ```js
1254
+ * import { Buffer } from 'buffer';
1255
+ *
1256
+ * const buf = Buffer.from([-1, 5]);
1257
+ *
1258
+ * console.log(buf.readInt8(0));
1259
+ * // Prints: -1
1260
+ * console.log(buf.readInt8(1));
1261
+ * // Prints: 5
1262
+ * console.log(buf.readInt8(2));
1263
+ * // Throws ERR_OUT_OF_RANGE.
1264
+ * ```
1265
+ * @since v0.5.0
1266
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 1`.
1267
+ */
1268
+ readInt8(offset?: number): number;
1269
+ /**
1270
+ * Reads a signed, little-endian 16-bit integer from `buf` at the specified`offset`.
1271
+ *
1272
+ * Integers read from a `Buffer` are interpreted as two's complement signed values.
1273
+ *
1274
+ * ```js
1275
+ * import { Buffer } from 'buffer';
1276
+ *
1277
+ * const buf = Buffer.from([0, 5]);
1278
+ *
1279
+ * console.log(buf.readInt16LE(0));
1280
+ * // Prints: 1280
1281
+ * console.log(buf.readInt16LE(1));
1282
+ * // Throws ERR_OUT_OF_RANGE.
1283
+ * ```
1284
+ * @since v0.5.5
1285
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`.
1286
+ */
1287
+ readInt16LE(offset?: number): number;
1288
+ /**
1289
+ * Reads a signed, big-endian 16-bit integer from `buf` at the specified `offset`.
1290
+ *
1291
+ * Integers read from a `Buffer` are interpreted as two's complement signed values.
1292
+ *
1293
+ * ```js
1294
+ * import { Buffer } from 'buffer';
1295
+ *
1296
+ * const buf = Buffer.from([0, 5]);
1297
+ *
1298
+ * console.log(buf.readInt16BE(0));
1299
+ * // Prints: 5
1300
+ * ```
1301
+ * @since v0.5.5
1302
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`.
1303
+ */
1304
+ readInt16BE(offset?: number): number;
1305
+ /**
1306
+ * Reads a signed, little-endian 32-bit integer from `buf` at the specified`offset`.
1307
+ *
1308
+ * Integers read from a `Buffer` are interpreted as two's complement signed values.
1309
+ *
1310
+ * ```js
1311
+ * import { Buffer } from 'buffer';
1312
+ *
1313
+ * const buf = Buffer.from([0, 0, 0, 5]);
1314
+ *
1315
+ * console.log(buf.readInt32LE(0));
1316
+ * // Prints: 83886080
1317
+ * console.log(buf.readInt32LE(1));
1318
+ * // Throws ERR_OUT_OF_RANGE.
1319
+ * ```
1320
+ * @since v0.5.5
1321
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
1322
+ */
1323
+ readInt32LE(offset?: number): number;
1324
+ /**
1325
+ * Reads a signed, big-endian 32-bit integer from `buf` at the specified `offset`.
1326
+ *
1327
+ * Integers read from a `Buffer` are interpreted as two's complement signed values.
1328
+ *
1329
+ * ```js
1330
+ * import { Buffer } from 'buffer';
1331
+ *
1332
+ * const buf = Buffer.from([0, 0, 0, 5]);
1333
+ *
1334
+ * console.log(buf.readInt32BE(0));
1335
+ * // Prints: 5
1336
+ * ```
1337
+ * @since v0.5.5
1338
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
1339
+ */
1340
+ readInt32BE(offset?: number): number;
1341
+ /**
1342
+ * Reads a 32-bit, little-endian float from `buf` at the specified `offset`.
1343
+ *
1344
+ * ```js
1345
+ * import { Buffer } from 'buffer';
1346
+ *
1347
+ * const buf = Buffer.from([1, 2, 3, 4]);
1348
+ *
1349
+ * console.log(buf.readFloatLE(0));
1350
+ * // Prints: 1.539989614439558e-36
1351
+ * console.log(buf.readFloatLE(1));
1352
+ * // Throws ERR_OUT_OF_RANGE.
1353
+ * ```
1354
+ * @since v0.11.15
1355
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
1356
+ */
1357
+ readFloatLE(offset?: number): number;
1358
+ /**
1359
+ * Reads a 32-bit, big-endian float from `buf` at the specified `offset`.
1360
+ *
1361
+ * ```js
1362
+ * import { Buffer } from 'buffer';
1363
+ *
1364
+ * const buf = Buffer.from([1, 2, 3, 4]);
1365
+ *
1366
+ * console.log(buf.readFloatBE(0));
1367
+ * // Prints: 2.387939260590663e-38
1368
+ * ```
1369
+ * @since v0.11.15
1370
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
1371
+ */
1372
+ readFloatBE(offset?: number): number;
1373
+ /**
1374
+ * Reads a 64-bit, little-endian double from `buf` at the specified `offset`.
1375
+ *
1376
+ * ```js
1377
+ * import { Buffer } from 'buffer';
1378
+ *
1379
+ * const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]);
1380
+ *
1381
+ * console.log(buf.readDoubleLE(0));
1382
+ * // Prints: 5.447603722011605e-270
1383
+ * console.log(buf.readDoubleLE(1));
1384
+ * // Throws ERR_OUT_OF_RANGE.
1385
+ * ```
1386
+ * @since v0.11.15
1387
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 8`.
1388
+ */
1389
+ readDoubleLE(offset?: number): number;
1390
+ /**
1391
+ * Reads a 64-bit, big-endian double from `buf` at the specified `offset`.
1392
+ *
1393
+ * ```js
1394
+ * import { Buffer } from 'buffer';
1395
+ *
1396
+ * const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]);
1397
+ *
1398
+ * console.log(buf.readDoubleBE(0));
1399
+ * // Prints: 8.20788039913184e-304
1400
+ * ```
1401
+ * @since v0.11.15
1402
+ * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 8`.
1403
+ */
1404
+ readDoubleBE(offset?: number): number;
1405
+ reverse(): this;
1406
+ /**
1407
+ * Interprets `buf` as an array of unsigned 16-bit integers and swaps the
1408
+ * byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 2.
1409
+ *
1410
+ * ```js
1411
+ * import { Buffer } from 'buffer';
1412
+ *
1413
+ * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]);
1414
+ *
1415
+ * console.log(buf1);
1416
+ * // Prints: <Buffer 01 02 03 04 05 06 07 08>
1417
+ *
1418
+ * buf1.swap16();
1419
+ *
1420
+ * console.log(buf1);
1421
+ * // Prints: <Buffer 02 01 04 03 06 05 08 07>
1422
+ *
1423
+ * const buf2 = Buffer.from([0x1, 0x2, 0x3]);
1424
+ *
1425
+ * buf2.swap16();
1426
+ * // Throws ERR_INVALID_BUFFER_SIZE.
1427
+ * ```
1428
+ *
1429
+ * One convenient use of `buf.swap16()` is to perform a fast in-place conversion
1430
+ * between UTF-16 little-endian and UTF-16 big-endian:
1431
+ *
1432
+ * ```js
1433
+ * import { Buffer } from 'buffer';
1434
+ *
1435
+ * const buf = Buffer.from('This is little-endian UTF-16', 'utf16le');
1436
+ * buf.swap16(); // Convert to big-endian UTF-16 text.
1437
+ * ```
1438
+ * @since v5.10.0
1439
+ * @return A reference to `buf`.
1440
+ */
1441
+ swap16(): Buffer;
1442
+ /**
1443
+ * Interprets `buf` as an array of unsigned 32-bit integers and swaps the
1444
+ * byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 4.
1445
+ *
1446
+ * ```js
1447
+ * import { Buffer } from 'buffer';
1448
+ *
1449
+ * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]);
1450
+ *
1451
+ * console.log(buf1);
1452
+ * // Prints: <Buffer 01 02 03 04 05 06 07 08>
1453
+ *
1454
+ * buf1.swap32();
1455
+ *
1456
+ * console.log(buf1);
1457
+ * // Prints: <Buffer 04 03 02 01 08 07 06 05>
1458
+ *
1459
+ * const buf2 = Buffer.from([0x1, 0x2, 0x3]);
1460
+ *
1461
+ * buf2.swap32();
1462
+ * // Throws ERR_INVALID_BUFFER_SIZE.
1463
+ * ```
1464
+ * @since v5.10.0
1465
+ * @return A reference to `buf`.
1466
+ */
1467
+ swap32(): Buffer;
1468
+ /**
1469
+ * Interprets `buf` as an array of 64-bit numbers and swaps byte order _in-place_.
1470
+ * Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 8.
1471
+ *
1472
+ * ```js
1473
+ * import { Buffer } from 'buffer';
1474
+ *
1475
+ * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]);
1476
+ *
1477
+ * console.log(buf1);
1478
+ * // Prints: <Buffer 01 02 03 04 05 06 07 08>
1479
+ *
1480
+ * buf1.swap64();
1481
+ *
1482
+ * console.log(buf1);
1483
+ * // Prints: <Buffer 08 07 06 05 04 03 02 01>
1484
+ *
1485
+ * const buf2 = Buffer.from([0x1, 0x2, 0x3]);
1486
+ *
1487
+ * buf2.swap64();
1488
+ * // Throws ERR_INVALID_BUFFER_SIZE.
1489
+ * ```
1490
+ * @since v6.3.0
1491
+ * @return A reference to `buf`.
1492
+ */
1493
+ swap64(): Buffer;
1494
+ /**
1495
+ * Writes `value` to `buf` at the specified `offset`. `value` must be a
1496
+ * valid unsigned 8-bit integer. Behavior is undefined when `value` is anything
1497
+ * other than an unsigned 8-bit integer.
1498
+ *
1499
+ * This function is also available under the `writeUint8` alias.
1500
+ *
1501
+ * ```js
1502
+ * import { Buffer } from 'buffer';
1503
+ *
1504
+ * const buf = Buffer.allocUnsafe(4);
1505
+ *
1506
+ * buf.writeUInt8(0x3, 0);
1507
+ * buf.writeUInt8(0x4, 1);
1508
+ * buf.writeUInt8(0x23, 2);
1509
+ * buf.writeUInt8(0x42, 3);
1510
+ *
1511
+ * console.log(buf);
1512
+ * // Prints: <Buffer 03 04 23 42>
1513
+ * ```
1514
+ * @since v0.5.0
1515
+ * @param value Number to be written to `buf`.
1516
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 1`.
1517
+ * @return `offset` plus the number of bytes written.
1518
+ */
1519
+ writeUInt8(value: number, offset?: number): number;
1520
+ /**
1521
+ * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid unsigned 16-bit integer. Behavior is undefined when `value` is
1522
+ * anything other than an unsigned 16-bit integer.
1523
+ *
1524
+ * This function is also available under the `writeUint16LE` alias.
1525
+ *
1526
+ * ```js
1527
+ * import { Buffer } from 'buffer';
1528
+ *
1529
+ * const buf = Buffer.allocUnsafe(4);
1530
+ *
1531
+ * buf.writeUInt16LE(0xdead, 0);
1532
+ * buf.writeUInt16LE(0xbeef, 2);
1533
+ *
1534
+ * console.log(buf);
1535
+ * // Prints: <Buffer ad de ef be>
1536
+ * ```
1537
+ * @since v0.5.5
1538
+ * @param value Number to be written to `buf`.
1539
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`.
1540
+ * @return `offset` plus the number of bytes written.
1541
+ */
1542
+ writeUInt16LE(value: number, offset?: number): number;
1543
+ /**
1544
+ * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid unsigned 16-bit integer. Behavior is undefined when `value`is anything other than an
1545
+ * unsigned 16-bit integer.
1546
+ *
1547
+ * This function is also available under the `writeUint16BE` alias.
1548
+ *
1549
+ * ```js
1550
+ * import { Buffer } from 'buffer';
1551
+ *
1552
+ * const buf = Buffer.allocUnsafe(4);
1553
+ *
1554
+ * buf.writeUInt16BE(0xdead, 0);
1555
+ * buf.writeUInt16BE(0xbeef, 2);
1556
+ *
1557
+ * console.log(buf);
1558
+ * // Prints: <Buffer de ad be ef>
1559
+ * ```
1560
+ * @since v0.5.5
1561
+ * @param value Number to be written to `buf`.
1562
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`.
1563
+ * @return `offset` plus the number of bytes written.
1564
+ */
1565
+ writeUInt16BE(value: number, offset?: number): number;
1566
+ /**
1567
+ * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid unsigned 32-bit integer. Behavior is undefined when `value` is
1568
+ * anything other than an unsigned 32-bit integer.
1569
+ *
1570
+ * This function is also available under the `writeUint32LE` alias.
1571
+ *
1572
+ * ```js
1573
+ * import { Buffer } from 'buffer';
1574
+ *
1575
+ * const buf = Buffer.allocUnsafe(4);
1576
+ *
1577
+ * buf.writeUInt32LE(0xfeedface, 0);
1578
+ *
1579
+ * console.log(buf);
1580
+ * // Prints: <Buffer ce fa ed fe>
1581
+ * ```
1582
+ * @since v0.5.5
1583
+ * @param value Number to be written to `buf`.
1584
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
1585
+ * @return `offset` plus the number of bytes written.
1586
+ */
1587
+ writeUInt32LE(value: number, offset?: number): number;
1588
+ /**
1589
+ * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid unsigned 32-bit integer. Behavior is undefined when `value`is anything other than an
1590
+ * unsigned 32-bit integer.
1591
+ *
1592
+ * This function is also available under the `writeUint32BE` alias.
1593
+ *
1594
+ * ```js
1595
+ * import { Buffer } from 'buffer';
1596
+ *
1597
+ * const buf = Buffer.allocUnsafe(4);
1598
+ *
1599
+ * buf.writeUInt32BE(0xfeedface, 0);
1600
+ *
1601
+ * console.log(buf);
1602
+ * // Prints: <Buffer fe ed fa ce>
1603
+ * ```
1604
+ * @since v0.5.5
1605
+ * @param value Number to be written to `buf`.
1606
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
1607
+ * @return `offset` plus the number of bytes written.
1608
+ */
1609
+ writeUInt32BE(value: number, offset?: number): number;
1610
+ /**
1611
+ * Writes `value` to `buf` at the specified `offset`. `value` must be a valid
1612
+ * signed 8-bit integer. Behavior is undefined when `value` is anything other than
1613
+ * a signed 8-bit integer.
1614
+ *
1615
+ * `value` is interpreted and written as a two's complement signed integer.
1616
+ *
1617
+ * ```js
1618
+ * import { Buffer } from 'buffer';
1619
+ *
1620
+ * const buf = Buffer.allocUnsafe(2);
1621
+ *
1622
+ * buf.writeInt8(2, 0);
1623
+ * buf.writeInt8(-2, 1);
1624
+ *
1625
+ * console.log(buf);
1626
+ * // Prints: <Buffer 02 fe>
1627
+ * ```
1628
+ * @since v0.5.0
1629
+ * @param value Number to be written to `buf`.
1630
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 1`.
1631
+ * @return `offset` plus the number of bytes written.
1632
+ */
1633
+ writeInt8(value: number, offset?: number): number;
1634
+ /**
1635
+ * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid signed 16-bit integer. Behavior is undefined when `value` is
1636
+ * anything other than a signed 16-bit integer.
1637
+ *
1638
+ * The `value` is interpreted and written as a two's complement signed integer.
1639
+ *
1640
+ * ```js
1641
+ * import { Buffer } from 'buffer';
1642
+ *
1643
+ * const buf = Buffer.allocUnsafe(2);
1644
+ *
1645
+ * buf.writeInt16LE(0x0304, 0);
1646
+ *
1647
+ * console.log(buf);
1648
+ * // Prints: <Buffer 04 03>
1649
+ * ```
1650
+ * @since v0.5.5
1651
+ * @param value Number to be written to `buf`.
1652
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`.
1653
+ * @return `offset` plus the number of bytes written.
1654
+ */
1655
+ writeInt16LE(value: number, offset?: number): number;
1656
+ /**
1657
+ * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid signed 16-bit integer. Behavior is undefined when `value` is
1658
+ * anything other than a signed 16-bit integer.
1659
+ *
1660
+ * The `value` is interpreted and written as a two's complement signed integer.
1661
+ *
1662
+ * ```js
1663
+ * import { Buffer } from 'buffer';
1664
+ *
1665
+ * const buf = Buffer.allocUnsafe(2);
1666
+ *
1667
+ * buf.writeInt16BE(0x0102, 0);
1668
+ *
1669
+ * console.log(buf);
1670
+ * // Prints: <Buffer 01 02>
1671
+ * ```
1672
+ * @since v0.5.5
1673
+ * @param value Number to be written to `buf`.
1674
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`.
1675
+ * @return `offset` plus the number of bytes written.
1676
+ */
1677
+ writeInt16BE(value: number, offset?: number): number;
1678
+ /**
1679
+ * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid signed 32-bit integer. Behavior is undefined when `value` is
1680
+ * anything other than a signed 32-bit integer.
1681
+ *
1682
+ * The `value` is interpreted and written as a two's complement signed integer.
1683
+ *
1684
+ * ```js
1685
+ * import { Buffer } from 'buffer';
1686
+ *
1687
+ * const buf = Buffer.allocUnsafe(4);
1688
+ *
1689
+ * buf.writeInt32LE(0x05060708, 0);
1690
+ *
1691
+ * console.log(buf);
1692
+ * // Prints: <Buffer 08 07 06 05>
1693
+ * ```
1694
+ * @since v0.5.5
1695
+ * @param value Number to be written to `buf`.
1696
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
1697
+ * @return `offset` plus the number of bytes written.
1698
+ */
1699
+ writeInt32LE(value: number, offset?: number): number;
1700
+ /**
1701
+ * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid signed 32-bit integer. Behavior is undefined when `value` is
1702
+ * anything other than a signed 32-bit integer.
1703
+ *
1704
+ * The `value` is interpreted and written as a two's complement signed integer.
1705
+ *
1706
+ * ```js
1707
+ * import { Buffer } from 'buffer';
1708
+ *
1709
+ * const buf = Buffer.allocUnsafe(4);
1710
+ *
1711
+ * buf.writeInt32BE(0x01020304, 0);
1712
+ *
1713
+ * console.log(buf);
1714
+ * // Prints: <Buffer 01 02 03 04>
1715
+ * ```
1716
+ * @since v0.5.5
1717
+ * @param value Number to be written to `buf`.
1718
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
1719
+ * @return `offset` plus the number of bytes written.
1720
+ */
1721
+ writeInt32BE(value: number, offset?: number): number;
1722
+ /**
1723
+ * Writes `value` to `buf` at the specified `offset` as little-endian. Behavior is
1724
+ * undefined when `value` is anything other than a JavaScript number.
1725
+ *
1726
+ * ```js
1727
+ * import { Buffer } from 'buffer';
1728
+ *
1729
+ * const buf = Buffer.allocUnsafe(4);
1730
+ *
1731
+ * buf.writeFloatLE(0xcafebabe, 0);
1732
+ *
1733
+ * console.log(buf);
1734
+ * // Prints: <Buffer bb fe 4a 4f>
1735
+ * ```
1736
+ * @since v0.11.15
1737
+ * @param value Number to be written to `buf`.
1738
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
1739
+ * @return `offset` plus the number of bytes written.
1740
+ */
1741
+ writeFloatLE(value: number, offset?: number): number;
1742
+ /**
1743
+ * Writes `value` to `buf` at the specified `offset` as big-endian. Behavior is
1744
+ * undefined when `value` is anything other than a JavaScript number.
1745
+ *
1746
+ * ```js
1747
+ * import { Buffer } from 'buffer';
1748
+ *
1749
+ * const buf = Buffer.allocUnsafe(4);
1750
+ *
1751
+ * buf.writeFloatBE(0xcafebabe, 0);
1752
+ *
1753
+ * console.log(buf);
1754
+ * // Prints: <Buffer 4f 4a fe bb>
1755
+ * ```
1756
+ * @since v0.11.15
1757
+ * @param value Number to be written to `buf`.
1758
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
1759
+ * @return `offset` plus the number of bytes written.
1760
+ */
1761
+ writeFloatBE(value: number, offset?: number): number;
1762
+ /**
1763
+ * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a JavaScript number. Behavior is undefined when `value` is anything
1764
+ * other than a JavaScript number.
1765
+ *
1766
+ * ```js
1767
+ * import { Buffer } from 'buffer';
1768
+ *
1769
+ * const buf = Buffer.allocUnsafe(8);
1770
+ *
1771
+ * buf.writeDoubleLE(123.456, 0);
1772
+ *
1773
+ * console.log(buf);
1774
+ * // Prints: <Buffer 77 be 9f 1a 2f dd 5e 40>
1775
+ * ```
1776
+ * @since v0.11.15
1777
+ * @param value Number to be written to `buf`.
1778
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 8`.
1779
+ * @return `offset` plus the number of bytes written.
1780
+ */
1781
+ writeDoubleLE(value: number, offset?: number): number;
1782
+ /**
1783
+ * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a JavaScript number. Behavior is undefined when `value` is anything
1784
+ * other than a JavaScript number.
1785
+ *
1786
+ * ```js
1787
+ * import { Buffer } from 'buffer';
1788
+ *
1789
+ * const buf = Buffer.allocUnsafe(8);
1790
+ *
1791
+ * buf.writeDoubleBE(123.456, 0);
1792
+ *
1793
+ * console.log(buf);
1794
+ * // Prints: <Buffer 40 5e dd 2f 1a 9f be 77>
1795
+ * ```
1796
+ * @since v0.11.15
1797
+ * @param value Number to be written to `buf`.
1798
+ * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 8`.
1799
+ * @return `offset` plus the number of bytes written.
1800
+ */
1801
+ writeDoubleBE(value: number, offset?: number): number;
1802
+ /**
1803
+ * Fills `buf` with the specified `value`. If the `offset` and `end` are not given,
1804
+ * the entire `buf` will be filled:
1805
+ *
1806
+ * ```js
1807
+ * import { Buffer } from 'buffer';
1808
+ *
1809
+ * // Fill a `Buffer` with the ASCII character 'h'.
1810
+ *
1811
+ * const b = Buffer.allocUnsafe(50).fill('h');
1812
+ *
1813
+ * console.log(b.toString());
1814
+ * // Prints: hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
1815
+ * ```
1816
+ *
1817
+ * `value` is coerced to a `uint32` value if it is not a string, `Buffer`, or
1818
+ * integer. If the resulting integer is greater than `255` (decimal), `buf` will be
1819
+ * filled with `value &#x26; 255`.
1820
+ *
1821
+ * If the final write of a `fill()` operation falls on a multi-byte character,
1822
+ * then only the bytes of that character that fit into `buf` are written:
1823
+ *
1824
+ * ```js
1825
+ * import { Buffer } from 'buffer';
1826
+ *
1827
+ * // Fill a `Buffer` with character that takes up two bytes in UTF-8.
1828
+ *
1829
+ * console.log(Buffer.allocUnsafe(5).fill('\u0222'));
1830
+ * // Prints: <Buffer c8 a2 c8 a2 c8>
1831
+ * ```
1832
+ *
1833
+ * If `value` contains invalid characters, it is truncated; if no valid
1834
+ * fill data remains, an exception is thrown:
1835
+ *
1836
+ * ```js
1837
+ * import { Buffer } from 'buffer';
1838
+ *
1839
+ * const buf = Buffer.allocUnsafe(5);
1840
+ *
1841
+ * console.log(buf.fill('a'));
1842
+ * // Prints: <Buffer 61 61 61 61 61>
1843
+ * console.log(buf.fill('aazz', 'hex'));
1844
+ * // Prints: <Buffer aa aa aa aa aa>
1845
+ * console.log(buf.fill('zz', 'hex'));
1846
+ * // Throws an exception.
1847
+ * ```
1848
+ * @since v0.5.0
1849
+ * @param value The value with which to fill `buf`.
1850
+ * @param [offset=0] Number of bytes to skip before starting to fill `buf`.
1851
+ * @param [end=buf.length] Where to stop filling `buf` (not inclusive).
1852
+ * @param [encoding='utf8'] The encoding for `value` if `value` is a string.
1853
+ * @return A reference to `buf`.
1854
+ */
1855
+ fill(value: string | Uint8Array | number, offset?: number, end?: number, encoding?: BufferEncoding): this;
1856
+ /**
1857
+ * If `value` is:
1858
+ *
1859
+ * * a string, `value` is interpreted according to the character encoding in`encoding`.
1860
+ * * a `Buffer` or [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array), `value` will be used in its entirety.
1861
+ * To compare a partial `Buffer`, use `buf.slice()`.
1862
+ * * a number, `value` will be interpreted as an unsigned 8-bit integer
1863
+ * value between `0` and `255`.
1864
+ *
1865
+ * ```js
1866
+ * import { Buffer } from 'buffer';
1867
+ *
1868
+ * const buf = Buffer.from('this is a buffer');
1869
+ *
1870
+ * console.log(buf.indexOf('this'));
1871
+ * // Prints: 0
1872
+ * console.log(buf.indexOf('is'));
1873
+ * // Prints: 2
1874
+ * console.log(buf.indexOf(Buffer.from('a buffer')));
1875
+ * // Prints: 8
1876
+ * console.log(buf.indexOf(97));
1877
+ * // Prints: 8 (97 is the decimal ASCII value for 'a')
1878
+ * console.log(buf.indexOf(Buffer.from('a buffer example')));
1879
+ * // Prints: -1
1880
+ * console.log(buf.indexOf(Buffer.from('a buffer example').slice(0, 8)));
1881
+ * // Prints: 8
1882
+ *
1883
+ * const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'utf16le');
1884
+ *
1885
+ * console.log(utf16Buffer.indexOf('\u03a3', 0, 'utf16le'));
1886
+ * // Prints: 4
1887
+ * console.log(utf16Buffer.indexOf('\u03a3', -4, 'utf16le'));
1888
+ * // Prints: 6
1889
+ * ```
1890
+ *
1891
+ * If `value` is not a string, number, or `Buffer`, this method will throw a`TypeError`. If `value` is a number, it will be coerced to a valid byte value,
1892
+ * an integer between 0 and 255.
1893
+ *
1894
+ * If `byteOffset` is not a number, it will be coerced to a number. If the result
1895
+ * of coercion is `NaN` or `0`, then the entire buffer will be searched. This
1896
+ * behavior matches [`String.prototype.indexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf).
1897
+ *
1898
+ * ```js
1899
+ * import { Buffer } from 'buffer';
1900
+ *
1901
+ * const b = Buffer.from('abcdef');
1902
+ *
1903
+ * // Passing a value that's a number, but not a valid byte.
1904
+ * // Prints: 2, equivalent to searching for 99 or 'c'.
1905
+ * console.log(b.indexOf(99.9));
1906
+ * console.log(b.indexOf(256 + 99));
1907
+ *
1908
+ * // Passing a byteOffset that coerces to NaN or 0.
1909
+ * // Prints: 1, searching the whole buffer.
1910
+ * console.log(b.indexOf('b', undefined));
1911
+ * console.log(b.indexOf('b', {}));
1912
+ * console.log(b.indexOf('b', null));
1913
+ * console.log(b.indexOf('b', []));
1914
+ * ```
1915
+ *
1916
+ * If `value` is an empty string or empty `Buffer` and `byteOffset` is less
1917
+ * than `buf.length`, `byteOffset` will be returned. If `value` is empty and`byteOffset` is at least `buf.length`, `buf.length` will be returned.
1918
+ * @since v1.5.0
1919
+ * @param value What to search for.
1920
+ * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`.
1921
+ * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`.
1922
+ * @return The index of the first occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
1923
+ */
1924
+ indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
1925
+ /**
1926
+ * Identical to `buf.indexOf()`, except the last occurrence of `value` is found
1927
+ * rather than the first occurrence.
1928
+ *
1929
+ * ```js
1930
+ * import { Buffer } from 'buffer';
1931
+ *
1932
+ * const buf = Buffer.from('this buffer is a buffer');
1933
+ *
1934
+ * console.log(buf.lastIndexOf('this'));
1935
+ * // Prints: 0
1936
+ * console.log(buf.lastIndexOf('buffer'));
1937
+ * // Prints: 17
1938
+ * console.log(buf.lastIndexOf(Buffer.from('buffer')));
1939
+ * // Prints: 17
1940
+ * console.log(buf.lastIndexOf(97));
1941
+ * // Prints: 15 (97 is the decimal ASCII value for 'a')
1942
+ * console.log(buf.lastIndexOf(Buffer.from('yolo')));
1943
+ * // Prints: -1
1944
+ * console.log(buf.lastIndexOf('buffer', 5));
1945
+ * // Prints: 5
1946
+ * console.log(buf.lastIndexOf('buffer', 4));
1947
+ * // Prints: -1
1948
+ *
1949
+ * const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'utf16le');
1950
+ *
1951
+ * console.log(utf16Buffer.lastIndexOf('\u03a3', undefined, 'utf16le'));
1952
+ * // Prints: 6
1953
+ * console.log(utf16Buffer.lastIndexOf('\u03a3', -5, 'utf16le'));
1954
+ * // Prints: 4
1955
+ * ```
1956
+ *
1957
+ * If `value` is not a string, number, or `Buffer`, this method will throw a`TypeError`. If `value` is a number, it will be coerced to a valid byte value,
1958
+ * an integer between 0 and 255.
1959
+ *
1960
+ * If `byteOffset` is not a number, it will be coerced to a number. Any arguments
1961
+ * that coerce to `NaN`, like `{}` or `undefined`, will search the whole buffer.
1962
+ * This behavior matches [`String.prototype.lastIndexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf).
1963
+ *
1964
+ * ```js
1965
+ * import { Buffer } from 'buffer';
1966
+ *
1967
+ * const b = Buffer.from('abcdef');
1968
+ *
1969
+ * // Passing a value that's a number, but not a valid byte.
1970
+ * // Prints: 2, equivalent to searching for 99 or 'c'.
1971
+ * console.log(b.lastIndexOf(99.9));
1972
+ * console.log(b.lastIndexOf(256 + 99));
1973
+ *
1974
+ * // Passing a byteOffset that coerces to NaN.
1975
+ * // Prints: 1, searching the whole buffer.
1976
+ * console.log(b.lastIndexOf('b', undefined));
1977
+ * console.log(b.lastIndexOf('b', {}));
1978
+ *
1979
+ * // Passing a byteOffset that coerces to 0.
1980
+ * // Prints: -1, equivalent to passing 0.
1981
+ * console.log(b.lastIndexOf('b', null));
1982
+ * console.log(b.lastIndexOf('b', []));
1983
+ * ```
1984
+ *
1985
+ * If `value` is an empty string or empty `Buffer`, `byteOffset` will be returned.
1986
+ * @since v6.0.0
1987
+ * @param value What to search for.
1988
+ * @param [byteOffset=buf.length - 1] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`.
1989
+ * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`.
1990
+ * @return The index of the last occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
1991
+ */
1992
+ lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
1993
+ /**
1994
+ * Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) of `[index, byte]` pairs from the contents
1995
+ * of `buf`.
1996
+ *
1997
+ * ```js
1998
+ * import { Buffer } from 'buffer';
1999
+ *
2000
+ * // Log the entire contents of a `Buffer`.
2001
+ *
2002
+ * const buf = Buffer.from('buffer');
2003
+ *
2004
+ * for (const pair of buf.entries()) {
2005
+ * console.log(pair);
2006
+ * }
2007
+ * // Prints:
2008
+ * // [0, 98]
2009
+ * // [1, 117]
2010
+ * // [2, 102]
2011
+ * // [3, 102]
2012
+ * // [4, 101]
2013
+ * // [5, 114]
2014
+ * ```
2015
+ * @since v1.1.0
2016
+ */
2017
+ entries(): IterableIterator<[number, number]>;
2018
+ /**
2019
+ * Equivalent to `buf.indexOf() !== -1`.
2020
+ *
2021
+ * ```js
2022
+ * import { Buffer } from 'buffer';
2023
+ *
2024
+ * const buf = Buffer.from('this is a buffer');
2025
+ *
2026
+ * console.log(buf.includes('this'));
2027
+ * // Prints: true
2028
+ * console.log(buf.includes('is'));
2029
+ * // Prints: true
2030
+ * console.log(buf.includes(Buffer.from('a buffer')));
2031
+ * // Prints: true
2032
+ * console.log(buf.includes(97));
2033
+ * // Prints: true (97 is the decimal ASCII value for 'a')
2034
+ * console.log(buf.includes(Buffer.from('a buffer example')));
2035
+ * // Prints: false
2036
+ * console.log(buf.includes(Buffer.from('a buffer example').slice(0, 8)));
2037
+ * // Prints: true
2038
+ * console.log(buf.includes('this', 4));
2039
+ * // Prints: false
2040
+ * ```
2041
+ * @since v5.3.0
2042
+ * @param value What to search for.
2043
+ * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`.
2044
+ * @param [encoding='utf8'] If `value` is a string, this is its encoding.
2045
+ * @return `true` if `value` was found in `buf`, `false` otherwise.
2046
+ */
2047
+ includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean;
2048
+ /**
2049
+ * Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) of `buf` keys (indices).
2050
+ *
2051
+ * ```js
2052
+ * import { Buffer } from 'buffer';
2053
+ *
2054
+ * const buf = Buffer.from('buffer');
2055
+ *
2056
+ * for (const key of buf.keys()) {
2057
+ * console.log(key);
2058
+ * }
2059
+ * // Prints:
2060
+ * // 0
2061
+ * // 1
2062
+ * // 2
2063
+ * // 3
2064
+ * // 4
2065
+ * // 5
2066
+ * ```
2067
+ * @since v1.1.0
2068
+ */
2069
+ keys(): IterableIterator<number>;
2070
+ /**
2071
+ * Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) for `buf` values (bytes). This function is
2072
+ * called automatically when a `Buffer` is used in a `for..of` statement.
2073
+ *
2074
+ * ```js
2075
+ * import { Buffer } from 'buffer';
2076
+ *
2077
+ * const buf = Buffer.from('buffer');
2078
+ *
2079
+ * for (const value of buf.values()) {
2080
+ * console.log(value);
2081
+ * }
2082
+ * // Prints:
2083
+ * // 98
2084
+ * // 117
2085
+ * // 102
2086
+ * // 102
2087
+ * // 101
2088
+ * // 114
2089
+ *
2090
+ * for (const value of buf) {
2091
+ * console.log(value);
2092
+ * }
2093
+ * // Prints:
2094
+ * // 98
2095
+ * // 117
2096
+ * // 102
2097
+ * // 102
2098
+ * // 101
2099
+ * // 114
2100
+ * ```
2101
+ * @since v1.1.0
2102
+ */
2103
+ values(): IterableIterator<number>;
2104
+ }
2105
+ var Buffer: BufferConstructor;
2106
+ /**
2107
+ * Decodes a string of Base64-encoded data into bytes, and encodes those bytes
2108
+ * into a string using Latin-1 (ISO-8859-1).
2109
+ *
2110
+ * The `data` may be any JavaScript-value that can be coerced into a string.
2111
+ *
2112
+ * **This function is only provided for compatibility with legacy web platform APIs**
2113
+ * **and should never be used in new code, because they use strings to represent**
2114
+ * **binary data and predate the introduction of typed arrays in JavaScript.**
2115
+ * **For code running using Node.js APIs, converting between base64-encoded strings**
2116
+ * **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
2117
+ * @since v15.13.0
2118
+ * @deprecated Use `Buffer.from(data, 'base64')` instead.
2119
+ * @param data The Base64-encoded input string.
2120
+ */
2121
+ function atob(data: string): string;
2122
+ /**
2123
+ * Decodes a string into bytes using Latin-1 (ISO-8859), and encodes those bytes
2124
+ * into a string using Base64.
2125
+ *
2126
+ * The `data` may be any JavaScript-value that can be coerced into a string.
2127
+ *
2128
+ * **This function is only provided for compatibility with legacy web platform APIs**
2129
+ * **and should never be used in new code, because they use strings to represent**
2130
+ * **binary data and predate the introduction of typed arrays in JavaScript.**
2131
+ * **For code running using Node.js APIs, converting between base64-encoded strings**
2132
+ * **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
2133
+ * @since v15.13.0
2134
+ * @deprecated Use `buf.toString('base64')` instead.
2135
+ * @param data An ASCII (Latin1) string.
2136
+ */
2137
+ function btoa(data: string): string;
2138
+ }
2139
+ }
2140
+ declare module 'node:buffer' {
2141
+ export * from 'buffer';
2142
+ }