node-red-contrib-tak-registration 0.11.1 → 0.11.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/node_modules/@types/node/LICENSE +0 -0
  2. package/node_modules/@types/node/README.md +4 -5
  3. package/node_modules/@types/node/assert/strict.d.ts +4 -4
  4. package/node_modules/@types/node/assert.d.ts +50 -26
  5. package/node_modules/@types/node/async_hooks.d.ts +13 -6
  6. package/node_modules/@types/node/buffer.d.ts +46 -38
  7. package/node_modules/@types/node/child_process.d.ts +278 -138
  8. package/node_modules/@types/node/cluster.d.ts +107 -89
  9. package/node_modules/@types/node/console.d.ts +18 -15
  10. package/node_modules/@types/node/constants.d.ts +12 -11
  11. package/node_modules/@types/node/crypto.d.ts +746 -268
  12. package/node_modules/@types/node/dgram.d.ts +82 -46
  13. package/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
  14. package/node_modules/@types/node/dns/promises.d.ts +37 -26
  15. package/node_modules/@types/node/dns.d.ts +204 -63
  16. package/node_modules/@types/node/dom-events.d.ts +67 -71
  17. package/node_modules/@types/node/domain.d.ts +4 -4
  18. package/node_modules/@types/node/events.d.ts +99 -8
  19. package/node_modules/@types/node/fs/promises.d.ts +122 -85
  20. package/node_modules/@types/node/fs.d.ts +520 -316
  21. package/node_modules/@types/node/globals.d.ts +346 -286
  22. package/node_modules/@types/node/globals.global.d.ts +0 -0
  23. package/node_modules/@types/node/http.d.ts +321 -189
  24. package/node_modules/@types/node/http2.d.ts +630 -377
  25. package/node_modules/@types/node/https.d.ts +221 -112
  26. package/node_modules/@types/node/index.d.ts +0 -45
  27. package/node_modules/@types/node/inspector.d.ts +0 -1
  28. package/node_modules/@types/node/module.d.ts +75 -31
  29. package/node_modules/@types/node/net.d.ts +149 -93
  30. package/node_modules/@types/node/os.d.ts +10 -9
  31. package/node_modules/@types/node/package.json +88 -90
  32. package/node_modules/@types/node/path.d.ts +13 -13
  33. package/node_modules/@types/node/perf_hooks.d.ts +19 -18
  34. package/node_modules/@types/node/process.d.ts +170 -126
  35. package/node_modules/@types/node/punycode.d.ts +4 -4
  36. package/node_modules/@types/node/querystring.d.ts +14 -4
  37. package/node_modules/@types/node/readline/promises.d.ts +12 -7
  38. package/node_modules/@types/node/readline.d.ts +69 -56
  39. package/node_modules/@types/node/repl.d.ts +67 -61
  40. package/node_modules/@types/node/stream/consumers.d.ts +10 -10
  41. package/node_modules/@types/node/stream/promises.d.ts +56 -15
  42. package/node_modules/@types/node/stream/web.d.ts +40 -20
  43. package/node_modules/@types/node/stream.d.ts +365 -232
  44. package/node_modules/@types/node/string_decoder.d.ts +8 -8
  45. package/node_modules/@types/node/test.d.ts +133 -212
  46. package/node_modules/@types/node/timers/promises.d.ts +4 -4
  47. package/node_modules/@types/node/timers.d.ts +26 -11
  48. package/node_modules/@types/node/tls.d.ts +152 -72
  49. package/node_modules/@types/node/trace_events.d.ts +3 -3
  50. package/node_modules/@types/node/ts4.8/assert/strict.d.ts +4 -4
  51. package/node_modules/@types/node/ts4.8/assert.d.ts +50 -26
  52. package/node_modules/@types/node/ts4.8/async_hooks.d.ts +13 -6
  53. package/node_modules/@types/node/ts4.8/buffer.d.ts +47 -39
  54. package/node_modules/@types/node/ts4.8/child_process.d.ts +278 -138
  55. package/node_modules/@types/node/ts4.8/cluster.d.ts +107 -89
  56. package/node_modules/@types/node/ts4.8/console.d.ts +18 -15
  57. package/node_modules/@types/node/ts4.8/constants.d.ts +12 -11
  58. package/node_modules/@types/node/ts4.8/crypto.d.ts +746 -268
  59. package/node_modules/@types/node/ts4.8/dgram.d.ts +82 -46
  60. package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +3 -3
  61. package/node_modules/@types/node/ts4.8/dns/promises.d.ts +37 -26
  62. package/node_modules/@types/node/ts4.8/dns.d.ts +204 -63
  63. package/node_modules/@types/node/ts4.8/dom-events.d.ts +67 -71
  64. package/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
  65. package/node_modules/@types/node/ts4.8/events.d.ts +99 -8
  66. package/node_modules/@types/node/ts4.8/fs/promises.d.ts +122 -85
  67. package/node_modules/@types/node/ts4.8/fs.d.ts +520 -316
  68. package/node_modules/@types/node/ts4.8/globals.d.ts +346 -286
  69. package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -0
  70. package/node_modules/@types/node/ts4.8/http.d.ts +321 -189
  71. package/node_modules/@types/node/ts4.8/http2.d.ts +630 -377
  72. package/node_modules/@types/node/ts4.8/https.d.ts +221 -112
  73. package/node_modules/@types/node/ts4.8/index.d.ts +0 -0
  74. package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -1
  75. package/node_modules/@types/node/ts4.8/module.d.ts +75 -31
  76. package/node_modules/@types/node/ts4.8/net.d.ts +149 -93
  77. package/node_modules/@types/node/ts4.8/os.d.ts +10 -9
  78. package/node_modules/@types/node/ts4.8/path.d.ts +13 -13
  79. package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +19 -18
  80. package/node_modules/@types/node/ts4.8/process.d.ts +170 -126
  81. package/node_modules/@types/node/ts4.8/punycode.d.ts +4 -4
  82. package/node_modules/@types/node/ts4.8/querystring.d.ts +14 -4
  83. package/node_modules/@types/node/ts4.8/readline/promises.d.ts +12 -7
  84. package/node_modules/@types/node/ts4.8/readline.d.ts +69 -56
  85. package/node_modules/@types/node/ts4.8/repl.d.ts +67 -61
  86. package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +10 -10
  87. package/node_modules/@types/node/ts4.8/stream/promises.d.ts +56 -15
  88. package/node_modules/@types/node/ts4.8/stream/web.d.ts +40 -20
  89. package/node_modules/@types/node/ts4.8/stream.d.ts +494 -223
  90. package/node_modules/@types/node/ts4.8/string_decoder.d.ts +8 -8
  91. package/node_modules/@types/node/ts4.8/test.d.ts +135 -214
  92. package/node_modules/@types/node/ts4.8/timers/promises.d.ts +4 -4
  93. package/node_modules/@types/node/ts4.8/timers.d.ts +26 -11
  94. package/node_modules/@types/node/ts4.8/tls.d.ts +152 -72
  95. package/node_modules/@types/node/ts4.8/trace_events.d.ts +3 -3
  96. package/node_modules/@types/node/ts4.8/tty.d.ts +10 -10
  97. package/node_modules/@types/node/ts4.8/url.d.ts +26 -14
  98. package/node_modules/@types/node/ts4.8/util.d.ts +187 -120
  99. package/node_modules/@types/node/ts4.8/v8.d.ts +4 -4
  100. package/node_modules/@types/node/ts4.8/vm.d.ts +58 -50
  101. package/node_modules/@types/node/ts4.8/wasi.d.ts +10 -4
  102. package/node_modules/@types/node/ts4.8/worker_threads.d.ts +83 -86
  103. package/node_modules/@types/node/ts4.8/zlib.d.ts +9 -9
  104. package/node_modules/@types/node/tty.d.ts +10 -10
  105. package/node_modules/@types/node/url.d.ts +26 -14
  106. package/node_modules/@types/node/util.d.ts +187 -120
  107. package/node_modules/@types/node/v8.d.ts +4 -4
  108. package/node_modules/@types/node/vm.d.ts +58 -50
  109. package/node_modules/@types/node/wasi.d.ts +10 -4
  110. package/node_modules/@types/node/worker_threads.d.ts +83 -86
  111. package/node_modules/@types/node/zlib.d.ts +9 -9
  112. package/node_modules/axios/CHANGELOG.md +225 -0
  113. package/node_modules/axios/README.md +273 -9
  114. package/node_modules/axios/dist/axios.js +249 -178
  115. package/node_modules/axios/dist/axios.js.map +1 -1
  116. package/node_modules/axios/dist/axios.min.js +1 -1
  117. package/node_modules/axios/dist/axios.min.js.map +1 -1
  118. package/node_modules/axios/dist/browser/axios.cjs +213 -193
  119. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  120. package/node_modules/axios/dist/esm/axios.js +213 -193
  121. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  122. package/node_modules/axios/dist/esm/axios.min.js +1 -1
  123. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  124. package/node_modules/axios/dist/node/axios.cjs +297 -213
  125. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  126. package/node_modules/axios/index.d.cts +20 -11
  127. package/node_modules/axios/index.d.ts +21 -12
  128. package/node_modules/axios/lib/adapters/adapters.js +33 -15
  129. package/node_modules/axios/lib/adapters/http.js +25 -12
  130. package/node_modules/axios/lib/adapters/xhr.js +17 -10
  131. package/node_modules/axios/lib/core/mergeConfig.js +1 -0
  132. package/node_modules/axios/lib/defaults/index.js +1 -1
  133. package/node_modules/axios/lib/env/data.js +1 -1
  134. package/node_modules/axios/lib/helpers/cookies.js +39 -49
  135. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +2 -2
  136. package/node_modules/axios/lib/platform/browser/index.js +0 -51
  137. package/node_modules/axios/lib/platform/common/utils.js +47 -0
  138. package/node_modules/axios/lib/platform/index.js +5 -1
  139. package/node_modules/axios/package.json +2 -1
  140. package/node_modules/call-bind/.eslintrc +0 -1
  141. package/node_modules/call-bind/.nycrc +0 -4
  142. package/node_modules/call-bind/CHANGELOG.md +35 -0
  143. package/node_modules/call-bind/README.md +63 -1
  144. package/node_modules/call-bind/index.js +10 -13
  145. package/node_modules/call-bind/package.json +33 -23
  146. package/node_modules/call-bind/test/callBound.js +0 -1
  147. package/node_modules/call-bind/test/index.js +18 -4
  148. package/node_modules/{function-bind → deep-equal}/.editorconfig +1 -1
  149. package/node_modules/deep-equal/.eslintrc +6 -0
  150. package/node_modules/deep-equal/.nycrc +17 -0
  151. package/node_modules/deep-equal/CHANGELOG.md +204 -4
  152. package/node_modules/deep-equal/assert.js +3 -0
  153. package/node_modules/deep-equal/package.json +39 -17
  154. package/node_modules/deep-equal/readme.markdown +28 -12
  155. package/node_modules/deep-equal/test/_tape.js +24 -3
  156. package/node_modules/deep-equal/test/cmp.js +1047 -48
  157. package/node_modules/define-data-property/CHANGELOG.md +10 -0
  158. package/node_modules/define-data-property/index.d.ts.map +1 -1
  159. package/node_modules/define-data-property/index.js +8 -0
  160. package/node_modules/define-data-property/package.json +11 -9
  161. package/node_modules/define-data-property/test/index.js +6 -11
  162. package/node_modules/define-data-property/tsconfig.json +1 -0
  163. package/node_modules/fast-xml-parser/CHANGELOG.md +11 -0
  164. package/node_modules/fast-xml-parser/package.json +5 -5
  165. package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +1 -0
  166. package/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +4 -0
  167. package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +6 -3
  168. package/node_modules/follow-redirects/index.js +16 -4
  169. package/node_modules/follow-redirects/package.json +2 -3
  170. package/node_modules/function-bind/.eslintrc +11 -5
  171. package/node_modules/function-bind/.github/FUNDING.yml +12 -0
  172. package/node_modules/function-bind/.github/SECURITY.md +3 -0
  173. package/node_modules/function-bind/.nycrc +13 -0
  174. package/node_modules/function-bind/CHANGELOG.md +136 -0
  175. package/node_modules/function-bind/README.md +25 -27
  176. package/node_modules/function-bind/implementation.js +44 -12
  177. package/node_modules/function-bind/package.json +38 -14
  178. package/node_modules/get-intrinsic/CHANGELOG.md +8 -0
  179. package/node_modules/get-intrinsic/index.js +1 -1
  180. package/node_modules/get-intrinsic/package.json +11 -11
  181. package/node_modules/has-property-descriptors/CHANGELOG.md +11 -0
  182. package/node_modules/has-property-descriptors/package.json +13 -6
  183. package/node_modules/hasown/.eslintrc +5 -0
  184. package/node_modules/hasown/.github/FUNDING.yml +12 -0
  185. package/node_modules/hasown/.nycrc +13 -0
  186. package/node_modules/hasown/CHANGELOG.md +20 -0
  187. package/node_modules/hasown/LICENSE +21 -0
  188. package/node_modules/hasown/README.md +40 -0
  189. package/node_modules/hasown/index.d.ts +3 -0
  190. package/node_modules/hasown/index.d.ts.map +1 -0
  191. package/node_modules/hasown/index.js +8 -0
  192. package/node_modules/hasown/package.json +91 -0
  193. package/node_modules/hasown/tsconfig.json +49 -0
  194. package/node_modules/set-function-length/.eslintrc +27 -0
  195. package/node_modules/set-function-length/.github/FUNDING.yml +12 -0
  196. package/node_modules/set-function-length/.nycrc +13 -0
  197. package/node_modules/set-function-length/CHANGELOG.md +41 -0
  198. package/node_modules/set-function-length/LICENSE +21 -0
  199. package/node_modules/set-function-length/README.md +56 -0
  200. package/node_modules/set-function-length/env.js +19 -0
  201. package/node_modules/set-function-length/index.js +41 -0
  202. package/node_modules/set-function-length/package.json +84 -0
  203. package/node_modules/undici-types/README.md +6 -0
  204. package/node_modules/undici-types/agent.d.ts +31 -0
  205. package/node_modules/undici-types/api.d.ts +43 -0
  206. package/node_modules/undici-types/balanced-pool.d.ts +18 -0
  207. package/node_modules/undici-types/cache.d.ts +36 -0
  208. package/node_modules/undici-types/client.d.ts +97 -0
  209. package/node_modules/undici-types/connector.d.ts +34 -0
  210. package/node_modules/undici-types/content-type.d.ts +21 -0
  211. package/node_modules/undici-types/cookies.d.ts +28 -0
  212. package/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
  213. package/node_modules/undici-types/dispatcher.d.ts +241 -0
  214. package/node_modules/undici-types/errors.d.ts +128 -0
  215. package/node_modules/undici-types/fetch.d.ts +209 -0
  216. package/node_modules/undici-types/file.d.ts +39 -0
  217. package/node_modules/undici-types/filereader.d.ts +54 -0
  218. package/node_modules/undici-types/formdata.d.ts +108 -0
  219. package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  220. package/node_modules/undici-types/global-origin.d.ts +7 -0
  221. package/node_modules/undici-types/handlers.d.ts +9 -0
  222. package/node_modules/undici-types/header.d.ts +4 -0
  223. package/node_modules/undici-types/index.d.ts +63 -0
  224. package/node_modules/undici-types/interceptors.d.ts +5 -0
  225. package/node_modules/undici-types/mock-agent.d.ts +50 -0
  226. package/node_modules/undici-types/mock-client.d.ts +25 -0
  227. package/node_modules/undici-types/mock-errors.d.ts +12 -0
  228. package/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  229. package/node_modules/undici-types/mock-pool.d.ts +25 -0
  230. package/node_modules/undici-types/package.json +55 -0
  231. package/node_modules/undici-types/patch.d.ts +71 -0
  232. package/node_modules/undici-types/pool-stats.d.ts +19 -0
  233. package/node_modules/undici-types/pool.d.ts +28 -0
  234. package/node_modules/undici-types/proxy-agent.d.ts +30 -0
  235. package/node_modules/undici-types/readable.d.ts +61 -0
  236. package/node_modules/undici-types/webidl.d.ts +220 -0
  237. package/node_modules/undici-types/websocket.d.ts +131 -0
  238. package/package.json +3 -3
  239. package/tak-ingest.js +42 -23
  240. package/tak-registration.html +4 -4
  241. package/node_modules/define-data-property/tsinit +0 -109
  242. package/node_modules/function-bind/.jscs.json +0 -176
  243. package/node_modules/function-bind/.npmignore +0 -22
  244. package/node_modules/function-bind/.travis.yml +0 -168
  245. package/node_modules/has/LICENSE-MIT +0 -22
  246. package/node_modules/has/README.md +0 -18
  247. package/node_modules/has/package.json +0 -48
  248. package/node_modules/has/src/index.js +0 -5
  249. package/node_modules/has/test/index.js +0 -10
@@ -18,11 +18,11 @@
18
18
  * forms, and are accessible using both CommonJS syntax and ES6 Modules (ESM).
19
19
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/fs.js)
20
20
  */
21
- declare module 'fs' {
22
- import * as stream from 'node:stream';
23
- import { Abortable, EventEmitter } from 'node:events';
24
- import { URL } from 'node:url';
25
- import * as promises from 'node:fs/promises';
21
+ declare module "fs" {
22
+ import * as stream from "node:stream";
23
+ import { Abortable, EventEmitter } from "node:events";
24
+ import { URL } from "node:url";
25
+ import * as promises from "node:fs/promises";
26
26
  export { promises };
27
27
  /**
28
28
  * Valid types for path values in "fs".
@@ -32,10 +32,10 @@ declare module 'fs' {
32
32
  export type TimeLike = string | number | Date;
33
33
  export type NoParamCallback = (err: NodeJS.ErrnoException | null) => void;
34
34
  export type BufferEncodingOption =
35
- | 'buffer'
35
+ | "buffer"
36
36
  | {
37
- encoding: 'buffer';
38
- };
37
+ encoding: "buffer";
38
+ };
39
39
  export interface ObjectEncodingOptions {
40
40
  encoding?: BufferEncoding | null | undefined;
41
41
  }
@@ -360,25 +360,25 @@ declare module 'fs' {
360
360
  * 2. error
361
361
  */
362
362
  addListener(event: string, listener: (...args: any[]) => void): this;
363
- addListener(event: 'change', listener: (eventType: string, filename: string | Buffer) => void): this;
364
- addListener(event: 'error', listener: (error: Error) => void): this;
365
- addListener(event: 'close', listener: () => void): this;
363
+ addListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
364
+ addListener(event: "error", listener: (error: Error) => void): this;
365
+ addListener(event: "close", listener: () => void): this;
366
366
  on(event: string, listener: (...args: any[]) => void): this;
367
- on(event: 'change', listener: (eventType: string, filename: string | Buffer) => void): this;
368
- on(event: 'error', listener: (error: Error) => void): this;
369
- on(event: 'close', listener: () => void): this;
367
+ on(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
368
+ on(event: "error", listener: (error: Error) => void): this;
369
+ on(event: "close", listener: () => void): this;
370
370
  once(event: string, listener: (...args: any[]) => void): this;
371
- once(event: 'change', listener: (eventType: string, filename: string | Buffer) => void): this;
372
- once(event: 'error', listener: (error: Error) => void): this;
373
- once(event: 'close', listener: () => void): this;
371
+ once(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
372
+ once(event: "error", listener: (error: Error) => void): this;
373
+ once(event: "close", listener: () => void): this;
374
374
  prependListener(event: string, listener: (...args: any[]) => void): this;
375
- prependListener(event: 'change', listener: (eventType: string, filename: string | Buffer) => void): this;
376
- prependListener(event: 'error', listener: (error: Error) => void): this;
377
- prependListener(event: 'close', listener: () => void): this;
375
+ prependListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
376
+ prependListener(event: "error", listener: (error: Error) => void): this;
377
+ prependListener(event: "close", listener: () => void): this;
378
378
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
379
- prependOnceListener(event: 'change', listener: (eventType: string, filename: string | Buffer) => void): this;
380
- prependOnceListener(event: 'error', listener: (error: Error) => void): this;
381
- prependOnceListener(event: 'close', listener: () => void): this;
379
+ prependOnceListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
380
+ prependOnceListener(event: "error", listener: (error: Error) => void): this;
381
+ prependOnceListener(event: "close", listener: () => void): this;
382
382
  }
383
383
  /**
384
384
  * Instances of `fs.ReadStream` are created and returned using the {@link createReadStream} function.
@@ -410,55 +410,55 @@ declare module 'fs' {
410
410
  * 2. close
411
411
  * 3. ready
412
412
  */
413
- addListener(event: 'close', listener: () => void): this;
414
- addListener(event: 'data', listener: (chunk: Buffer | string) => void): this;
415
- addListener(event: 'end', listener: () => void): this;
416
- addListener(event: 'error', listener: (err: Error) => void): this;
417
- addListener(event: 'open', listener: (fd: number) => void): this;
418
- addListener(event: 'pause', listener: () => void): this;
419
- addListener(event: 'readable', listener: () => void): this;
420
- addListener(event: 'ready', listener: () => void): this;
421
- addListener(event: 'resume', listener: () => void): this;
413
+ addListener(event: "close", listener: () => void): this;
414
+ addListener(event: "data", listener: (chunk: Buffer | string) => void): this;
415
+ addListener(event: "end", listener: () => void): this;
416
+ addListener(event: "error", listener: (err: Error) => void): this;
417
+ addListener(event: "open", listener: (fd: number) => void): this;
418
+ addListener(event: "pause", listener: () => void): this;
419
+ addListener(event: "readable", listener: () => void): this;
420
+ addListener(event: "ready", listener: () => void): this;
421
+ addListener(event: "resume", listener: () => void): this;
422
422
  addListener(event: string | symbol, listener: (...args: any[]) => void): this;
423
- on(event: 'close', listener: () => void): this;
424
- on(event: 'data', listener: (chunk: Buffer | string) => void): this;
425
- on(event: 'end', listener: () => void): this;
426
- on(event: 'error', listener: (err: Error) => void): this;
427
- on(event: 'open', listener: (fd: number) => void): this;
428
- on(event: 'pause', listener: () => void): this;
429
- on(event: 'readable', listener: () => void): this;
430
- on(event: 'ready', listener: () => void): this;
431
- on(event: 'resume', listener: () => void): this;
423
+ on(event: "close", listener: () => void): this;
424
+ on(event: "data", listener: (chunk: Buffer | string) => void): this;
425
+ on(event: "end", listener: () => void): this;
426
+ on(event: "error", listener: (err: Error) => void): this;
427
+ on(event: "open", listener: (fd: number) => void): this;
428
+ on(event: "pause", listener: () => void): this;
429
+ on(event: "readable", listener: () => void): this;
430
+ on(event: "ready", listener: () => void): this;
431
+ on(event: "resume", listener: () => void): this;
432
432
  on(event: string | symbol, listener: (...args: any[]) => void): this;
433
- once(event: 'close', listener: () => void): this;
434
- once(event: 'data', listener: (chunk: Buffer | string) => void): this;
435
- once(event: 'end', listener: () => void): this;
436
- once(event: 'error', listener: (err: Error) => void): this;
437
- once(event: 'open', listener: (fd: number) => void): this;
438
- once(event: 'pause', listener: () => void): this;
439
- once(event: 'readable', listener: () => void): this;
440
- once(event: 'ready', listener: () => void): this;
441
- once(event: 'resume', listener: () => void): this;
433
+ once(event: "close", listener: () => void): this;
434
+ once(event: "data", listener: (chunk: Buffer | string) => void): this;
435
+ once(event: "end", listener: () => void): this;
436
+ once(event: "error", listener: (err: Error) => void): this;
437
+ once(event: "open", listener: (fd: number) => void): this;
438
+ once(event: "pause", listener: () => void): this;
439
+ once(event: "readable", listener: () => void): this;
440
+ once(event: "ready", listener: () => void): this;
441
+ once(event: "resume", listener: () => void): this;
442
442
  once(event: string | symbol, listener: (...args: any[]) => void): this;
443
- prependListener(event: 'close', listener: () => void): this;
444
- prependListener(event: 'data', listener: (chunk: Buffer | string) => void): this;
445
- prependListener(event: 'end', listener: () => void): this;
446
- prependListener(event: 'error', listener: (err: Error) => void): this;
447
- prependListener(event: 'open', listener: (fd: number) => void): this;
448
- prependListener(event: 'pause', listener: () => void): this;
449
- prependListener(event: 'readable', listener: () => void): this;
450
- prependListener(event: 'ready', listener: () => void): this;
451
- prependListener(event: 'resume', listener: () => void): this;
443
+ prependListener(event: "close", listener: () => void): this;
444
+ prependListener(event: "data", listener: (chunk: Buffer | string) => void): this;
445
+ prependListener(event: "end", listener: () => void): this;
446
+ prependListener(event: "error", listener: (err: Error) => void): this;
447
+ prependListener(event: "open", listener: (fd: number) => void): this;
448
+ prependListener(event: "pause", listener: () => void): this;
449
+ prependListener(event: "readable", listener: () => void): this;
450
+ prependListener(event: "ready", listener: () => void): this;
451
+ prependListener(event: "resume", listener: () => void): this;
452
452
  prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
453
- prependOnceListener(event: 'close', listener: () => void): this;
454
- prependOnceListener(event: 'data', listener: (chunk: Buffer | string) => void): this;
455
- prependOnceListener(event: 'end', listener: () => void): this;
456
- prependOnceListener(event: 'error', listener: (err: Error) => void): this;
457
- prependOnceListener(event: 'open', listener: (fd: number) => void): this;
458
- prependOnceListener(event: 'pause', listener: () => void): this;
459
- prependOnceListener(event: 'readable', listener: () => void): this;
460
- prependOnceListener(event: 'ready', listener: () => void): this;
461
- prependOnceListener(event: 'resume', listener: () => void): this;
453
+ prependOnceListener(event: "close", listener: () => void): this;
454
+ prependOnceListener(event: "data", listener: (chunk: Buffer | string) => void): this;
455
+ prependOnceListener(event: "end", listener: () => void): this;
456
+ prependOnceListener(event: "error", listener: (err: Error) => void): this;
457
+ prependOnceListener(event: "open", listener: (fd: number) => void): this;
458
+ prependOnceListener(event: "pause", listener: () => void): this;
459
+ prependOnceListener(event: "readable", listener: () => void): this;
460
+ prependOnceListener(event: "ready", listener: () => void): this;
461
+ prependOnceListener(event: "resume", listener: () => void): this;
462
462
  prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
463
463
  }
464
464
  /**
@@ -499,50 +499,50 @@ declare module 'fs' {
499
499
  * 2. close
500
500
  * 3. ready
501
501
  */
502
- addListener(event: 'close', listener: () => void): this;
503
- addListener(event: 'drain', listener: () => void): this;
504
- addListener(event: 'error', listener: (err: Error) => void): this;
505
- addListener(event: 'finish', listener: () => void): this;
506
- addListener(event: 'open', listener: (fd: number) => void): this;
507
- addListener(event: 'pipe', listener: (src: stream.Readable) => void): this;
508
- addListener(event: 'ready', listener: () => void): this;
509
- addListener(event: 'unpipe', listener: (src: stream.Readable) => void): this;
502
+ addListener(event: "close", listener: () => void): this;
503
+ addListener(event: "drain", listener: () => void): this;
504
+ addListener(event: "error", listener: (err: Error) => void): this;
505
+ addListener(event: "finish", listener: () => void): this;
506
+ addListener(event: "open", listener: (fd: number) => void): this;
507
+ addListener(event: "pipe", listener: (src: stream.Readable) => void): this;
508
+ addListener(event: "ready", listener: () => void): this;
509
+ addListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
510
510
  addListener(event: string | symbol, listener: (...args: any[]) => void): this;
511
- on(event: 'close', listener: () => void): this;
512
- on(event: 'drain', listener: () => void): this;
513
- on(event: 'error', listener: (err: Error) => void): this;
514
- on(event: 'finish', listener: () => void): this;
515
- on(event: 'open', listener: (fd: number) => void): this;
516
- on(event: 'pipe', listener: (src: stream.Readable) => void): this;
517
- on(event: 'ready', listener: () => void): this;
518
- on(event: 'unpipe', listener: (src: stream.Readable) => void): this;
511
+ on(event: "close", listener: () => void): this;
512
+ on(event: "drain", listener: () => void): this;
513
+ on(event: "error", listener: (err: Error) => void): this;
514
+ on(event: "finish", listener: () => void): this;
515
+ on(event: "open", listener: (fd: number) => void): this;
516
+ on(event: "pipe", listener: (src: stream.Readable) => void): this;
517
+ on(event: "ready", listener: () => void): this;
518
+ on(event: "unpipe", listener: (src: stream.Readable) => void): this;
519
519
  on(event: string | symbol, listener: (...args: any[]) => void): this;
520
- once(event: 'close', listener: () => void): this;
521
- once(event: 'drain', listener: () => void): this;
522
- once(event: 'error', listener: (err: Error) => void): this;
523
- once(event: 'finish', listener: () => void): this;
524
- once(event: 'open', listener: (fd: number) => void): this;
525
- once(event: 'pipe', listener: (src: stream.Readable) => void): this;
526
- once(event: 'ready', listener: () => void): this;
527
- once(event: 'unpipe', listener: (src: stream.Readable) => void): this;
520
+ once(event: "close", listener: () => void): this;
521
+ once(event: "drain", listener: () => void): this;
522
+ once(event: "error", listener: (err: Error) => void): this;
523
+ once(event: "finish", listener: () => void): this;
524
+ once(event: "open", listener: (fd: number) => void): this;
525
+ once(event: "pipe", listener: (src: stream.Readable) => void): this;
526
+ once(event: "ready", listener: () => void): this;
527
+ once(event: "unpipe", listener: (src: stream.Readable) => void): this;
528
528
  once(event: string | symbol, listener: (...args: any[]) => void): this;
529
- prependListener(event: 'close', listener: () => void): this;
530
- prependListener(event: 'drain', listener: () => void): this;
531
- prependListener(event: 'error', listener: (err: Error) => void): this;
532
- prependListener(event: 'finish', listener: () => void): this;
533
- prependListener(event: 'open', listener: (fd: number) => void): this;
534
- prependListener(event: 'pipe', listener: (src: stream.Readable) => void): this;
535
- prependListener(event: 'ready', listener: () => void): this;
536
- prependListener(event: 'unpipe', listener: (src: stream.Readable) => void): this;
529
+ prependListener(event: "close", listener: () => void): this;
530
+ prependListener(event: "drain", listener: () => void): this;
531
+ prependListener(event: "error", listener: (err: Error) => void): this;
532
+ prependListener(event: "finish", listener: () => void): this;
533
+ prependListener(event: "open", listener: (fd: number) => void): this;
534
+ prependListener(event: "pipe", listener: (src: stream.Readable) => void): this;
535
+ prependListener(event: "ready", listener: () => void): this;
536
+ prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
537
537
  prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
538
- prependOnceListener(event: 'close', listener: () => void): this;
539
- prependOnceListener(event: 'drain', listener: () => void): this;
540
- prependOnceListener(event: 'error', listener: (err: Error) => void): this;
541
- prependOnceListener(event: 'finish', listener: () => void): this;
542
- prependOnceListener(event: 'open', listener: (fd: number) => void): this;
543
- prependOnceListener(event: 'pipe', listener: (src: stream.Readable) => void): this;
544
- prependOnceListener(event: 'ready', listener: () => void): this;
545
- prependOnceListener(event: 'unpipe', listener: (src: stream.Readable) => void): this;
538
+ prependOnceListener(event: "close", listener: () => void): this;
539
+ prependOnceListener(event: "drain", listener: () => void): this;
540
+ prependOnceListener(event: "error", listener: (err: Error) => void): this;
541
+ prependOnceListener(event: "finish", listener: () => void): this;
542
+ prependOnceListener(event: "open", listener: (fd: number) => void): this;
543
+ prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this;
544
+ prependOnceListener(event: "ready", listener: () => void): this;
545
+ prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
546
546
  prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
547
547
  }
548
548
  /**
@@ -964,19 +964,23 @@ declare module 'fs' {
964
964
  path: PathLike,
965
965
  options:
966
966
  | (StatOptions & {
967
- bigint?: false | undefined;
968
- })
967
+ bigint?: false | undefined;
968
+ })
969
969
  | undefined,
970
- callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void
970
+ callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void,
971
971
  ): void;
972
972
  export function stat(
973
973
  path: PathLike,
974
974
  options: StatOptions & {
975
975
  bigint: true;
976
976
  },
977
- callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void
977
+ callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void,
978
+ ): void;
979
+ export function stat(
980
+ path: PathLike,
981
+ options: StatOptions | undefined,
982
+ callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void,
978
983
  ): void;
979
- export function stat(path: PathLike, options: StatOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
980
984
  export namespace stat {
981
985
  /**
982
986
  * Asynchronous stat(2) - Get file status.
@@ -986,13 +990,13 @@ declare module 'fs' {
986
990
  path: PathLike,
987
991
  options?: StatOptions & {
988
992
  bigint?: false | undefined;
989
- }
993
+ },
990
994
  ): Promise<Stats>;
991
995
  function __promisify__(
992
996
  path: PathLike,
993
997
  options: StatOptions & {
994
998
  bigint: true;
995
- }
999
+ },
996
1000
  ): Promise<BigIntStats>;
997
1001
  function __promisify__(path: PathLike, options?: StatOptions): Promise<Stats | BigIntStats>;
998
1002
  }
@@ -1003,33 +1007,33 @@ declare module 'fs' {
1003
1007
  options?: StatSyncOptions & {
1004
1008
  bigint?: false | undefined;
1005
1009
  throwIfNoEntry: false;
1006
- }
1010
+ },
1007
1011
  ): Stats | undefined;
1008
1012
  (
1009
1013
  path: PathLike,
1010
1014
  options: StatSyncOptions & {
1011
1015
  bigint: true;
1012
1016
  throwIfNoEntry: false;
1013
- }
1017
+ },
1014
1018
  ): BigIntStats | undefined;
1015
1019
  (
1016
1020
  path: PathLike,
1017
1021
  options?: StatSyncOptions & {
1018
1022
  bigint?: false | undefined;
1019
- }
1023
+ },
1020
1024
  ): Stats;
1021
1025
  (
1022
1026
  path: PathLike,
1023
1027
  options: StatSyncOptions & {
1024
1028
  bigint: true;
1025
- }
1029
+ },
1026
1030
  ): BigIntStats;
1027
1031
  (
1028
1032
  path: PathLike,
1029
1033
  options: StatSyncOptions & {
1030
1034
  bigint: boolean;
1031
1035
  throwIfNoEntry?: false | undefined;
1032
- }
1036
+ },
1033
1037
  ): Stats | BigIntStats;
1034
1038
  (path: PathLike, options?: StatSyncOptions): Stats | BigIntStats | undefined;
1035
1039
  }
@@ -1049,19 +1053,23 @@ declare module 'fs' {
1049
1053
  fd: number,
1050
1054
  options:
1051
1055
  | (StatOptions & {
1052
- bigint?: false | undefined;
1053
- })
1056
+ bigint?: false | undefined;
1057
+ })
1054
1058
  | undefined,
1055
- callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void
1059
+ callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void,
1056
1060
  ): void;
1057
1061
  export function fstat(
1058
1062
  fd: number,
1059
1063
  options: StatOptions & {
1060
1064
  bigint: true;
1061
1065
  },
1062
- callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void
1066
+ callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void,
1067
+ ): void;
1068
+ export function fstat(
1069
+ fd: number,
1070
+ options: StatOptions | undefined,
1071
+ callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void,
1063
1072
  ): void;
1064
- export function fstat(fd: number, options: StatOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
1065
1073
  export namespace fstat {
1066
1074
  /**
1067
1075
  * Asynchronous fstat(2) - Get file status.
@@ -1071,13 +1079,13 @@ declare module 'fs' {
1071
1079
  fd: number,
1072
1080
  options?: StatOptions & {
1073
1081
  bigint?: false | undefined;
1074
- }
1082
+ },
1075
1083
  ): Promise<Stats>;
1076
1084
  function __promisify__(
1077
1085
  fd: number,
1078
1086
  options: StatOptions & {
1079
1087
  bigint: true;
1080
- }
1088
+ },
1081
1089
  ): Promise<BigIntStats>;
1082
1090
  function __promisify__(fd: number, options?: StatOptions): Promise<Stats | BigIntStats>;
1083
1091
  }
@@ -1091,13 +1099,13 @@ declare module 'fs' {
1091
1099
  fd: number,
1092
1100
  options?: StatOptions & {
1093
1101
  bigint?: false | undefined;
1094
- }
1102
+ },
1095
1103
  ): Stats;
1096
1104
  export function fstatSync(
1097
1105
  fd: number,
1098
1106
  options: StatOptions & {
1099
1107
  bigint: true;
1100
- }
1108
+ },
1101
1109
  ): BigIntStats;
1102
1110
  export function fstatSync(fd: number, options?: StatOptions): Stats | BigIntStats;
1103
1111
  /**
@@ -1113,19 +1121,23 @@ declare module 'fs' {
1113
1121
  path: PathLike,
1114
1122
  options:
1115
1123
  | (StatOptions & {
1116
- bigint?: false | undefined;
1117
- })
1124
+ bigint?: false | undefined;
1125
+ })
1118
1126
  | undefined,
1119
- callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void
1127
+ callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void,
1120
1128
  ): void;
1121
1129
  export function lstat(
1122
1130
  path: PathLike,
1123
1131
  options: StatOptions & {
1124
1132
  bigint: true;
1125
1133
  },
1126
- callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void
1134
+ callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void,
1135
+ ): void;
1136
+ export function lstat(
1137
+ path: PathLike,
1138
+ options: StatOptions | undefined,
1139
+ callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void,
1127
1140
  ): void;
1128
- export function lstat(path: PathLike, options: StatOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
1129
1141
  export namespace lstat {
1130
1142
  /**
1131
1143
  * Asynchronous lstat(2) - Get file status. Does not dereference symbolic links.
@@ -1135,13 +1147,13 @@ declare module 'fs' {
1135
1147
  path: PathLike,
1136
1148
  options?: StatOptions & {
1137
1149
  bigint?: false | undefined;
1138
- }
1150
+ },
1139
1151
  ): Promise<Stats>;
1140
1152
  function __promisify__(
1141
1153
  path: PathLike,
1142
1154
  options: StatOptions & {
1143
1155
  bigint: true;
1144
- }
1156
+ },
1145
1157
  ): Promise<BigIntStats>;
1146
1158
  function __promisify__(path: PathLike, options?: StatOptions): Promise<Stats | BigIntStats>;
1147
1159
  }
@@ -1158,19 +1170,23 @@ declare module 'fs' {
1158
1170
  path: PathLike,
1159
1171
  options:
1160
1172
  | (StatFsOptions & {
1161
- bigint?: false | undefined;
1162
- })
1173
+ bigint?: false | undefined;
1174
+ })
1163
1175
  | undefined,
1164
- callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void
1176
+ callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void,
1165
1177
  ): void;
1166
1178
  export function statfs(
1167
1179
  path: PathLike,
1168
1180
  options: StatFsOptions & {
1169
1181
  bigint: true;
1170
1182
  },
1171
- callback: (err: NodeJS.ErrnoException | null, stats: BigIntStatsFs) => void
1183
+ callback: (err: NodeJS.ErrnoException | null, stats: BigIntStatsFs) => void,
1184
+ ): void;
1185
+ export function statfs(
1186
+ path: PathLike,
1187
+ options: StatFsOptions | undefined,
1188
+ callback: (err: NodeJS.ErrnoException | null, stats: StatsFs | BigIntStatsFs) => void,
1172
1189
  ): void;
1173
- export function statfs(path: PathLike, options: StatFsOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: StatsFs | BigIntStatsFs) => void): void;
1174
1190
  export namespace statfs {
1175
1191
  /**
1176
1192
  * Asynchronous statfs(2) - Returns information about the mounted file system which contains path. The callback gets two arguments (err, stats) where stats is an <fs.StatFs> object.
@@ -1180,13 +1196,13 @@ declare module 'fs' {
1180
1196
  path: PathLike,
1181
1197
  options?: StatFsOptions & {
1182
1198
  bigint?: false | undefined;
1183
- }
1199
+ },
1184
1200
  ): Promise<StatsFs>;
1185
1201
  function __promisify__(
1186
1202
  path: PathLike,
1187
1203
  options: StatFsOptions & {
1188
1204
  bigint: true;
1189
- }
1205
+ },
1190
1206
  ): Promise<BigIntStatsFs>;
1191
1207
  function __promisify__(path: PathLike, options?: StatFsOptions): Promise<StatsFs | BigIntStatsFs>;
1192
1208
  }
@@ -1202,13 +1218,13 @@ declare module 'fs' {
1202
1218
  path: PathLike,
1203
1219
  options?: StatFsOptions & {
1204
1220
  bigint?: false | undefined;
1205
- }
1221
+ },
1206
1222
  ): StatsFs;
1207
1223
  export function statfsSync(
1208
1224
  path: PathLike,
1209
1225
  options: StatFsOptions & {
1210
1226
  bigint: true;
1211
- }
1227
+ },
1212
1228
  ): BigIntStatsFs;
1213
1229
  export function statfsSync(path: PathLike, options?: StatFsOptions): StatsFs | BigIntStatsFs;
1214
1230
  /**
@@ -1269,7 +1285,12 @@ declare module 'fs' {
1269
1285
  * @since v0.1.31
1270
1286
  * @param [type='null']
1271
1287
  */
1272
- export function symlink(target: PathLike, path: PathLike, type: symlink.Type | undefined | null, callback: NoParamCallback): void;
1288
+ export function symlink(
1289
+ target: PathLike,
1290
+ path: PathLike,
1291
+ type: symlink.Type | undefined | null,
1292
+ callback: NoParamCallback,
1293
+ ): void;
1273
1294
  /**
1274
1295
  * Asynchronous symlink(2) - Create a new symbolic link to an existing file.
1275
1296
  * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol.
@@ -1285,7 +1306,7 @@ declare module 'fs' {
1285
1306
  * When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
1286
1307
  */
1287
1308
  function __promisify__(target: PathLike, path: PathLike, type?: string | null): Promise<void>;
1288
- type Type = 'dir' | 'file' | 'junction';
1309
+ type Type = "dir" | "file" | "junction";
1289
1310
  }
1290
1311
  /**
1291
1312
  * Returns `undefined`.
@@ -1308,24 +1329,39 @@ declare module 'fs' {
1308
1329
  * the link path returned will be passed as a `Buffer` object.
1309
1330
  * @since v0.1.31
1310
1331
  */
1311
- export function readlink(path: PathLike, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, linkString: string) => void): void;
1332
+ export function readlink(
1333
+ path: PathLike,
1334
+ options: EncodingOption,
1335
+ callback: (err: NodeJS.ErrnoException | null, linkString: string) => void,
1336
+ ): void;
1312
1337
  /**
1313
1338
  * Asynchronous readlink(2) - read value of a symbolic link.
1314
1339
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1315
1340
  * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
1316
1341
  */
1317
- export function readlink(path: PathLike, options: BufferEncodingOption, callback: (err: NodeJS.ErrnoException | null, linkString: Buffer) => void): void;
1342
+ export function readlink(
1343
+ path: PathLike,
1344
+ options: BufferEncodingOption,
1345
+ callback: (err: NodeJS.ErrnoException | null, linkString: Buffer) => void,
1346
+ ): void;
1318
1347
  /**
1319
1348
  * Asynchronous readlink(2) - read value of a symbolic link.
1320
1349
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1321
1350
  * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
1322
1351
  */
1323
- export function readlink(path: PathLike, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, linkString: string | Buffer) => void): void;
1352
+ export function readlink(
1353
+ path: PathLike,
1354
+ options: EncodingOption,
1355
+ callback: (err: NodeJS.ErrnoException | null, linkString: string | Buffer) => void,
1356
+ ): void;
1324
1357
  /**
1325
1358
  * Asynchronous readlink(2) - read value of a symbolic link.
1326
1359
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1327
1360
  */
1328
- export function readlink(path: PathLike, callback: (err: NodeJS.ErrnoException | null, linkString: string) => void): void;
1361
+ export function readlink(
1362
+ path: PathLike,
1363
+ callback: (err: NodeJS.ErrnoException | null, linkString: string) => void,
1364
+ ): void;
1329
1365
  export namespace readlink {
1330
1366
  /**
1331
1367
  * Asynchronous readlink(2) - read value of a symbolic link.
@@ -1396,24 +1432,39 @@ declare module 'fs' {
1396
1432
  * dependent name for that object.
1397
1433
  * @since v0.1.31
1398
1434
  */
1399
- export function realpath(path: PathLike, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void): void;
1435
+ export function realpath(
1436
+ path: PathLike,
1437
+ options: EncodingOption,
1438
+ callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void,
1439
+ ): void;
1400
1440
  /**
1401
1441
  * Asynchronous realpath(3) - return the canonicalized absolute pathname.
1402
1442
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1403
1443
  * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
1404
1444
  */
1405
- export function realpath(path: PathLike, options: BufferEncodingOption, callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void): void;
1445
+ export function realpath(
1446
+ path: PathLike,
1447
+ options: BufferEncodingOption,
1448
+ callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void,
1449
+ ): void;
1406
1450
  /**
1407
1451
  * Asynchronous realpath(3) - return the canonicalized absolute pathname.
1408
1452
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1409
1453
  * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
1410
1454
  */
1411
- export function realpath(path: PathLike, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void): void;
1455
+ export function realpath(
1456
+ path: PathLike,
1457
+ options: EncodingOption,
1458
+ callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void,
1459
+ ): void;
1412
1460
  /**
1413
1461
  * Asynchronous realpath(3) - return the canonicalized absolute pathname.
1414
1462
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1415
1463
  */
1416
- export function realpath(path: PathLike, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void): void;
1464
+ export function realpath(
1465
+ path: PathLike,
1466
+ callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void,
1467
+ ): void;
1417
1468
  export namespace realpath {
1418
1469
  /**
1419
1470
  * Asynchronous realpath(3) - return the canonicalized absolute pathname.
@@ -1450,10 +1501,25 @@ declare module 'fs' {
1450
1501
  * this restriction.
1451
1502
  * @since v9.2.0
1452
1503
  */
1453
- function native(path: PathLike, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void): void;
1454
- function native(path: PathLike, options: BufferEncodingOption, callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void): void;
1455
- function native(path: PathLike, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void): void;
1456
- function native(path: PathLike, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void): void;
1504
+ function native(
1505
+ path: PathLike,
1506
+ options: EncodingOption,
1507
+ callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void,
1508
+ ): void;
1509
+ function native(
1510
+ path: PathLike,
1511
+ options: BufferEncodingOption,
1512
+ callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void,
1513
+ ): void;
1514
+ function native(
1515
+ path: PathLike,
1516
+ options: EncodingOption,
1517
+ callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void,
1518
+ ): void;
1519
+ function native(
1520
+ path: PathLike,
1521
+ callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void,
1522
+ ): void;
1457
1523
  }
1458
1524
  /**
1459
1525
  * Returns the resolved pathname.
@@ -1668,7 +1734,7 @@ declare module 'fs' {
1668
1734
  options: MakeDirectoryOptions & {
1669
1735
  recursive: true;
1670
1736
  },
1671
- callback: (err: NodeJS.ErrnoException | null, path?: string) => void
1737
+ callback: (err: NodeJS.ErrnoException | null, path?: string) => void,
1672
1738
  ): void;
1673
1739
  /**
1674
1740
  * Asynchronous mkdir(2) - create a directory.
@@ -1681,11 +1747,11 @@ declare module 'fs' {
1681
1747
  options:
1682
1748
  | Mode
1683
1749
  | (MakeDirectoryOptions & {
1684
- recursive?: false | undefined;
1685
- })
1750
+ recursive?: false | undefined;
1751
+ })
1686
1752
  | null
1687
1753
  | undefined,
1688
- callback: NoParamCallback
1754
+ callback: NoParamCallback,
1689
1755
  ): void;
1690
1756
  /**
1691
1757
  * Asynchronous mkdir(2) - create a directory.
@@ -1693,7 +1759,11 @@ declare module 'fs' {
1693
1759
  * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
1694
1760
  * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
1695
1761
  */
1696
- export function mkdir(path: PathLike, options: Mode | MakeDirectoryOptions | null | undefined, callback: (err: NodeJS.ErrnoException | null, path?: string) => void): void;
1762
+ export function mkdir(
1763
+ path: PathLike,
1764
+ options: Mode | MakeDirectoryOptions | null | undefined,
1765
+ callback: (err: NodeJS.ErrnoException | null, path?: string) => void,
1766
+ ): void;
1697
1767
  /**
1698
1768
  * Asynchronous mkdir(2) - create a directory with a mode of `0o777`.
1699
1769
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
@@ -1710,7 +1780,7 @@ declare module 'fs' {
1710
1780
  path: PathLike,
1711
1781
  options: MakeDirectoryOptions & {
1712
1782
  recursive: true;
1713
- }
1783
+ },
1714
1784
  ): Promise<string | undefined>;
1715
1785
  /**
1716
1786
  * Asynchronous mkdir(2) - create a directory.
@@ -1723,9 +1793,9 @@ declare module 'fs' {
1723
1793
  options?:
1724
1794
  | Mode
1725
1795
  | (MakeDirectoryOptions & {
1726
- recursive?: false | undefined;
1727
- })
1728
- | null
1796
+ recursive?: false | undefined;
1797
+ })
1798
+ | null,
1729
1799
  ): Promise<void>;
1730
1800
  /**
1731
1801
  * Asynchronous mkdir(2) - create a directory.
@@ -1733,7 +1803,10 @@ declare module 'fs' {
1733
1803
  * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
1734
1804
  * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
1735
1805
  */
1736
- function __promisify__(path: PathLike, options?: Mode | MakeDirectoryOptions | null): Promise<string | undefined>;
1806
+ function __promisify__(
1807
+ path: PathLike,
1808
+ options?: Mode | MakeDirectoryOptions | null,
1809
+ ): Promise<string | undefined>;
1737
1810
  }
1738
1811
  /**
1739
1812
  * Synchronously creates a directory. Returns `undefined`, or if `recursive` is`true`, the first directory path created.
@@ -1746,7 +1819,7 @@ declare module 'fs' {
1746
1819
  path: PathLike,
1747
1820
  options: MakeDirectoryOptions & {
1748
1821
  recursive: true;
1749
- }
1822
+ },
1750
1823
  ): string | undefined;
1751
1824
  /**
1752
1825
  * Synchronous mkdir(2) - create a directory.
@@ -1759,9 +1832,9 @@ declare module 'fs' {
1759
1832
  options?:
1760
1833
  | Mode
1761
1834
  | (MakeDirectoryOptions & {
1762
- recursive?: false | undefined;
1763
- })
1764
- | null
1835
+ recursive?: false | undefined;
1836
+ })
1837
+ | null,
1765
1838
  ): void;
1766
1839
  /**
1767
1840
  * Synchronous mkdir(2) - create a directory.
@@ -1829,7 +1902,11 @@ declare module 'fs' {
1829
1902
  * ```
1830
1903
  * @since v5.10.0
1831
1904
  */
1832
- export function mkdtemp(prefix: string, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, folder: string) => void): void;
1905
+ export function mkdtemp(
1906
+ prefix: string,
1907
+ options: EncodingOption,
1908
+ callback: (err: NodeJS.ErrnoException | null, folder: string) => void,
1909
+ ): void;
1833
1910
  /**
1834
1911
  * Asynchronously creates a unique temporary directory.
1835
1912
  * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
@@ -1838,23 +1915,30 @@ declare module 'fs' {
1838
1915
  export function mkdtemp(
1839
1916
  prefix: string,
1840
1917
  options:
1841
- | 'buffer'
1918
+ | "buffer"
1842
1919
  | {
1843
- encoding: 'buffer';
1844
- },
1845
- callback: (err: NodeJS.ErrnoException | null, folder: Buffer) => void
1920
+ encoding: "buffer";
1921
+ },
1922
+ callback: (err: NodeJS.ErrnoException | null, folder: Buffer) => void,
1846
1923
  ): void;
1847
1924
  /**
1848
1925
  * Asynchronously creates a unique temporary directory.
1849
1926
  * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
1850
1927
  * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
1851
1928
  */
1852
- export function mkdtemp(prefix: string, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, folder: string | Buffer) => void): void;
1929
+ export function mkdtemp(
1930
+ prefix: string,
1931
+ options: EncodingOption,
1932
+ callback: (err: NodeJS.ErrnoException | null, folder: string | Buffer) => void,
1933
+ ): void;
1853
1934
  /**
1854
1935
  * Asynchronously creates a unique temporary directory.
1855
1936
  * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
1856
1937
  */
1857
- export function mkdtemp(prefix: string, callback: (err: NodeJS.ErrnoException | null, folder: string) => void): void;
1938
+ export function mkdtemp(
1939
+ prefix: string,
1940
+ callback: (err: NodeJS.ErrnoException | null, folder: string) => void,
1941
+ ): void;
1858
1942
  export namespace mkdtemp {
1859
1943
  /**
1860
1944
  * Asynchronously creates a unique temporary directory.
@@ -1915,14 +1999,14 @@ declare module 'fs' {
1915
1999
  path: PathLike,
1916
2000
  options:
1917
2001
  | {
1918
- encoding: BufferEncoding | null;
1919
- withFileTypes?: false | undefined;
1920
- recursive?: boolean | undefined;
1921
- }
2002
+ encoding: BufferEncoding | null;
2003
+ withFileTypes?: false | undefined;
2004
+ recursive?: boolean | undefined;
2005
+ }
1922
2006
  | BufferEncoding
1923
2007
  | undefined
1924
2008
  | null,
1925
- callback: (err: NodeJS.ErrnoException | null, files: string[]) => void
2009
+ callback: (err: NodeJS.ErrnoException | null, files: string[]) => void,
1926
2010
  ): void;
1927
2011
  /**
1928
2012
  * Asynchronous readdir(3) - read a directory.
@@ -1933,12 +2017,12 @@ declare module 'fs' {
1933
2017
  path: PathLike,
1934
2018
  options:
1935
2019
  | {
1936
- encoding: 'buffer';
1937
- withFileTypes?: false | undefined;
1938
- recursive?: boolean | undefined;
1939
- }
1940
- | 'buffer',
1941
- callback: (err: NodeJS.ErrnoException | null, files: Buffer[]) => void
2020
+ encoding: "buffer";
2021
+ withFileTypes?: false | undefined;
2022
+ recursive?: boolean | undefined;
2023
+ }
2024
+ | "buffer",
2025
+ callback: (err: NodeJS.ErrnoException | null, files: Buffer[]) => void,
1942
2026
  ): void;
1943
2027
  /**
1944
2028
  * Asynchronous readdir(3) - read a directory.
@@ -1949,19 +2033,22 @@ declare module 'fs' {
1949
2033
  path: PathLike,
1950
2034
  options:
1951
2035
  | (ObjectEncodingOptions & {
1952
- withFileTypes?: false | undefined;
1953
- recursive?: boolean | undefined;
1954
- })
2036
+ withFileTypes?: false | undefined;
2037
+ recursive?: boolean | undefined;
2038
+ })
1955
2039
  | BufferEncoding
1956
2040
  | undefined
1957
2041
  | null,
1958
- callback: (err: NodeJS.ErrnoException | null, files: string[] | Buffer[]) => void
2042
+ callback: (err: NodeJS.ErrnoException | null, files: string[] | Buffer[]) => void,
1959
2043
  ): void;
1960
2044
  /**
1961
2045
  * Asynchronous readdir(3) - read a directory.
1962
2046
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1963
2047
  */
1964
- export function readdir(path: PathLike, callback: (err: NodeJS.ErrnoException | null, files: string[]) => void): void;
2048
+ export function readdir(
2049
+ path: PathLike,
2050
+ callback: (err: NodeJS.ErrnoException | null, files: string[]) => void,
2051
+ ): void;
1965
2052
  /**
1966
2053
  * Asynchronous readdir(3) - read a directory.
1967
2054
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
@@ -1973,7 +2060,7 @@ declare module 'fs' {
1973
2060
  withFileTypes: true;
1974
2061
  recursive?: boolean | undefined;
1975
2062
  },
1976
- callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void
2063
+ callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void,
1977
2064
  ): void;
1978
2065
  export namespace readdir {
1979
2066
  /**
@@ -1985,12 +2072,12 @@ declare module 'fs' {
1985
2072
  path: PathLike,
1986
2073
  options?:
1987
2074
  | {
1988
- encoding: BufferEncoding | null;
1989
- withFileTypes?: false | undefined;
1990
- recursive?: boolean | undefined;
1991
- }
2075
+ encoding: BufferEncoding | null;
2076
+ withFileTypes?: false | undefined;
2077
+ recursive?: boolean | undefined;
2078
+ }
1992
2079
  | BufferEncoding
1993
- | null
2080
+ | null,
1994
2081
  ): Promise<string[]>;
1995
2082
  /**
1996
2083
  * Asynchronous readdir(3) - read a directory.
@@ -2000,12 +2087,12 @@ declare module 'fs' {
2000
2087
  function __promisify__(
2001
2088
  path: PathLike,
2002
2089
  options:
2003
- | 'buffer'
2090
+ | "buffer"
2004
2091
  | {
2005
- encoding: 'buffer';
2006
- withFileTypes?: false | undefined;
2007
- recursive?: boolean | undefined;
2008
- }
2092
+ encoding: "buffer";
2093
+ withFileTypes?: false | undefined;
2094
+ recursive?: boolean | undefined;
2095
+ },
2009
2096
  ): Promise<Buffer[]>;
2010
2097
  /**
2011
2098
  * Asynchronous readdir(3) - read a directory.
@@ -2016,11 +2103,11 @@ declare module 'fs' {
2016
2103
  path: PathLike,
2017
2104
  options?:
2018
2105
  | (ObjectEncodingOptions & {
2019
- withFileTypes?: false | undefined;
2020
- recursive?: boolean | undefined;
2021
- })
2106
+ withFileTypes?: false | undefined;
2107
+ recursive?: boolean | undefined;
2108
+ })
2022
2109
  | BufferEncoding
2023
- | null
2110
+ | null,
2024
2111
  ): Promise<string[] | Buffer[]>;
2025
2112
  /**
2026
2113
  * Asynchronous readdir(3) - read a directory.
@@ -2032,7 +2119,7 @@ declare module 'fs' {
2032
2119
  options: ObjectEncodingOptions & {
2033
2120
  withFileTypes: true;
2034
2121
  recursive?: boolean | undefined;
2035
- }
2122
+ },
2036
2123
  ): Promise<Dirent[]>;
2037
2124
  }
2038
2125
  /**
@@ -2052,12 +2139,12 @@ declare module 'fs' {
2052
2139
  path: PathLike,
2053
2140
  options?:
2054
2141
  | {
2055
- encoding: BufferEncoding | null;
2056
- withFileTypes?: false | undefined;
2057
- recursive?: boolean | undefined;
2058
- }
2142
+ encoding: BufferEncoding | null;
2143
+ withFileTypes?: false | undefined;
2144
+ recursive?: boolean | undefined;
2145
+ }
2059
2146
  | BufferEncoding
2060
- | null
2147
+ | null,
2061
2148
  ): string[];
2062
2149
  /**
2063
2150
  * Synchronous readdir(3) - read a directory.
@@ -2068,11 +2155,11 @@ declare module 'fs' {
2068
2155
  path: PathLike,
2069
2156
  options:
2070
2157
  | {
2071
- encoding: 'buffer';
2072
- withFileTypes?: false | undefined;
2073
- recursive?: boolean | undefined;
2074
- }
2075
- | 'buffer'
2158
+ encoding: "buffer";
2159
+ withFileTypes?: false | undefined;
2160
+ recursive?: boolean | undefined;
2161
+ }
2162
+ | "buffer",
2076
2163
  ): Buffer[];
2077
2164
  /**
2078
2165
  * Synchronous readdir(3) - read a directory.
@@ -2083,11 +2170,11 @@ declare module 'fs' {
2083
2170
  path: PathLike,
2084
2171
  options?:
2085
2172
  | (ObjectEncodingOptions & {
2086
- withFileTypes?: false | undefined;
2087
- recursive?: boolean | undefined;
2088
- })
2173
+ withFileTypes?: false | undefined;
2174
+ recursive?: boolean | undefined;
2175
+ })
2089
2176
  | BufferEncoding
2090
- | null
2177
+ | null,
2091
2178
  ): string[] | Buffer[];
2092
2179
  /**
2093
2180
  * Synchronous readdir(3) - read a directory.
@@ -2099,7 +2186,7 @@ declare module 'fs' {
2099
2186
  options: ObjectEncodingOptions & {
2100
2187
  withFileTypes: true;
2101
2188
  recursive?: boolean | undefined;
2102
- }
2189
+ },
2103
2190
  ): Dirent[];
2104
2191
  /**
2105
2192
  * Closes the file descriptor. No arguments other than a possible exception are
@@ -2146,13 +2233,22 @@ declare module 'fs' {
2146
2233
  * @param [flags='r'] See `support of file system `flags``.
2147
2234
  * @param [mode=0o666]
2148
2235
  */
2149
- export function open(path: PathLike, flags: OpenMode | undefined, mode: Mode | undefined | null, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
2236
+ export function open(
2237
+ path: PathLike,
2238
+ flags: OpenMode | undefined,
2239
+ mode: Mode | undefined | null,
2240
+ callback: (err: NodeJS.ErrnoException | null, fd: number) => void,
2241
+ ): void;
2150
2242
  /**
2151
2243
  * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
2152
2244
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
2153
2245
  * @param [flags='r'] See `support of file system `flags``.
2154
2246
  */
2155
- export function open(path: PathLike, flags: OpenMode | undefined, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
2247
+ export function open(
2248
+ path: PathLike,
2249
+ flags: OpenMode | undefined,
2250
+ callback: (err: NodeJS.ErrnoException | null, fd: number) => void,
2251
+ ): void;
2156
2252
  /**
2157
2253
  * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
2158
2254
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
@@ -2278,7 +2374,7 @@ declare module 'fs' {
2278
2374
  offset: number | undefined | null,
2279
2375
  length: number | undefined | null,
2280
2376
  position: number | undefined | null,
2281
- callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void
2377
+ callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void,
2282
2378
  ): void;
2283
2379
  /**
2284
2380
  * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor.
@@ -2291,7 +2387,7 @@ declare module 'fs' {
2291
2387
  buffer: TBuffer,
2292
2388
  offset: number | undefined | null,
2293
2389
  length: number | undefined | null,
2294
- callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void
2390
+ callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void,
2295
2391
  ): void;
2296
2392
  /**
2297
2393
  * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor.
@@ -2302,13 +2398,17 @@ declare module 'fs' {
2302
2398
  fd: number,
2303
2399
  buffer: TBuffer,
2304
2400
  offset: number | undefined | null,
2305
- callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void
2401
+ callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void,
2306
2402
  ): void;
2307
2403
  /**
2308
2404
  * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor.
2309
2405
  * @param fd A file descriptor.
2310
2406
  */
2311
- export function write<TBuffer extends NodeJS.ArrayBufferView>(fd: number, buffer: TBuffer, callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void): void;
2407
+ export function write<TBuffer extends NodeJS.ArrayBufferView>(
2408
+ fd: number,
2409
+ buffer: TBuffer,
2410
+ callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void,
2411
+ ): void;
2312
2412
  /**
2313
2413
  * Asynchronously writes `string` to the file referenced by the supplied file descriptor.
2314
2414
  * @param fd A file descriptor.
@@ -2321,7 +2421,7 @@ declare module 'fs' {
2321
2421
  string: string,
2322
2422
  position: number | undefined | null,
2323
2423
  encoding: BufferEncoding | undefined | null,
2324
- callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void
2424
+ callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void,
2325
2425
  ): void;
2326
2426
  /**
2327
2427
  * Asynchronously writes `string` to the file referenced by the supplied file descriptor.
@@ -2329,13 +2429,22 @@ declare module 'fs' {
2329
2429
  * @param string A string to write.
2330
2430
  * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
2331
2431
  */
2332
- export function write(fd: number, string: string, position: number | undefined | null, callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void): void;
2432
+ export function write(
2433
+ fd: number,
2434
+ string: string,
2435
+ position: number | undefined | null,
2436
+ callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void,
2437
+ ): void;
2333
2438
  /**
2334
2439
  * Asynchronously writes `string` to the file referenced by the supplied file descriptor.
2335
2440
  * @param fd A file descriptor.
2336
2441
  * @param string A string to write.
2337
2442
  */
2338
- export function write(fd: number, string: string, callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void): void;
2443
+ export function write(
2444
+ fd: number,
2445
+ string: string,
2446
+ callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void,
2447
+ ): void;
2339
2448
  export namespace write {
2340
2449
  /**
2341
2450
  * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor.
@@ -2349,7 +2458,7 @@ declare module 'fs' {
2349
2458
  buffer?: TBuffer,
2350
2459
  offset?: number,
2351
2460
  length?: number,
2352
- position?: number | null
2461
+ position?: number | null,
2353
2462
  ): Promise<{
2354
2463
  bytesWritten: number;
2355
2464
  buffer: TBuffer;
@@ -2365,7 +2474,7 @@ declare module 'fs' {
2365
2474
  fd: number,
2366
2475
  string: string,
2367
2476
  position?: number | null,
2368
- encoding?: BufferEncoding | null
2477
+ encoding?: BufferEncoding | null,
2369
2478
  ): Promise<{
2370
2479
  bytesWritten: number;
2371
2480
  buffer: string;
@@ -2380,7 +2489,13 @@ declare module 'fs' {
2380
2489
  * @param [position='null']
2381
2490
  * @return The number of bytes written.
2382
2491
  */
2383
- export function writeSync(fd: number, buffer: NodeJS.ArrayBufferView, offset?: number | null, length?: number | null, position?: number | null): number;
2492
+ export function writeSync(
2493
+ fd: number,
2494
+ buffer: NodeJS.ArrayBufferView,
2495
+ offset?: number | null,
2496
+ length?: number | null,
2497
+ position?: number | null,
2498
+ ): number;
2384
2499
  /**
2385
2500
  * Synchronously writes `string` to the file referenced by the supplied file descriptor, returning the number of bytes written.
2386
2501
  * @param fd A file descriptor.
@@ -2388,7 +2503,12 @@ declare module 'fs' {
2388
2503
  * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
2389
2504
  * @param encoding The expected string encoding.
2390
2505
  */
2391
- export function writeSync(fd: number, string: string, position?: number | null, encoding?: BufferEncoding | null): number;
2506
+ export function writeSync(
2507
+ fd: number,
2508
+ string: string,
2509
+ position?: number | null,
2510
+ encoding?: BufferEncoding | null,
2511
+ ): number;
2392
2512
  export type ReadPosition = number | bigint;
2393
2513
  export interface ReadSyncOptions {
2394
2514
  /**
@@ -2430,7 +2550,7 @@ declare module 'fs' {
2430
2550
  offset: number,
2431
2551
  length: number,
2432
2552
  position: ReadPosition | null,
2433
- callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void
2553
+ callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void,
2434
2554
  ): void;
2435
2555
  /**
2436
2556
  * Similar to the above `fs.read` function, this version takes an optional `options` object.
@@ -2444,9 +2564,12 @@ declare module 'fs' {
2444
2564
  export function read<TBuffer extends NodeJS.ArrayBufferView>(
2445
2565
  fd: number,
2446
2566
  options: ReadAsyncOptions<TBuffer>,
2447
- callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void
2567
+ callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void,
2568
+ ): void;
2569
+ export function read(
2570
+ fd: number,
2571
+ callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: NodeJS.ArrayBufferView) => void,
2448
2572
  ): void;
2449
- export function read(fd: number, callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: NodeJS.ArrayBufferView) => void): void;
2450
2573
  export namespace read {
2451
2574
  /**
2452
2575
  * @param fd A file descriptor.
@@ -2460,14 +2583,14 @@ declare module 'fs' {
2460
2583
  buffer: TBuffer,
2461
2584
  offset: number,
2462
2585
  length: number,
2463
- position: number | null
2586
+ position: number | null,
2464
2587
  ): Promise<{
2465
2588
  bytesRead: number;
2466
2589
  buffer: TBuffer;
2467
2590
  }>;
2468
2591
  function __promisify__<TBuffer extends NodeJS.ArrayBufferView>(
2469
2592
  fd: number,
2470
- options: ReadAsyncOptions<TBuffer>
2593
+ options: ReadAsyncOptions<TBuffer>,
2471
2594
  ): Promise<{
2472
2595
  bytesRead: number;
2473
2596
  buffer: TBuffer;
@@ -2485,7 +2608,13 @@ declare module 'fs' {
2485
2608
  * @since v0.1.21
2486
2609
  * @param [position='null']
2487
2610
  */
2488
- export function readSync(fd: number, buffer: NodeJS.ArrayBufferView, offset: number, length: number, position: ReadPosition | null): number;
2611
+ export function readSync(
2612
+ fd: number,
2613
+ buffer: NodeJS.ArrayBufferView,
2614
+ offset: number,
2615
+ length: number,
2616
+ position: ReadPosition | null,
2617
+ ): number;
2489
2618
  /**
2490
2619
  * Similar to the above `fs.readSync` function, this version takes an optional `options` object.
2491
2620
  * If no `options` object is specified, it will default with the above values.
@@ -2561,12 +2690,12 @@ declare module 'fs' {
2561
2690
  path: PathOrFileDescriptor,
2562
2691
  options:
2563
2692
  | ({
2564
- encoding?: null | undefined;
2565
- flag?: string | undefined;
2566
- } & Abortable)
2693
+ encoding?: null | undefined;
2694
+ flag?: string | undefined;
2695
+ } & Abortable)
2567
2696
  | undefined
2568
2697
  | null,
2569
- callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void
2698
+ callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void,
2570
2699
  ): void;
2571
2700
  /**
2572
2701
  * Asynchronously reads the entire contents of a file.
@@ -2579,11 +2708,11 @@ declare module 'fs' {
2579
2708
  path: PathOrFileDescriptor,
2580
2709
  options:
2581
2710
  | ({
2582
- encoding: BufferEncoding;
2583
- flag?: string | undefined;
2584
- } & Abortable)
2711
+ encoding: BufferEncoding;
2712
+ flag?: string | undefined;
2713
+ } & Abortable)
2585
2714
  | BufferEncoding,
2586
- callback: (err: NodeJS.ErrnoException | null, data: string) => void
2715
+ callback: (err: NodeJS.ErrnoException | null, data: string) => void,
2587
2716
  ): void;
2588
2717
  /**
2589
2718
  * Asynchronously reads the entire contents of a file.
@@ -2596,19 +2725,22 @@ declare module 'fs' {
2596
2725
  path: PathOrFileDescriptor,
2597
2726
  options:
2598
2727
  | (ObjectEncodingOptions & {
2599
- flag?: string | undefined;
2600
- } & Abortable)
2728
+ flag?: string | undefined;
2729
+ } & Abortable)
2601
2730
  | BufferEncoding
2602
2731
  | undefined
2603
2732
  | null,
2604
- callback: (err: NodeJS.ErrnoException | null, data: string | Buffer) => void
2733
+ callback: (err: NodeJS.ErrnoException | null, data: string | Buffer) => void,
2605
2734
  ): void;
2606
2735
  /**
2607
2736
  * Asynchronously reads the entire contents of a file.
2608
2737
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
2609
2738
  * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
2610
2739
  */
2611
- export function readFile(path: PathOrFileDescriptor, callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void): void;
2740
+ export function readFile(
2741
+ path: PathOrFileDescriptor,
2742
+ callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void,
2743
+ ): void;
2612
2744
  export namespace readFile {
2613
2745
  /**
2614
2746
  * Asynchronously reads the entire contents of a file.
@@ -2622,7 +2754,7 @@ declare module 'fs' {
2622
2754
  options?: {
2623
2755
  encoding?: null | undefined;
2624
2756
  flag?: string | undefined;
2625
- } | null
2757
+ } | null,
2626
2758
  ): Promise<Buffer>;
2627
2759
  /**
2628
2760
  * Asynchronously reads the entire contents of a file.
@@ -2636,10 +2768,10 @@ declare module 'fs' {
2636
2768
  path: PathOrFileDescriptor,
2637
2769
  options:
2638
2770
  | {
2639
- encoding: BufferEncoding;
2640
- flag?: string | undefined;
2641
- }
2642
- | BufferEncoding
2771
+ encoding: BufferEncoding;
2772
+ flag?: string | undefined;
2773
+ }
2774
+ | BufferEncoding,
2643
2775
  ): Promise<string>;
2644
2776
  /**
2645
2777
  * Asynchronously reads the entire contents of a file.
@@ -2653,10 +2785,10 @@ declare module 'fs' {
2653
2785
  path: PathOrFileDescriptor,
2654
2786
  options?:
2655
2787
  | (ObjectEncodingOptions & {
2656
- flag?: string | undefined;
2657
- })
2788
+ flag?: string | undefined;
2789
+ })
2658
2790
  | BufferEncoding
2659
- | null
2791
+ | null,
2660
2792
  ): Promise<string | Buffer>;
2661
2793
  }
2662
2794
  /**
@@ -2688,7 +2820,7 @@ declare module 'fs' {
2688
2820
  options?: {
2689
2821
  encoding?: null | undefined;
2690
2822
  flag?: string | undefined;
2691
- } | null
2823
+ } | null,
2692
2824
  ): Buffer;
2693
2825
  /**
2694
2826
  * Synchronously reads the entire contents of a file.
@@ -2701,10 +2833,10 @@ declare module 'fs' {
2701
2833
  path: PathOrFileDescriptor,
2702
2834
  options:
2703
2835
  | {
2704
- encoding: BufferEncoding;
2705
- flag?: string | undefined;
2706
- }
2707
- | BufferEncoding
2836
+ encoding: BufferEncoding;
2837
+ flag?: string | undefined;
2838
+ }
2839
+ | BufferEncoding,
2708
2840
  ): string;
2709
2841
  /**
2710
2842
  * Synchronously reads the entire contents of a file.
@@ -2717,17 +2849,21 @@ declare module 'fs' {
2717
2849
  path: PathOrFileDescriptor,
2718
2850
  options?:
2719
2851
  | (ObjectEncodingOptions & {
2720
- flag?: string | undefined;
2721
- })
2852
+ flag?: string | undefined;
2853
+ })
2722
2854
  | BufferEncoding
2723
- | null
2855
+ | null,
2724
2856
  ): string | Buffer;
2725
2857
  export type WriteFileOptions =
2726
- | (ObjectEncodingOptions &
2727
- Abortable & {
2728
- mode?: Mode | undefined;
2729
- flag?: string | undefined;
2730
- })
2858
+ | (
2859
+ & ObjectEncodingOptions
2860
+ & Abortable
2861
+ & {
2862
+ mode?: Mode | undefined;
2863
+ flag?: string | undefined;
2864
+ flush?: boolean | undefined;
2865
+ }
2866
+ )
2731
2867
  | BufferEncoding
2732
2868
  | null;
2733
2869
  /**
@@ -2791,14 +2927,23 @@ declare module 'fs' {
2791
2927
  * @since v0.1.29
2792
2928
  * @param file filename or file descriptor
2793
2929
  */
2794
- export function writeFile(file: PathOrFileDescriptor, data: string | NodeJS.ArrayBufferView, options: WriteFileOptions, callback: NoParamCallback): void;
2930
+ export function writeFile(
2931
+ file: PathOrFileDescriptor,
2932
+ data: string | NodeJS.ArrayBufferView,
2933
+ options: WriteFileOptions,
2934
+ callback: NoParamCallback,
2935
+ ): void;
2795
2936
  /**
2796
2937
  * Asynchronously writes data to a file, replacing the file if it already exists.
2797
2938
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
2798
2939
  * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
2799
2940
  * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string.
2800
2941
  */
2801
- export function writeFile(path: PathOrFileDescriptor, data: string | NodeJS.ArrayBufferView, callback: NoParamCallback): void;
2942
+ export function writeFile(
2943
+ path: PathOrFileDescriptor,
2944
+ data: string | NodeJS.ArrayBufferView,
2945
+ callback: NoParamCallback,
2946
+ ): void;
2802
2947
  export namespace writeFile {
2803
2948
  /**
2804
2949
  * Asynchronously writes data to a file, replacing the file if it already exists.
@@ -2812,7 +2957,11 @@ declare module 'fs' {
2812
2957
  * If `mode` is a string, it is parsed as an octal integer.
2813
2958
  * If `flag` is not supplied, the default of `'w'` is used.
2814
2959
  */
2815
- function __promisify__(path: PathOrFileDescriptor, data: string | NodeJS.ArrayBufferView, options?: WriteFileOptions): Promise<void>;
2960
+ function __promisify__(
2961
+ path: PathOrFileDescriptor,
2962
+ data: string | NodeJS.ArrayBufferView,
2963
+ options?: WriteFileOptions,
2964
+ ): Promise<void>;
2816
2965
  }
2817
2966
  /**
2818
2967
  * Returns `undefined`.
@@ -2824,7 +2973,11 @@ declare module 'fs' {
2824
2973
  * @since v0.1.29
2825
2974
  * @param file filename or file descriptor
2826
2975
  */
2827
- export function writeFileSync(file: PathOrFileDescriptor, data: string | NodeJS.ArrayBufferView, options?: WriteFileOptions): void;
2976
+ export function writeFileSync(
2977
+ file: PathOrFileDescriptor,
2978
+ data: string | NodeJS.ArrayBufferView,
2979
+ options?: WriteFileOptions,
2980
+ ): void;
2828
2981
  /**
2829
2982
  * Asynchronously append data to a file, creating the file if it does not yet
2830
2983
  * exist. `data` can be a string or a `Buffer`.
@@ -2878,7 +3031,12 @@ declare module 'fs' {
2878
3031
  * @since v0.6.7
2879
3032
  * @param path filename or file descriptor
2880
3033
  */
2881
- export function appendFile(path: PathOrFileDescriptor, data: string | Uint8Array, options: WriteFileOptions, callback: NoParamCallback): void;
3034
+ export function appendFile(
3035
+ path: PathOrFileDescriptor,
3036
+ data: string | Uint8Array,
3037
+ options: WriteFileOptions,
3038
+ callback: NoParamCallback,
3039
+ ): void;
2882
3040
  /**
2883
3041
  * Asynchronously append data to a file, creating the file if it does not exist.
2884
3042
  * @param file A path to a file. If a URL is provided, it must use the `file:` protocol.
@@ -2899,7 +3057,11 @@ declare module 'fs' {
2899
3057
  * If `mode` is a string, it is parsed as an octal integer.
2900
3058
  * If `flag` is not supplied, the default of `'a'` is used.
2901
3059
  */
2902
- function __promisify__(file: PathOrFileDescriptor, data: string | Uint8Array, options?: WriteFileOptions): Promise<void>;
3060
+ function __promisify__(
3061
+ file: PathOrFileDescriptor,
3062
+ data: string | Uint8Array,
3063
+ options?: WriteFileOptions,
3064
+ ): Promise<void>;
2903
3065
  }
2904
3066
  /**
2905
3067
  * Synchronously append data to a file, creating the file if it does not yet
@@ -2948,7 +3110,11 @@ declare module 'fs' {
2948
3110
  * @since v0.6.7
2949
3111
  * @param path filename or file descriptor
2950
3112
  */
2951
- export function appendFileSync(path: PathOrFileDescriptor, data: string | Uint8Array, options?: WriteFileOptions): void;
3113
+ export function appendFileSync(
3114
+ path: PathOrFileDescriptor,
3115
+ data: string | Uint8Array,
3116
+ options?: WriteFileOptions,
3117
+ ): void;
2952
3118
  /**
2953
3119
  * Watch for changes on `filename`. The callback `listener` will be called each
2954
3120
  * time the file is accessed.
@@ -3050,19 +3216,19 @@ declare module 'fs' {
3050
3216
  filename: PathLike,
3051
3217
  options:
3052
3218
  | (WatchFileOptions & {
3053
- bigint?: false | undefined;
3054
- })
3219
+ bigint?: false | undefined;
3220
+ })
3055
3221
  | undefined,
3056
- listener: StatsListener
3222
+ listener: StatsListener,
3057
3223
  ): StatWatcher;
3058
3224
  export function watchFile(
3059
3225
  filename: PathLike,
3060
3226
  options:
3061
3227
  | (WatchFileOptions & {
3062
- bigint: true;
3063
- })
3228
+ bigint: true;
3229
+ })
3064
3230
  | undefined,
3065
- listener: BigIntStatsListener
3231
+ listener: BigIntStatsListener,
3066
3232
  ): StatWatcher;
3067
3233
  /**
3068
3234
  * Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed.
@@ -3084,11 +3250,11 @@ declare module 'fs' {
3084
3250
  export function unwatchFile(filename: PathLike, listener?: StatsListener): void;
3085
3251
  export function unwatchFile(filename: PathLike, listener?: BigIntStatsListener): void;
3086
3252
  export interface WatchOptions extends Abortable {
3087
- encoding?: BufferEncoding | 'buffer' | undefined;
3253
+ encoding?: BufferEncoding | "buffer" | undefined;
3088
3254
  persistent?: boolean | undefined;
3089
3255
  recursive?: boolean | undefined;
3090
3256
  }
3091
- export type WatchEventType = 'rename' | 'change';
3257
+ export type WatchEventType = "rename" | "change";
3092
3258
  export type WatchListener<T> = (event: WatchEventType, filename: T | null) => void;
3093
3259
  export type StatsListener = (curr: Stats, prev: Stats) => void;
3094
3260
  export type BigIntStatsListener = (curr: BigIntStats, prev: BigIntStats) => void;
@@ -3116,10 +3282,10 @@ declare module 'fs' {
3116
3282
  filename: PathLike,
3117
3283
  options:
3118
3284
  | (WatchOptions & {
3119
- encoding: 'buffer';
3120
- })
3121
- | 'buffer',
3122
- listener?: WatchListener<Buffer>
3285
+ encoding: "buffer";
3286
+ })
3287
+ | "buffer",
3288
+ listener?: WatchListener<Buffer>,
3123
3289
  ): FSWatcher;
3124
3290
  /**
3125
3291
  * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
@@ -3129,7 +3295,11 @@ declare module 'fs' {
3129
3295
  * If `persistent` is not supplied, the default of `true` is used.
3130
3296
  * If `recursive` is not supplied, the default of `false` is used.
3131
3297
  */
3132
- export function watch(filename: PathLike, options?: WatchOptions | BufferEncoding | null, listener?: WatchListener<string>): FSWatcher;
3298
+ export function watch(
3299
+ filename: PathLike,
3300
+ options?: WatchOptions | BufferEncoding | null,
3301
+ listener?: WatchListener<string>,
3302
+ ): FSWatcher;
3133
3303
  /**
3134
3304
  * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
3135
3305
  * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
@@ -3138,7 +3308,11 @@ declare module 'fs' {
3138
3308
  * If `persistent` is not supplied, the default of `true` is used.
3139
3309
  * If `recursive` is not supplied, the default of `false` is used.
3140
3310
  */
3141
- export function watch(filename: PathLike, options: WatchOptions | string, listener?: WatchListener<string | Buffer>): FSWatcher;
3311
+ export function watch(
3312
+ filename: PathLike,
3313
+ options: WatchOptions | string,
3314
+ listener?: WatchListener<string | Buffer>,
3315
+ ): FSWatcher;
3142
3316
  /**
3143
3317
  * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
3144
3318
  * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
@@ -3621,6 +3795,7 @@ declare module 'fs' {
3621
3795
  emitClose?: boolean | undefined;
3622
3796
  start?: number | undefined;
3623
3797
  signal?: AbortSignal | null | undefined;
3798
+ highWaterMark?: number | undefined;
3624
3799
  }
3625
3800
  interface FSImplementation {
3626
3801
  open?: (...args: any[]) => any;
@@ -3636,10 +3811,10 @@ declare module 'fs' {
3636
3811
  interface ReadStreamOptions extends StreamOptions {
3637
3812
  fs?: CreateReadStreamFSImplementation | null | undefined;
3638
3813
  end?: number | undefined;
3639
- highWaterMark?: number | undefined;
3640
3814
  }
3641
3815
  interface WriteStreamOptions extends StreamOptions {
3642
3816
  fs?: CreateWriteStreamFSImplementation | null | undefined;
3817
+ flush?: boolean | undefined;
3643
3818
  }
3644
3819
  /**
3645
3820
  * Unlike the 16 KiB default `highWaterMark` for a `stream.Readable`, the stream
@@ -3854,19 +4029,27 @@ declare module 'fs' {
3854
4029
  * @since v12.9.0
3855
4030
  * @param [position='null']
3856
4031
  */
3857
- export function writev(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void): void;
3858
4032
  export function writev(
3859
4033
  fd: number,
3860
- buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
4034
+ buffers: readonly NodeJS.ArrayBufferView[],
4035
+ cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void,
4036
+ ): void;
4037
+ export function writev(
4038
+ fd: number,
4039
+ buffers: readonly NodeJS.ArrayBufferView[],
3861
4040
  position: number,
3862
- cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void
4041
+ cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void,
3863
4042
  ): void;
3864
4043
  export interface WriteVResult {
3865
4044
  bytesWritten: number;
3866
4045
  buffers: NodeJS.ArrayBufferView[];
3867
4046
  }
3868
4047
  export namespace writev {
3869
- function __promisify__(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<WriteVResult>;
4048
+ function __promisify__(
4049
+ fd: number,
4050
+ buffers: readonly NodeJS.ArrayBufferView[],
4051
+ position?: number,
4052
+ ): Promise<WriteVResult>;
3870
4053
  }
3871
4054
  /**
3872
4055
  * For detailed information, see the documentation of the asynchronous version of
@@ -3875,7 +4058,7 @@ declare module 'fs' {
3875
4058
  * @param [position='null']
3876
4059
  * @return The number of bytes written.
3877
4060
  */
3878
- export function writevSync(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): number;
4061
+ export function writevSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number;
3879
4062
  /**
3880
4063
  * Read from a file specified by `fd` and write to an array of `ArrayBufferView`s
3881
4064
  * using `readv()`.
@@ -3891,19 +4074,27 @@ declare module 'fs' {
3891
4074
  * @since v13.13.0, v12.17.0
3892
4075
  * @param [position='null']
3893
4076
  */
3894
- export function readv(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void): void;
3895
4077
  export function readv(
3896
4078
  fd: number,
3897
- buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
4079
+ buffers: readonly NodeJS.ArrayBufferView[],
4080
+ cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void,
4081
+ ): void;
4082
+ export function readv(
4083
+ fd: number,
4084
+ buffers: readonly NodeJS.ArrayBufferView[],
3898
4085
  position: number,
3899
- cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void
4086
+ cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void,
3900
4087
  ): void;
3901
4088
  export interface ReadVResult {
3902
4089
  bytesRead: number;
3903
4090
  buffers: NodeJS.ArrayBufferView[];
3904
4091
  }
3905
4092
  export namespace readv {
3906
- function __promisify__(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<ReadVResult>;
4093
+ function __promisify__(
4094
+ fd: number,
4095
+ buffers: readonly NodeJS.ArrayBufferView[],
4096
+ position?: number,
4097
+ ): Promise<ReadVResult>;
3907
4098
  }
3908
4099
  /**
3909
4100
  * For detailed information, see the documentation of the asynchronous version of
@@ -3912,7 +4103,7 @@ declare module 'fs' {
3912
4103
  * @param [position='null']
3913
4104
  * @return The number of bytes read.
3914
4105
  */
3915
- export function readvSync(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): number;
4106
+ export function readvSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number;
3916
4107
 
3917
4108
  export interface OpenAsBlobOptions {
3918
4109
  /**
@@ -3983,7 +4174,11 @@ declare module 'fs' {
3983
4174
  * @since v12.12.0
3984
4175
  */
3985
4176
  export function opendir(path: PathLike, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
3986
- export function opendir(path: PathLike, options: OpenDirOptions, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
4177
+ export function opendir(
4178
+ path: PathLike,
4179
+ options: OpenDirOptions,
4180
+ cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void,
4181
+ ): void;
3987
4182
  export namespace opendir {
3988
4183
  function __promisify__(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
3989
4184
  }
@@ -4067,8 +4262,17 @@ declare module 'fs' {
4067
4262
  * @param src source path to copy.
4068
4263
  * @param dest destination path to copy to.
4069
4264
  */
4070
- export function cp(source: string | URL, destination: string | URL, callback: (err: NodeJS.ErrnoException | null) => void): void;
4071
- export function cp(source: string | URL, destination: string | URL, opts: CopyOptions, callback: (err: NodeJS.ErrnoException | null) => void): void;
4265
+ export function cp(
4266
+ source: string | URL,
4267
+ destination: string | URL,
4268
+ callback: (err: NodeJS.ErrnoException | null) => void,
4269
+ ): void;
4270
+ export function cp(
4271
+ source: string | URL,
4272
+ destination: string | URL,
4273
+ opts: CopyOptions,
4274
+ callback: (err: NodeJS.ErrnoException | null) => void,
4275
+ ): void;
4072
4276
  /**
4073
4277
  * Synchronously copies the entire directory structure from `src` to `dest`,
4074
4278
  * including subdirectories and files.
@@ -4082,6 +4286,6 @@ declare module 'fs' {
4082
4286
  */
4083
4287
  export function cpSync(source: string | URL, destination: string | URL, opts?: CopySyncOptions): void;
4084
4288
  }
4085
- declare module 'node:fs' {
4086
- export * from 'fs';
4289
+ declare module "node:fs" {
4290
+ export * from "fs";
4087
4291
  }