@integration-app/react 0.1.1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (262) hide show
  1. package/node_modules/@compwright/namecase/LICENSE +26 -0
  2. package/node_modules/@compwright/namecase/README.md +49 -0
  3. package/node_modules/@compwright/namecase/bin/namecase +28 -0
  4. package/node_modules/@compwright/namecase/dist/namecase.min.js +4 -0
  5. package/node_modules/@compwright/namecase/dist/namecase.min.js.map +1 -0
  6. package/node_modules/@compwright/namecase/package.json +46 -0
  7. package/node_modules/@compwright/namecase/src/index.js +146 -0
  8. package/node_modules/@integration-app/sdk/bundle.js +404 -262
  9. package/node_modules/@integration-app/sdk/bundle.js.map +1 -1
  10. package/node_modules/@integration-app/sdk/client.d.ts +3 -3
  11. package/node_modules/@integration-app/sdk/data-builder/formulas/case.d.ts +3 -7
  12. package/node_modules/@integration-app/sdk/data-builder/formulas/case.js +16 -32
  13. package/node_modules/@integration-app/sdk/data-builder/formulas/case.js.map +1 -1
  14. package/node_modules/@integration-app/sdk/integrations/accessors.d.ts +0 -6
  15. package/node_modules/@integration-app/sdk/integrations/accessors.js +1 -87
  16. package/node_modules/@integration-app/sdk/integrations/accessors.js.map +1 -1
  17. package/node_modules/@integration-app/sdk/json-schema/index.d.ts +1 -1
  18. package/node_modules/@integration-app/sdk/src/client.ts +3 -3
  19. package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.test.ts +11 -113
  20. package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.ts +22 -46
  21. package/node_modules/@integration-app/sdk/src/integrations/accessors.ts +2 -122
  22. package/node_modules/@sinclair/typebox/package.json +40 -0
  23. package/node_modules/@sinclair/typebox/readme.md +740 -0
  24. package/node_modules/@sinclair/typebox/typebox.d.ts +351 -0
  25. package/node_modules/@sinclair/typebox/typebox.js +345 -0
  26. package/node_modules/@types/node/README.md +16 -0
  27. package/node_modules/@types/node/assert.d.ts +128 -0
  28. package/node_modules/@types/node/async_hooks.d.ts +229 -0
  29. package/node_modules/@types/node/buffer.d.ts +89 -0
  30. package/node_modules/@types/node/child_process.d.ts +514 -0
  31. package/node_modules/@types/node/cluster.d.ts +265 -0
  32. package/node_modules/@types/node/console.d.ts +142 -0
  33. package/node_modules/@types/node/constants.d.ts +18 -0
  34. package/node_modules/@types/node/crypto.d.ts +1283 -0
  35. package/node_modules/@types/node/dgram.d.ts +144 -0
  36. package/node_modules/@types/node/dns.d.ts +387 -0
  37. package/node_modules/@types/node/domain.d.ts +27 -0
  38. package/node_modules/@types/node/events.d.ts +82 -0
  39. package/node_modules/@types/node/fs/promises.d.ts +572 -0
  40. package/node_modules/@types/node/fs.d.ts +2281 -0
  41. package/node_modules/@types/node/globals.d.ts +747 -0
  42. package/node_modules/@types/node/globals.global.d.ts +1 -0
  43. package/node_modules/@types/node/http.d.ts +580 -0
  44. package/node_modules/@types/node/http2.d.ts +962 -0
  45. package/node_modules/@types/node/https.d.ts +271 -0
  46. package/node_modules/@types/node/index.d.ts +98 -0
  47. package/node_modules/@types/node/inspector.d.ts +3051 -0
  48. package/node_modules/@types/node/module.d.ts +56 -0
  49. package/node_modules/@types/node/net.d.ts +308 -0
  50. package/node_modules/@types/node/os.d.ts +243 -0
  51. package/node_modules/@types/node/package.json +232 -0
  52. package/node_modules/@types/node/path.d.ts +168 -0
  53. package/node_modules/@types/node/perf_hooks.d.ts +274 -0
  54. package/node_modules/@types/node/process.d.ts +413 -0
  55. package/node_modules/@types/node/punycode.d.ts +78 -0
  56. package/node_modules/@types/node/querystring.d.ts +31 -0
  57. package/node_modules/@types/node/readline.d.ts +174 -0
  58. package/node_modules/@types/node/repl.d.ts +398 -0
  59. package/node_modules/@types/node/stream.d.ts +359 -0
  60. package/node_modules/@types/node/string_decoder.d.ts +10 -0
  61. package/node_modules/@types/node/timers.d.ts +19 -0
  62. package/node_modules/@types/node/tls.d.ts +784 -0
  63. package/node_modules/@types/node/trace_events.d.ts +64 -0
  64. package/node_modules/@types/node/ts4.8/assert.d.ts +128 -0
  65. package/node_modules/@types/node/ts4.8/async_hooks.d.ts +229 -0
  66. package/node_modules/@types/node/ts4.8/buffer.d.ts +89 -0
  67. package/node_modules/@types/node/ts4.8/child_process.d.ts +514 -0
  68. package/node_modules/@types/node/ts4.8/cluster.d.ts +265 -0
  69. package/node_modules/@types/node/ts4.8/console.d.ts +142 -0
  70. package/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
  71. package/node_modules/@types/node/ts4.8/crypto.d.ts +1283 -0
  72. package/node_modules/@types/node/ts4.8/dgram.d.ts +144 -0
  73. package/node_modules/@types/node/ts4.8/dns.d.ts +387 -0
  74. package/node_modules/@types/node/ts4.8/domain.d.ts +27 -0
  75. package/node_modules/@types/node/ts4.8/events.d.ts +82 -0
  76. package/node_modules/@types/node/ts4.8/fs/promises.d.ts +572 -0
  77. package/node_modules/@types/node/ts4.8/fs.d.ts +2281 -0
  78. package/node_modules/@types/node/ts4.8/globals.d.ts +746 -0
  79. package/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  80. package/node_modules/@types/node/ts4.8/http.d.ts +580 -0
  81. package/node_modules/@types/node/ts4.8/http2.d.ts +962 -0
  82. package/node_modules/@types/node/ts4.8/https.d.ts +271 -0
  83. package/node_modules/@types/node/ts4.8/index.d.ts +53 -0
  84. package/node_modules/@types/node/ts4.8/inspector.d.ts +3051 -0
  85. package/node_modules/@types/node/ts4.8/module.d.ts +56 -0
  86. package/node_modules/@types/node/ts4.8/net.d.ts +308 -0
  87. package/node_modules/@types/node/ts4.8/os.d.ts +243 -0
  88. package/node_modules/@types/node/ts4.8/path.d.ts +168 -0
  89. package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +274 -0
  90. package/node_modules/@types/node/ts4.8/process.d.ts +413 -0
  91. package/node_modules/@types/node/ts4.8/punycode.d.ts +78 -0
  92. package/node_modules/@types/node/ts4.8/querystring.d.ts +31 -0
  93. package/node_modules/@types/node/ts4.8/readline.d.ts +174 -0
  94. package/node_modules/@types/node/ts4.8/repl.d.ts +398 -0
  95. package/node_modules/@types/node/ts4.8/stream.d.ts +359 -0
  96. package/node_modules/@types/node/ts4.8/string_decoder.d.ts +10 -0
  97. package/node_modules/@types/node/ts4.8/timers.d.ts +19 -0
  98. package/node_modules/@types/node/ts4.8/tls.d.ts +784 -0
  99. package/node_modules/@types/node/ts4.8/trace_events.d.ts +64 -0
  100. package/node_modules/@types/node/ts4.8/tty.d.ts +69 -0
  101. package/node_modules/@types/node/ts4.8/url.d.ts +149 -0
  102. package/node_modules/@types/node/ts4.8/util.d.ts +216 -0
  103. package/node_modules/@types/node/ts4.8/v8.d.ts +190 -0
  104. package/node_modules/@types/node/ts4.8/vm.d.ts +155 -0
  105. package/node_modules/@types/node/ts4.8/wasi.d.ts +89 -0
  106. package/node_modules/@types/node/ts4.8/worker_threads.d.ts +241 -0
  107. package/node_modules/@types/node/ts4.8/zlib.d.ts +364 -0
  108. package/node_modules/@types/node/tty.d.ts +69 -0
  109. package/node_modules/@types/node/url.d.ts +149 -0
  110. package/node_modules/@types/node/util.d.ts +216 -0
  111. package/node_modules/@types/node/v8.d.ts +190 -0
  112. package/node_modules/@types/node/vm.d.ts +155 -0
  113. package/node_modules/@types/node/wasi.d.ts +89 -0
  114. package/node_modules/@types/node/worker_threads.d.ts +241 -0
  115. package/node_modules/@types/node/zlib.d.ts +364 -0
  116. package/package.json +2 -5
  117. package/node_modules/@integration-app/sdk/.DS_Store +0 -0
  118. package/node_modules/@integration-app/sdk/.gitignore +0 -11
  119. package/node_modules/@integration-app/sdk/.npmignore +0 -0
  120. package/node_modules/@integration-app/sdk/app-data-collections/app-data-collections.d.ts +0 -23
  121. package/node_modules/@integration-app/sdk/app-data-collections/app-data-collections.js.map +0 -1
  122. package/node_modules/@integration-app/sdk/app-data-schemas/app-data-schemas.d.ts +0 -20
  123. package/node_modules/@integration-app/sdk/app-data-schemas/app-data-schemas.js.map +0 -1
  124. package/node_modules/@integration-app/sdk/app-events/app-events.d.ts +0 -44
  125. package/node_modules/@integration-app/sdk/app-events/app-events.js.map +0 -1
  126. package/node_modules/@integration-app/sdk/connection-client.d.ts +0 -12
  127. package/node_modules/@integration-app/sdk/connection-client.js +0 -31
  128. package/node_modules/@integration-app/sdk/connection-client.js.map +0 -1
  129. package/node_modules/@integration-app/sdk/connections/connections.d.ts +0 -46
  130. package/node_modules/@integration-app/sdk/connections/connections.js.map +0 -1
  131. package/node_modules/@integration-app/sdk/connector-api/connector-api.d.ts +0 -157
  132. package/node_modules/@integration-app/sdk/connector-api/connector-api.js.map +0 -1
  133. package/node_modules/@integration-app/sdk/data-builder/findExternalRecordId.d.ts +0 -0
  134. package/node_modules/@integration-app/sdk/data-builder/findExternalRecordId.js.map +0 -1
  135. package/node_modules/@integration-app/sdk/data-builder/first-name.test.d.ts +0 -0
  136. package/node_modules/@integration-app/sdk/data-builder/first-name.test.js +0 -2
  137. package/node_modules/@integration-app/sdk/data-builder/first-name.test.js.map +0 -1
  138. package/node_modules/@integration-app/sdk/data-builder/formulas/anyOfOption.d.ts +0 -10
  139. package/node_modules/@integration-app/sdk/data-builder/formulas/anyOfOption.js.map +0 -1
  140. package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.d.ts +0 -1
  141. package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.js +0 -26
  142. package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.js.map +0 -1
  143. package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.d.ts +0 -1
  144. package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.js +0 -246
  145. package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.js.map +0 -1
  146. package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.d.ts +0 -1
  147. package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.js +0 -85
  148. package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.js.map +0 -1
  149. package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.d.ts +0 -1
  150. package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.js +0 -64
  151. package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.js.map +0 -1
  152. package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.d.ts +0 -1
  153. package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.js +0 -44
  154. package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.js.map +0 -1
  155. package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.d.ts +0 -1
  156. package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.js +0 -44
  157. package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.js.map +0 -1
  158. package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.d.ts +0 -1
  159. package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.js +0 -26
  160. package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.js.map +0 -1
  161. package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.d.ts +0 -1
  162. package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.js +0 -26
  163. package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.js.map +0 -1
  164. package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.d.ts +0 -1
  165. package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.js +0 -14
  166. package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.js.map +0 -1
  167. package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.d.ts +0 -1
  168. package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.js +0 -63
  169. package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.js.map +0 -1
  170. package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.d.ts +0 -1
  171. package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.js +0 -112
  172. package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.js.map +0 -1
  173. package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.d.ts +0 -1
  174. package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.js +0 -18
  175. package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.js.map +0 -1
  176. package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.d.ts +0 -1
  177. package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.js +0 -114
  178. package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.js.map +0 -1
  179. package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.d.ts +0 -1
  180. package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.js +0 -49
  181. package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.js.map +0 -1
  182. package/node_modules/@integration-app/sdk/data-builder/formulas/types.d.ts +0 -0
  183. package/node_modules/@integration-app/sdk/data-builder/formulas/types.js.map +0 -1
  184. package/node_modules/@integration-app/sdk/data-builder/index.test.d.ts +0 -1
  185. package/node_modules/@integration-app/sdk/data-builder/index.test.js +0 -295
  186. package/node_modules/@integration-app/sdk/data-builder/index.test.js.map +0 -1
  187. package/node_modules/@integration-app/sdk/data-builder/locators.test.d.ts +0 -1
  188. package/node_modules/@integration-app/sdk/data-builder/locators.test.js +0 -775
  189. package/node_modules/@integration-app/sdk/data-builder/locators.test.js.map +0 -1
  190. package/node_modules/@integration-app/sdk/data-filter/conditions.d.ts +0 -0
  191. package/node_modules/@integration-app/sdk/data-filter/conditions.js.map +0 -1
  192. package/node_modules/@integration-app/sdk/data-filter/data-filter.test.d.ts +0 -1
  193. package/node_modules/@integration-app/sdk/data-filter/data-filter.test.js.map +0 -1
  194. package/node_modules/@integration-app/sdk/data-filter/index.test.d.ts +0 -1
  195. package/node_modules/@integration-app/sdk/data-filter/index.test.js +0 -43
  196. package/node_modules/@integration-app/sdk/data-filter/index.test.js.map +0 -1
  197. package/node_modules/@integration-app/sdk/data-filter/operators.test.d.ts +0 -1
  198. package/node_modules/@integration-app/sdk/data-filter/operators.test.js +0 -490
  199. package/node_modules/@integration-app/sdk/data-filter/operators.test.js.map +0 -1
  200. package/node_modules/@integration-app/sdk/data-links/data-links.d.ts +0 -58
  201. package/node_modules/@integration-app/sdk/data-links/data-links.js.map +0 -1
  202. package/node_modules/@integration-app/sdk/data-schema/index.test.d.ts +0 -1
  203. package/node_modules/@integration-app/sdk/data-schema/index.test.js +0 -86
  204. package/node_modules/@integration-app/sdk/data-schema/index.test.js.map +0 -1
  205. package/node_modules/@integration-app/sdk/data-sources/data-sources.d.ts +0 -41
  206. package/node_modules/@integration-app/sdk/data-sources/data-sources.js.map +0 -1
  207. package/node_modules/@integration-app/sdk/endpoints/endpoint-spec.d.ts +0 -30
  208. package/node_modules/@integration-app/sdk/endpoints/endpoint-spec.js.map +0 -1
  209. package/node_modules/@integration-app/sdk/field-mappings/field-mappings.d.ts +0 -29
  210. package/node_modules/@integration-app/sdk/field-mappings/field-mappings.js.map +0 -1
  211. package/node_modules/@integration-app/sdk/flow-runs/flow-runs.d.ts +0 -51
  212. package/node_modules/@integration-app/sdk/flow-runs/flow-runs.js.map +0 -1
  213. package/node_modules/@integration-app/sdk/flows/flows.d.ts +0 -156
  214. package/node_modules/@integration-app/sdk/flows/flows.js.map +0 -1
  215. package/node_modules/@integration-app/sdk/flows/nodes/data-record-delete-trigger.d.ts +0 -3
  216. package/node_modules/@integration-app/sdk/flows/nodes/data-record-delete-trigger.js.map +0 -1
  217. package/node_modules/@integration-app/sdk/flows/nodes/nodes.d.ts +0 -25
  218. package/node_modules/@integration-app/sdk/flows/nodes/nodes.js.map +0 -1
  219. package/node_modules/@integration-app/sdk/flows/utils.test.d.ts +0 -1
  220. package/node_modules/@integration-app/sdk/flows/utils.test.js +0 -62
  221. package/node_modules/@integration-app/sdk/flows/utils.test.js.map +0 -1
  222. package/node_modules/@integration-app/sdk/integration-elements/integration-elements.d.ts +0 -21
  223. package/node_modules/@integration-app/sdk/integration-elements/integration-elements.js.map +0 -1
  224. package/node_modules/@integration-app/sdk/integrations/integrations.d.ts +0 -48
  225. package/node_modules/@integration-app/sdk/integrations/integrations.js.map +0 -1
  226. package/node_modules/@integration-app/sdk/json-schema/json-schema.test.d.ts +0 -1
  227. package/node_modules/@integration-app/sdk/json-schema/json-schema.test.js +0 -194
  228. package/node_modules/@integration-app/sdk/json-schema/json-schema.test.js.map +0 -1
  229. package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.d.ts +0 -1
  230. package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.js +0 -352
  231. package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.js.map +0 -1
  232. package/node_modules/@integration-app/sdk/jwt.test.d.ts +0 -1
  233. package/node_modules/@integration-app/sdk/jwt.test.js +0 -9
  234. package/node_modules/@integration-app/sdk/jwt.test.js.map +0 -1
  235. package/node_modules/@integration-app/sdk/package-lock.json +0 -3834
  236. package/node_modules/@integration-app/sdk/udm/activities.test.d.ts +0 -1
  237. package/node_modules/@integration-app/sdk/udm/activities.test.js +0 -40
  238. package/node_modules/@integration-app/sdk/udm/activities.test.js.map +0 -1
  239. package/node_modules/@integration-app/sdk/udm/campaign-members.d.ts +0 -45
  240. package/node_modules/@integration-app/sdk/udm/campaign-members.js +0 -99
  241. package/node_modules/@integration-app/sdk/udm/campaign-members.js.map +0 -1
  242. package/node_modules/@integration-app/sdk/udm/contacts.test.d.ts +0 -1
  243. package/node_modules/@integration-app/sdk/udm/contacts.test.js +0 -136
  244. package/node_modules/@integration-app/sdk/udm/contacts.test.js.map +0 -1
  245. package/node_modules/@integration-app/sdk/udm/crm-activities.d.ts +0 -17
  246. package/node_modules/@integration-app/sdk/udm/crm-activities.js.map +0 -1
  247. package/node_modules/@integration-app/sdk/udm/crm-activity.d.ts +0 -11
  248. package/node_modules/@integration-app/sdk/udm/crm-activity.js.map +0 -1
  249. package/node_modules/@integration-app/sdk/udm/crm-companies.d.ts +0 -14
  250. package/node_modules/@integration-app/sdk/udm/crm-companies.js.map +0 -1
  251. package/node_modules/@integration-app/sdk/udm/crm-contact.d.ts +0 -10
  252. package/node_modules/@integration-app/sdk/udm/crm-contact.js.map +0 -1
  253. package/node_modules/@integration-app/sdk/udm/crm-contacts.d.ts +0 -16
  254. package/node_modules/@integration-app/sdk/udm/crm-contacts.js.map +0 -1
  255. package/node_modules/@integration-app/sdk/udm/crm-deals.d.ts +0 -15
  256. package/node_modules/@integration-app/sdk/udm/crm-deals.js.map +0 -1
  257. package/node_modules/@integration-app/sdk/udm/crm-leads.d.ts +0 -16
  258. package/node_modules/@integration-app/sdk/udm/crm-leads.js.map +0 -1
  259. package/node_modules/@integration-app/sdk/udm/members.d.ts +0 -45
  260. package/node_modules/@integration-app/sdk/udm/members.js.map +0 -1
  261. package/node_modules/@integration-app/sdk/users/users.d.ts +0 -5
  262. package/node_modules/@integration-app/sdk/users/users.js.map +0 -1
@@ -0,0 +1,364 @@
1
+ declare module 'zlib' {
2
+ import * as stream from 'stream';
3
+
4
+ interface ZlibOptions {
5
+ /**
6
+ * @default constants.Z_NO_FLUSH
7
+ */
8
+ flush?: number | undefined;
9
+ /**
10
+ * @default constants.Z_FINISH
11
+ */
12
+ finishFlush?: number | undefined;
13
+ /**
14
+ * @default 16*1024
15
+ */
16
+ chunkSize?: number | undefined;
17
+ windowBits?: number | undefined;
18
+ level?: number | undefined; // compression only
19
+ memLevel?: number | undefined; // compression only
20
+ strategy?: number | undefined; // compression only
21
+ dictionary?: NodeJS.ArrayBufferView | ArrayBuffer | undefined; // deflate/inflate only, empty dictionary by default
22
+ info?: boolean | undefined;
23
+ maxOutputLength?: number | undefined;
24
+ }
25
+
26
+ interface BrotliOptions {
27
+ /**
28
+ * @default constants.BROTLI_OPERATION_PROCESS
29
+ */
30
+ flush?: number | undefined;
31
+ /**
32
+ * @default constants.BROTLI_OPERATION_FINISH
33
+ */
34
+ finishFlush?: number | undefined;
35
+ /**
36
+ * @default 16*1024
37
+ */
38
+ chunkSize?: number | undefined;
39
+ params?: {
40
+ /**
41
+ * Each key is a `constants.BROTLI_*` constant.
42
+ */
43
+ [key: number]: boolean | number;
44
+ } | undefined;
45
+ maxOutputLength?: number | undefined;
46
+ }
47
+
48
+ interface Zlib {
49
+ /** @deprecated Use bytesWritten instead. */
50
+ readonly bytesRead: number;
51
+ readonly bytesWritten: number;
52
+ shell?: boolean | string | undefined;
53
+ close(callback?: () => void): void;
54
+ flush(kind?: number, callback?: () => void): void;
55
+ flush(callback?: () => void): void;
56
+ }
57
+
58
+ interface ZlibParams {
59
+ params(level: number, strategy: number, callback: () => void): void;
60
+ }
61
+
62
+ interface ZlibReset {
63
+ reset(): void;
64
+ }
65
+
66
+ interface BrotliCompress extends stream.Transform, Zlib { }
67
+ interface BrotliDecompress extends stream.Transform, Zlib { }
68
+ interface Gzip extends stream.Transform, Zlib { }
69
+ interface Gunzip extends stream.Transform, Zlib { }
70
+ interface Deflate extends stream.Transform, Zlib, ZlibReset, ZlibParams { }
71
+ interface Inflate extends stream.Transform, Zlib, ZlibReset { }
72
+ interface DeflateRaw extends stream.Transform, Zlib, ZlibReset, ZlibParams { }
73
+ interface InflateRaw extends stream.Transform, Zlib, ZlibReset { }
74
+ interface Unzip extends stream.Transform, Zlib { }
75
+
76
+ function createBrotliCompress(options?: BrotliOptions): BrotliCompress;
77
+ function createBrotliDecompress(options?: BrotliOptions): BrotliDecompress;
78
+ function createGzip(options?: ZlibOptions): Gzip;
79
+ function createGunzip(options?: ZlibOptions): Gunzip;
80
+ function createDeflate(options?: ZlibOptions): Deflate;
81
+ function createInflate(options?: ZlibOptions): Inflate;
82
+ function createDeflateRaw(options?: ZlibOptions): DeflateRaw;
83
+ function createInflateRaw(options?: ZlibOptions): InflateRaw;
84
+ function createUnzip(options?: ZlibOptions): Unzip;
85
+
86
+ type InputType = string | ArrayBuffer | NodeJS.ArrayBufferView;
87
+
88
+ type CompressCallback = (error: Error | null, result: Buffer) => void;
89
+
90
+ function brotliCompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
91
+ function brotliCompress(buf: InputType, callback: CompressCallback): void;
92
+ namespace brotliCompress {
93
+ function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<Buffer>;
94
+ }
95
+
96
+ function brotliCompressSync(buf: InputType, options?: BrotliOptions): Buffer;
97
+
98
+ function brotliDecompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
99
+ function brotliDecompress(buf: InputType, callback: CompressCallback): void;
100
+ namespace brotliDecompress {
101
+ function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<Buffer>;
102
+ }
103
+
104
+ function brotliDecompressSync(buf: InputType, options?: BrotliOptions): Buffer;
105
+
106
+ function deflate(buf: InputType, callback: CompressCallback): void;
107
+ function deflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
108
+ namespace deflate {
109
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
110
+ }
111
+
112
+ function deflateSync(buf: InputType, options?: ZlibOptions): Buffer;
113
+
114
+ function deflateRaw(buf: InputType, callback: CompressCallback): void;
115
+ function deflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
116
+ namespace deflateRaw {
117
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
118
+ }
119
+
120
+ function deflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
121
+
122
+ function gzip(buf: InputType, callback: CompressCallback): void;
123
+ function gzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
124
+ namespace gzip {
125
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
126
+ }
127
+
128
+ function gzipSync(buf: InputType, options?: ZlibOptions): Buffer;
129
+
130
+ function gunzip(buf: InputType, callback: CompressCallback): void;
131
+ function gunzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
132
+ namespace gunzip {
133
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
134
+ }
135
+
136
+ function gunzipSync(buf: InputType, options?: ZlibOptions): Buffer;
137
+
138
+ function inflate(buf: InputType, callback: CompressCallback): void;
139
+ function inflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
140
+ namespace inflate {
141
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
142
+ }
143
+
144
+ function inflateSync(buf: InputType, options?: ZlibOptions): Buffer;
145
+
146
+ function inflateRaw(buf: InputType, callback: CompressCallback): void;
147
+ function inflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
148
+ namespace inflateRaw {
149
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
150
+ }
151
+
152
+ function inflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
153
+
154
+ function unzip(buf: InputType, callback: CompressCallback): void;
155
+ function unzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
156
+ namespace unzip {
157
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
158
+ }
159
+
160
+ function unzipSync(buf: InputType, options?: ZlibOptions): Buffer;
161
+
162
+ namespace constants {
163
+ const BROTLI_DECODE: number;
164
+ const BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: number;
165
+ const BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: number;
166
+ const BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: number;
167
+ const BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: number;
168
+ const BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: number;
169
+ const BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: number;
170
+ const BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: number;
171
+ const BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: number;
172
+ const BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: number;
173
+ const BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: number;
174
+ const BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: number;
175
+ const BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: number;
176
+ const BROTLI_DECODER_ERROR_FORMAT_DISTANCE: number;
177
+ const BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: number;
178
+ const BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: number;
179
+ const BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: number;
180
+ const BROTLI_DECODER_ERROR_FORMAT_PADDING_1: number;
181
+ const BROTLI_DECODER_ERROR_FORMAT_PADDING_2: number;
182
+ const BROTLI_DECODER_ERROR_FORMAT_RESERVED: number;
183
+ const BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: number;
184
+ const BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: number;
185
+ const BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: number;
186
+ const BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: number;
187
+ const BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: number;
188
+ const BROTLI_DECODER_ERROR_UNREACHABLE: number;
189
+ const BROTLI_DECODER_NEEDS_MORE_INPUT: number;
190
+ const BROTLI_DECODER_NEEDS_MORE_OUTPUT: number;
191
+ const BROTLI_DECODER_NO_ERROR: number;
192
+ const BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: number;
193
+ const BROTLI_DECODER_PARAM_LARGE_WINDOW: number;
194
+ const BROTLI_DECODER_RESULT_ERROR: number;
195
+ const BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: number;
196
+ const BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: number;
197
+ const BROTLI_DECODER_RESULT_SUCCESS: number;
198
+ const BROTLI_DECODER_SUCCESS: number;
199
+
200
+ const BROTLI_DEFAULT_MODE: number;
201
+ const BROTLI_DEFAULT_QUALITY: number;
202
+ const BROTLI_DEFAULT_WINDOW: number;
203
+ const BROTLI_ENCODE: number;
204
+ const BROTLI_LARGE_MAX_WINDOW_BITS: number;
205
+ const BROTLI_MAX_INPUT_BLOCK_BITS: number;
206
+ const BROTLI_MAX_QUALITY: number;
207
+ const BROTLI_MAX_WINDOW_BITS: number;
208
+ const BROTLI_MIN_INPUT_BLOCK_BITS: number;
209
+ const BROTLI_MIN_QUALITY: number;
210
+ const BROTLI_MIN_WINDOW_BITS: number;
211
+
212
+ const BROTLI_MODE_FONT: number;
213
+ const BROTLI_MODE_GENERIC: number;
214
+ const BROTLI_MODE_TEXT: number;
215
+
216
+ const BROTLI_OPERATION_EMIT_METADATA: number;
217
+ const BROTLI_OPERATION_FINISH: number;
218
+ const BROTLI_OPERATION_FLUSH: number;
219
+ const BROTLI_OPERATION_PROCESS: number;
220
+
221
+ const BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: number;
222
+ const BROTLI_PARAM_LARGE_WINDOW: number;
223
+ const BROTLI_PARAM_LGBLOCK: number;
224
+ const BROTLI_PARAM_LGWIN: number;
225
+ const BROTLI_PARAM_MODE: number;
226
+ const BROTLI_PARAM_NDIRECT: number;
227
+ const BROTLI_PARAM_NPOSTFIX: number;
228
+ const BROTLI_PARAM_QUALITY: number;
229
+ const BROTLI_PARAM_SIZE_HINT: number;
230
+
231
+ const DEFLATE: number;
232
+ const DEFLATERAW: number;
233
+ const GUNZIP: number;
234
+ const GZIP: number;
235
+ const INFLATE: number;
236
+ const INFLATERAW: number;
237
+ const UNZIP: number;
238
+
239
+ // Allowed flush values.
240
+ const Z_NO_FLUSH: number;
241
+ const Z_PARTIAL_FLUSH: number;
242
+ const Z_SYNC_FLUSH: number;
243
+ const Z_FULL_FLUSH: number;
244
+ const Z_FINISH: number;
245
+ const Z_BLOCK: number;
246
+ const Z_TREES: number;
247
+
248
+ // Return codes for the compression/decompression functions.
249
+ // Negative values are errors, positive values are used for special but normal events.
250
+ const Z_OK: number;
251
+ const Z_STREAM_END: number;
252
+ const Z_NEED_DICT: number;
253
+ const Z_ERRNO: number;
254
+ const Z_STREAM_ERROR: number;
255
+ const Z_DATA_ERROR: number;
256
+ const Z_MEM_ERROR: number;
257
+ const Z_BUF_ERROR: number;
258
+ const Z_VERSION_ERROR: number;
259
+
260
+ // Compression levels.
261
+ const Z_NO_COMPRESSION: number;
262
+ const Z_BEST_SPEED: number;
263
+ const Z_BEST_COMPRESSION: number;
264
+ const Z_DEFAULT_COMPRESSION: number;
265
+
266
+ // Compression strategy.
267
+ const Z_FILTERED: number;
268
+ const Z_HUFFMAN_ONLY: number;
269
+ const Z_RLE: number;
270
+ const Z_FIXED: number;
271
+ const Z_DEFAULT_STRATEGY: number;
272
+
273
+ const Z_DEFAULT_WINDOWBITS: number;
274
+ const Z_MIN_WINDOWBITS: number;
275
+ const Z_MAX_WINDOWBITS: number;
276
+
277
+ const Z_MIN_CHUNK: number;
278
+ const Z_MAX_CHUNK: number;
279
+ const Z_DEFAULT_CHUNK: number;
280
+
281
+ const Z_MIN_MEMLEVEL: number;
282
+ const Z_MAX_MEMLEVEL: number;
283
+ const Z_DEFAULT_MEMLEVEL: number;
284
+
285
+ const Z_MIN_LEVEL: number;
286
+ const Z_MAX_LEVEL: number;
287
+ const Z_DEFAULT_LEVEL: number;
288
+
289
+ const ZLIB_VERNUM: number;
290
+ }
291
+
292
+ // Allowed flush values.
293
+ /** @deprecated Use `constants.Z_NO_FLUSH` */
294
+ const Z_NO_FLUSH: number;
295
+ /** @deprecated Use `constants.Z_PARTIAL_FLUSH` */
296
+ const Z_PARTIAL_FLUSH: number;
297
+ /** @deprecated Use `constants.Z_SYNC_FLUSH` */
298
+ const Z_SYNC_FLUSH: number;
299
+ /** @deprecated Use `constants.Z_FULL_FLUSH` */
300
+ const Z_FULL_FLUSH: number;
301
+ /** @deprecated Use `constants.Z_FINISH` */
302
+ const Z_FINISH: number;
303
+ /** @deprecated Use `constants.Z_BLOCK` */
304
+ const Z_BLOCK: number;
305
+ /** @deprecated Use `constants.Z_TREES` */
306
+ const Z_TREES: number;
307
+
308
+ // Return codes for the compression/decompression functions.
309
+ // Negative values are errors, positive values are used for special but normal events.
310
+ /** @deprecated Use `constants.Z_OK` */
311
+ const Z_OK: number;
312
+ /** @deprecated Use `constants.Z_STREAM_END` */
313
+ const Z_STREAM_END: number;
314
+ /** @deprecated Use `constants.Z_NEED_DICT` */
315
+ const Z_NEED_DICT: number;
316
+ /** @deprecated Use `constants.Z_ERRNO` */
317
+ const Z_ERRNO: number;
318
+ /** @deprecated Use `constants.Z_STREAM_ERROR` */
319
+ const Z_STREAM_ERROR: number;
320
+ /** @deprecated Use `constants.Z_DATA_ERROR` */
321
+ const Z_DATA_ERROR: number;
322
+ /** @deprecated Use `constants.Z_MEM_ERROR` */
323
+ const Z_MEM_ERROR: number;
324
+ /** @deprecated Use `constants.Z_BUF_ERROR` */
325
+ const Z_BUF_ERROR: number;
326
+ /** @deprecated Use `constants.Z_VERSION_ERROR` */
327
+ const Z_VERSION_ERROR: number;
328
+
329
+ // Compression levels.
330
+ /** @deprecated Use `constants.Z_NO_COMPRESSION` */
331
+ const Z_NO_COMPRESSION: number;
332
+ /** @deprecated Use `constants.Z_BEST_SPEED` */
333
+ const Z_BEST_SPEED: number;
334
+ /** @deprecated Use `constants.Z_BEST_COMPRESSION` */
335
+ const Z_BEST_COMPRESSION: number;
336
+ /** @deprecated Use `constants.Z_DEFAULT_COMPRESSION` */
337
+ const Z_DEFAULT_COMPRESSION: number;
338
+
339
+ // Compression strategy.
340
+ /** @deprecated Use `constants.Z_FILTERED` */
341
+ const Z_FILTERED: number;
342
+ /** @deprecated Use `constants.Z_HUFFMAN_ONLY` */
343
+ const Z_HUFFMAN_ONLY: number;
344
+ /** @deprecated Use `constants.Z_RLE` */
345
+ const Z_RLE: number;
346
+ /** @deprecated Use `constants.Z_FIXED` */
347
+ const Z_FIXED: number;
348
+ /** @deprecated Use `constants.Z_DEFAULT_STRATEGY` */
349
+ const Z_DEFAULT_STRATEGY: number;
350
+
351
+ /** @deprecated */
352
+ const Z_BINARY: number;
353
+ /** @deprecated */
354
+ const Z_TEXT: number;
355
+ /** @deprecated */
356
+ const Z_ASCII: number;
357
+ /** @deprecated */
358
+ const Z_UNKNOWN: number;
359
+ /** @deprecated */
360
+ const Z_DEFLATED: number;
361
+ }
362
+ declare module 'node:zlib' {
363
+ export * from 'zlib';
364
+ }
@@ -0,0 +1,69 @@
1
+ declare module 'tty' {
2
+ import * as net from 'net';
3
+
4
+ function isatty(fd: number): boolean;
5
+ class ReadStream extends net.Socket {
6
+ constructor(fd: number, options?: net.SocketConstructorOpts);
7
+ isRaw: boolean;
8
+ setRawMode(mode: boolean): this;
9
+ isTTY: boolean;
10
+ }
11
+ /**
12
+ * -1 - to the left from cursor
13
+ * 0 - the entire line
14
+ * 1 - to the right from cursor
15
+ */
16
+ type Direction = -1 | 0 | 1;
17
+ class WriteStream extends net.Socket {
18
+ constructor(fd: number);
19
+ addListener(event: string, listener: (...args: any[]) => void): this;
20
+ addListener(event: "resize", listener: () => void): this;
21
+
22
+ emit(event: string | symbol, ...args: any[]): boolean;
23
+ emit(event: "resize"): boolean;
24
+
25
+ on(event: string, listener: (...args: any[]) => void): this;
26
+ on(event: "resize", listener: () => void): this;
27
+
28
+ once(event: string, listener: (...args: any[]) => void): this;
29
+ once(event: "resize", listener: () => void): this;
30
+
31
+ prependListener(event: string, listener: (...args: any[]) => void): this;
32
+ prependListener(event: "resize", listener: () => void): this;
33
+
34
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
35
+ prependOnceListener(event: "resize", listener: () => void): this;
36
+
37
+ /**
38
+ * Clears the current line of this WriteStream in a direction identified by `dir`.
39
+ */
40
+ clearLine(dir: Direction, callback?: () => void): boolean;
41
+ /**
42
+ * Clears this `WriteStream` from the current cursor down.
43
+ */
44
+ clearScreenDown(callback?: () => void): boolean;
45
+ /**
46
+ * Moves this WriteStream's cursor to the specified position.
47
+ */
48
+ cursorTo(x: number, y?: number, callback?: () => void): boolean;
49
+ cursorTo(x: number, callback: () => void): boolean;
50
+ /**
51
+ * Moves this WriteStream's cursor relative to its current position.
52
+ */
53
+ moveCursor(dx: number, dy: number, callback?: () => void): boolean;
54
+ /**
55
+ * @default `process.env`
56
+ */
57
+ getColorDepth(env?: {}): number;
58
+ hasColors(depth?: number): boolean;
59
+ hasColors(env?: {}): boolean;
60
+ hasColors(depth: number, env?: {}): boolean;
61
+ getWindowSize(): [number, number];
62
+ columns: number;
63
+ rows: number;
64
+ isTTY: boolean;
65
+ }
66
+ }
67
+ declare module 'node:tty' {
68
+ export * from 'tty';
69
+ }
@@ -0,0 +1,149 @@
1
+ declare module 'url' {
2
+ import { ParsedUrlQuery, ParsedUrlQueryInput } from 'querystring';
3
+
4
+ // Input to `url.format`
5
+ interface UrlObject {
6
+ auth?: string | null | undefined;
7
+ hash?: string | null | undefined;
8
+ host?: string | null | undefined;
9
+ hostname?: string | null | undefined;
10
+ href?: string | null | undefined;
11
+ pathname?: string | null | undefined;
12
+ protocol?: string | null | undefined;
13
+ search?: string | null | undefined;
14
+ slashes?: boolean | null | undefined;
15
+ port?: string | number | null | undefined;
16
+ query?: string | null | ParsedUrlQueryInput | undefined;
17
+ }
18
+
19
+ // Output of `url.parse`
20
+ interface Url {
21
+ auth: string | null;
22
+ hash: string | null;
23
+ host: string | null;
24
+ hostname: string | null;
25
+ href: string;
26
+ path: string | null;
27
+ pathname: string | null;
28
+ protocol: string | null;
29
+ search: string | null;
30
+ slashes: boolean | null;
31
+ port: string | null;
32
+ query: string | null | ParsedUrlQuery;
33
+ }
34
+
35
+ interface UrlWithParsedQuery extends Url {
36
+ query: ParsedUrlQuery;
37
+ }
38
+
39
+ interface UrlWithStringQuery extends Url {
40
+ query: string | null;
41
+ }
42
+
43
+ /** @deprecated since v11.0.0 - Use the WHATWG URL API. */
44
+ function parse(urlStr: string): UrlWithStringQuery;
45
+ /** @deprecated since v11.0.0 - Use the WHATWG URL API. */
46
+ function parse(urlStr: string, parseQueryString: false | undefined, slashesDenoteHost?: boolean): UrlWithStringQuery;
47
+ /** @deprecated since v11.0.0 - Use the WHATWG URL API. */
48
+ function parse(urlStr: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery;
49
+ /** @deprecated since v11.0.0 - Use the WHATWG URL API. */
50
+ function parse(urlStr: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url;
51
+
52
+ function format(URL: URL, options?: URLFormatOptions): string;
53
+ /** @deprecated since v11.0.0 - Use the WHATWG URL API. */
54
+ function format(urlObject: UrlObject | string): string;
55
+ /** @deprecated since v11.0.0 - Use the WHATWG URL API. */
56
+ function resolve(from: string, to: string): string;
57
+
58
+ function domainToASCII(domain: string): string;
59
+ function domainToUnicode(domain: string): string;
60
+
61
+ /**
62
+ * This function ensures the correct decodings of percent-encoded characters as
63
+ * well as ensuring a cross-platform valid absolute path string.
64
+ * @param url The file URL string or URL object to convert to a path.
65
+ */
66
+ function fileURLToPath(url: string | URL): string;
67
+
68
+ /**
69
+ * This function ensures that path is resolved absolutely, and that the URL
70
+ * control characters are correctly encoded when converting into a File URL.
71
+ * @param url The path to convert to a File URL.
72
+ */
73
+ function pathToFileURL(url: string): URL;
74
+
75
+ interface URLFormatOptions {
76
+ auth?: boolean | undefined;
77
+ fragment?: boolean | undefined;
78
+ search?: boolean | undefined;
79
+ unicode?: boolean | undefined;
80
+ }
81
+
82
+ class URL {
83
+ constructor(input: string, base?: string | URL);
84
+ hash: string;
85
+ host: string;
86
+ hostname: string;
87
+ href: string;
88
+ readonly origin: string;
89
+ password: string;
90
+ pathname: string;
91
+ port: string;
92
+ protocol: string;
93
+ search: string;
94
+ readonly searchParams: URLSearchParams;
95
+ username: string;
96
+ toString(): string;
97
+ toJSON(): string;
98
+ }
99
+
100
+ class URLSearchParams implements Iterable<[string, string]> {
101
+ constructor(init?: URLSearchParams | string | Record<string, string | ReadonlyArray<string>> | Iterable<[string, string]> | ReadonlyArray<[string, string]>);
102
+ append(name: string, value: string): void;
103
+ delete(name: string): void;
104
+ entries(): IterableIterator<[string, string]>;
105
+ forEach(callback: (value: string, name: string, searchParams: URLSearchParams) => void, thisArg?: any): void;
106
+ get(name: string): string | null;
107
+ getAll(name: string): string[];
108
+ has(name: string): boolean;
109
+ keys(): IterableIterator<string>;
110
+ set(name: string, value: string): void;
111
+ sort(): void;
112
+ toString(): string;
113
+ values(): IterableIterator<string>;
114
+ [Symbol.iterator](): IterableIterator<[string, string]>;
115
+ }
116
+
117
+ import { URL as _URL, URLSearchParams as _URLSearchParams } from 'url';
118
+ global {
119
+ interface URLSearchParams extends _URLSearchParams {}
120
+ interface URL extends _URL {}
121
+ interface Global {
122
+ URL: typeof _URL;
123
+ URLSearchParams: typeof _URLSearchParams;
124
+ }
125
+ /**
126
+ * `URL` class is a global reference for `require('url').URL`
127
+ * https://nodejs.org/api/url.html#the-whatwg-url-api
128
+ * @since v10.0.0
129
+ */
130
+ var URL:
131
+ // For compatibility with "dom" and "webworker" URL declarations
132
+ typeof globalThis extends { onmessage: any, URL: infer URL }
133
+ ? URL
134
+ : typeof _URL;
135
+ /**
136
+ * `URLSearchParams` class is a global reference for `require('url').URLSearchParams`.
137
+ * https://nodejs.org/api/url.html#class-urlsearchparams
138
+ * @since v10.0.0
139
+ */
140
+ var URLSearchParams:
141
+ // For compatibility with "dom" and "webworker" URLSearchParams declarations
142
+ typeof globalThis extends { onmessage: any, URLSearchParams: infer URLSearchParams }
143
+ ? URLSearchParams
144
+ : typeof _URLSearchParams;
145
+ }
146
+ }
147
+ declare module 'node:url' {
148
+ export * from 'url';
149
+ }