@anthropic-ai/claude-code 0.2.14 → 0.2.19

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 (103) hide show
  1. package/cli.mjs +505 -484
  2. package/package.json +3 -5
  3. package/scripts/preinstall.js +15 -0
  4. package/vendor/sdk/node_modules/@types/node/LICENSE +0 -21
  5. package/vendor/sdk/node_modules/@types/node/README.md +0 -15
  6. package/vendor/sdk/node_modules/@types/node/assert/strict.d.ts +0 -8
  7. package/vendor/sdk/node_modules/@types/node/assert.d.ts +0 -985
  8. package/vendor/sdk/node_modules/@types/node/async_hooks.d.ts +0 -522
  9. package/vendor/sdk/node_modules/@types/node/buffer.buffer.d.ts +0 -385
  10. package/vendor/sdk/node_modules/@types/node/buffer.d.ts +0 -1903
  11. package/vendor/sdk/node_modules/@types/node/child_process.d.ts +0 -1549
  12. package/vendor/sdk/node_modules/@types/node/cluster.d.ts +0 -578
  13. package/vendor/sdk/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
  14. package/vendor/sdk/node_modules/@types/node/compatibility/index.d.ts +0 -9
  15. package/vendor/sdk/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  16. package/vendor/sdk/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
  17. package/vendor/sdk/node_modules/@types/node/console.d.ts +0 -452
  18. package/vendor/sdk/node_modules/@types/node/constants.d.ts +0 -19
  19. package/vendor/sdk/node_modules/@types/node/crypto.d.ts +0 -4453
  20. package/vendor/sdk/node_modules/@types/node/dgram.d.ts +0 -596
  21. package/vendor/sdk/node_modules/@types/node/diagnostics_channel.d.ts +0 -546
  22. package/vendor/sdk/node_modules/@types/node/dns/promises.d.ts +0 -475
  23. package/vendor/sdk/node_modules/@types/node/dns.d.ts +0 -853
  24. package/vendor/sdk/node_modules/@types/node/dom-events.d.ts +0 -124
  25. package/vendor/sdk/node_modules/@types/node/domain.d.ts +0 -170
  26. package/vendor/sdk/node_modules/@types/node/events.d.ts +0 -819
  27. package/vendor/sdk/node_modules/@types/node/fs/promises.d.ts +0 -1205
  28. package/vendor/sdk/node_modules/@types/node/fs.d.ts +0 -4237
  29. package/vendor/sdk/node_modules/@types/node/globals.d.ts +0 -442
  30. package/vendor/sdk/node_modules/@types/node/globals.typedarray.d.ts +0 -21
  31. package/vendor/sdk/node_modules/@types/node/http.d.ts +0 -1839
  32. package/vendor/sdk/node_modules/@types/node/http2.d.ts +0 -2517
  33. package/vendor/sdk/node_modules/@types/node/https.d.ts +0 -544
  34. package/vendor/sdk/node_modules/@types/node/index.d.ts +0 -90
  35. package/vendor/sdk/node_modules/@types/node/inspector.d.ts +0 -2775
  36. package/vendor/sdk/node_modules/@types/node/module.d.ts +0 -291
  37. package/vendor/sdk/node_modules/@types/node/net.d.ts +0 -924
  38. package/vendor/sdk/node_modules/@types/node/os.d.ts +0 -473
  39. package/vendor/sdk/node_modules/@types/node/package.json +0 -225
  40. package/vendor/sdk/node_modules/@types/node/path.d.ts +0 -191
  41. package/vendor/sdk/node_modules/@types/node/perf_hooks.d.ts +0 -753
  42. package/vendor/sdk/node_modules/@types/node/process.d.ts +0 -1553
  43. package/vendor/sdk/node_modules/@types/node/punycode.d.ts +0 -117
  44. package/vendor/sdk/node_modules/@types/node/querystring.d.ts +0 -141
  45. package/vendor/sdk/node_modules/@types/node/readline/promises.d.ts +0 -154
  46. package/vendor/sdk/node_modules/@types/node/readline.d.ts +0 -715
  47. package/vendor/sdk/node_modules/@types/node/repl.d.ts +0 -430
  48. package/vendor/sdk/node_modules/@types/node/stream/consumers.d.ts +0 -12
  49. package/vendor/sdk/node_modules/@types/node/stream/promises.d.ts +0 -90
  50. package/vendor/sdk/node_modules/@types/node/stream/web.d.ts +0 -523
  51. package/vendor/sdk/node_modules/@types/node/stream.d.ts +0 -1731
  52. package/vendor/sdk/node_modules/@types/node/string_decoder.d.ts +0 -67
  53. package/vendor/sdk/node_modules/@types/node/test.d.ts +0 -1245
  54. package/vendor/sdk/node_modules/@types/node/timers/promises.d.ts +0 -93
  55. package/vendor/sdk/node_modules/@types/node/timers.d.ts +0 -126
  56. package/vendor/sdk/node_modules/@types/node/tls.d.ts +0 -1203
  57. package/vendor/sdk/node_modules/@types/node/trace_events.d.ts +0 -171
  58. package/vendor/sdk/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -385
  59. package/vendor/sdk/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
  60. package/vendor/sdk/node_modules/@types/node/ts5.6/index.d.ts +0 -90
  61. package/vendor/sdk/node_modules/@types/node/tty.d.ts +0 -206
  62. package/vendor/sdk/node_modules/@types/node/url.d.ts +0 -957
  63. package/vendor/sdk/node_modules/@types/node/util.d.ts +0 -2083
  64. package/vendor/sdk/node_modules/@types/node/v8.d.ts +0 -753
  65. package/vendor/sdk/node_modules/@types/node/vm.d.ts +0 -666
  66. package/vendor/sdk/node_modules/@types/node/wasi.d.ts +0 -160
  67. package/vendor/sdk/node_modules/@types/node/worker_threads.d.ts +0 -695
  68. package/vendor/sdk/node_modules/@types/node/zlib.d.ts +0 -517
  69. package/vendor/sdk/node_modules/undici-types/README.md +0 -6
  70. package/vendor/sdk/node_modules/undici-types/agent.d.ts +0 -31
  71. package/vendor/sdk/node_modules/undici-types/api.d.ts +0 -43
  72. package/vendor/sdk/node_modules/undici-types/balanced-pool.d.ts +0 -18
  73. package/vendor/sdk/node_modules/undici-types/cache.d.ts +0 -36
  74. package/vendor/sdk/node_modules/undici-types/client.d.ts +0 -97
  75. package/vendor/sdk/node_modules/undici-types/connector.d.ts +0 -34
  76. package/vendor/sdk/node_modules/undici-types/content-type.d.ts +0 -21
  77. package/vendor/sdk/node_modules/undici-types/cookies.d.ts +0 -28
  78. package/vendor/sdk/node_modules/undici-types/diagnostics-channel.d.ts +0 -67
  79. package/vendor/sdk/node_modules/undici-types/dispatcher.d.ts +0 -241
  80. package/vendor/sdk/node_modules/undici-types/errors.d.ts +0 -128
  81. package/vendor/sdk/node_modules/undici-types/fetch.d.ts +0 -209
  82. package/vendor/sdk/node_modules/undici-types/file.d.ts +0 -39
  83. package/vendor/sdk/node_modules/undici-types/filereader.d.ts +0 -54
  84. package/vendor/sdk/node_modules/undici-types/formdata.d.ts +0 -108
  85. package/vendor/sdk/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  86. package/vendor/sdk/node_modules/undici-types/global-origin.d.ts +0 -7
  87. package/vendor/sdk/node_modules/undici-types/handlers.d.ts +0 -9
  88. package/vendor/sdk/node_modules/undici-types/header.d.ts +0 -4
  89. package/vendor/sdk/node_modules/undici-types/index.d.ts +0 -63
  90. package/vendor/sdk/node_modules/undici-types/interceptors.d.ts +0 -5
  91. package/vendor/sdk/node_modules/undici-types/mock-agent.d.ts +0 -50
  92. package/vendor/sdk/node_modules/undici-types/mock-client.d.ts +0 -25
  93. package/vendor/sdk/node_modules/undici-types/mock-errors.d.ts +0 -12
  94. package/vendor/sdk/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  95. package/vendor/sdk/node_modules/undici-types/mock-pool.d.ts +0 -25
  96. package/vendor/sdk/node_modules/undici-types/package.json +0 -55
  97. package/vendor/sdk/node_modules/undici-types/patch.d.ts +0 -71
  98. package/vendor/sdk/node_modules/undici-types/pool-stats.d.ts +0 -19
  99. package/vendor/sdk/node_modules/undici-types/pool.d.ts +0 -28
  100. package/vendor/sdk/node_modules/undici-types/proxy-agent.d.ts +0 -30
  101. package/vendor/sdk/node_modules/undici-types/readable.d.ts +0 -61
  102. package/vendor/sdk/node_modules/undici-types/webidl.d.ts +0 -220
  103. package/vendor/sdk/node_modules/undici-types/websocket.d.ts +0 -131
@@ -1,442 +0,0 @@
1
- export {}; // Make this a module
2
-
3
- // #region Fetch and friends
4
- // Conditional type aliases, used at the end of this file.
5
- // Will either be empty if lib-dom is included, or the undici version otherwise.
6
- type _Request = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Request;
7
- type _Response = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Response;
8
- type _FormData = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").FormData;
9
- type _Headers = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Headers;
10
- type _MessageEvent = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").MessageEvent;
11
- type _RequestInit = typeof globalThis extends { onmessage: any } ? {}
12
- : import("undici-types").RequestInit;
13
- type _ResponseInit = typeof globalThis extends { onmessage: any } ? {}
14
- : import("undici-types").ResponseInit;
15
- // #endregion Fetch and friends
16
-
17
- // #region DOMException
18
- type _DOMException = typeof globalThis extends { onmessage: any } ? {} : NodeDOMException;
19
- interface NodeDOMException extends Error {
20
- /**
21
- * @deprecated
22
- *
23
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
24
- */
25
- readonly code: number;
26
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */
27
- readonly message: string;
28
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */
29
- readonly name: string;
30
- readonly INDEX_SIZE_ERR: 1;
31
- readonly DOMSTRING_SIZE_ERR: 2;
32
- readonly HIERARCHY_REQUEST_ERR: 3;
33
- readonly WRONG_DOCUMENT_ERR: 4;
34
- readonly INVALID_CHARACTER_ERR: 5;
35
- readonly NO_DATA_ALLOWED_ERR: 6;
36
- readonly NO_MODIFICATION_ALLOWED_ERR: 7;
37
- readonly NOT_FOUND_ERR: 8;
38
- readonly NOT_SUPPORTED_ERR: 9;
39
- readonly INUSE_ATTRIBUTE_ERR: 10;
40
- readonly INVALID_STATE_ERR: 11;
41
- readonly SYNTAX_ERR: 12;
42
- readonly INVALID_MODIFICATION_ERR: 13;
43
- readonly NAMESPACE_ERR: 14;
44
- readonly INVALID_ACCESS_ERR: 15;
45
- readonly VALIDATION_ERR: 16;
46
- readonly TYPE_MISMATCH_ERR: 17;
47
- readonly SECURITY_ERR: 18;
48
- readonly NETWORK_ERR: 19;
49
- readonly ABORT_ERR: 20;
50
- readonly URL_MISMATCH_ERR: 21;
51
- readonly QUOTA_EXCEEDED_ERR: 22;
52
- readonly TIMEOUT_ERR: 23;
53
- readonly INVALID_NODE_TYPE_ERR: 24;
54
- readonly DATA_CLONE_ERR: 25;
55
- }
56
- interface NodeDOMExceptionConstructor {
57
- prototype: DOMException;
58
- new(message?: string, nameOrOptions?: string | { name?: string; cause?: unknown }): DOMException;
59
- readonly INDEX_SIZE_ERR: 1;
60
- readonly DOMSTRING_SIZE_ERR: 2;
61
- readonly HIERARCHY_REQUEST_ERR: 3;
62
- readonly WRONG_DOCUMENT_ERR: 4;
63
- readonly INVALID_CHARACTER_ERR: 5;
64
- readonly NO_DATA_ALLOWED_ERR: 6;
65
- readonly NO_MODIFICATION_ALLOWED_ERR: 7;
66
- readonly NOT_FOUND_ERR: 8;
67
- readonly NOT_SUPPORTED_ERR: 9;
68
- readonly INUSE_ATTRIBUTE_ERR: 10;
69
- readonly INVALID_STATE_ERR: 11;
70
- readonly SYNTAX_ERR: 12;
71
- readonly INVALID_MODIFICATION_ERR: 13;
72
- readonly NAMESPACE_ERR: 14;
73
- readonly INVALID_ACCESS_ERR: 15;
74
- readonly VALIDATION_ERR: 16;
75
- readonly TYPE_MISMATCH_ERR: 17;
76
- readonly SECURITY_ERR: 18;
77
- readonly NETWORK_ERR: 19;
78
- readonly ABORT_ERR: 20;
79
- readonly URL_MISMATCH_ERR: 21;
80
- readonly QUOTA_EXCEEDED_ERR: 22;
81
- readonly TIMEOUT_ERR: 23;
82
- readonly INVALID_NODE_TYPE_ERR: 24;
83
- readonly DATA_CLONE_ERR: 25;
84
- }
85
- // #endregion DOMException
86
-
87
- declare global {
88
- // Declare "static" methods in Error
89
- interface ErrorConstructor {
90
- /** Create .stack property on a target object */
91
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
92
-
93
- /**
94
- * Optional override for formatting stack traces
95
- *
96
- * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces
97
- */
98
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
99
-
100
- stackTraceLimit: number;
101
- }
102
-
103
- /*-----------------------------------------------*
104
- * *
105
- * GLOBAL *
106
- * *
107
- ------------------------------------------------*/
108
-
109
- // For backwards compability
110
- interface NodeRequire extends NodeJS.Require {}
111
- interface RequireResolve extends NodeJS.RequireResolve {}
112
- interface NodeModule extends NodeJS.Module {}
113
-
114
- var global: typeof globalThis;
115
-
116
- var process: NodeJS.Process;
117
- var console: Console;
118
-
119
- var __filename: string;
120
- var __dirname: string;
121
-
122
- var require: NodeRequire;
123
- var module: NodeModule;
124
-
125
- // Same as module.exports
126
- var exports: any;
127
-
128
- interface GCFunction {
129
- (options: {
130
- execution?: "sync";
131
- type?: "major" | "minor";
132
- }): void;
133
- (options: {
134
- execution: "async";
135
- type?: "major" | "minor";
136
- }): Promise<void>;
137
- (options?: boolean): void;
138
- }
139
-
140
- /**
141
- * Only available if `--expose-gc` is passed to the process.
142
- */
143
- var gc: undefined | GCFunction;
144
-
145
- // #region borrowed
146
- // from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
147
- /** A controller object that allows you to abort one or more DOM requests as and when desired. */
148
- interface AbortController {
149
- /**
150
- * Returns the AbortSignal object associated with this object.
151
- */
152
-
153
- readonly signal: AbortSignal;
154
- /**
155
- * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
156
- */
157
- abort(reason?: any): void;
158
- }
159
-
160
- /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
161
- interface AbortSignal extends EventTarget {
162
- /**
163
- * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
164
- */
165
- readonly aborted: boolean;
166
- readonly reason: any;
167
- onabort: null | ((this: AbortSignal, event: Event) => any);
168
- throwIfAborted(): void;
169
- }
170
-
171
- var AbortController: typeof globalThis extends { onmessage: any; AbortController: infer T } ? T
172
- : {
173
- prototype: AbortController;
174
- new(): AbortController;
175
- };
176
-
177
- var AbortSignal: typeof globalThis extends { onmessage: any; AbortSignal: infer T } ? T
178
- : {
179
- prototype: AbortSignal;
180
- new(): AbortSignal;
181
- abort(reason?: any): AbortSignal;
182
- timeout(milliseconds: number): AbortSignal;
183
- any(signals: AbortSignal[]): AbortSignal;
184
- };
185
- // #endregion borrowed
186
-
187
- /**
188
- * @since v17.0.0
189
- *
190
- * Creates a deep clone of an object.
191
- */
192
- function structuredClone<T>(
193
- value: T,
194
- transfer?: { transfer: ReadonlyArray<import("worker_threads").TransferListItem> },
195
- ): T;
196
-
197
- // #region DOMException
198
- /**
199
- * @since v17.0.0
200
- * An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API.
201
- *
202
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)
203
- */
204
- interface DOMException extends _DOMException {}
205
-
206
- /**
207
- * @since v17.0.0
208
- *
209
- * The WHATWG `DOMException` class. See [DOMException](https://developer.mozilla.org/docs/Web/API/DOMException) for more details.
210
- */
211
- var DOMException: typeof globalThis extends { onmessage: any; DOMException: infer T } ? T
212
- : NodeDOMExceptionConstructor;
213
- // #endregion DOMException
214
-
215
- /*----------------------------------------------*
216
- * *
217
- * GLOBAL INTERFACES *
218
- * *
219
- *-----------------------------------------------*/
220
- namespace NodeJS {
221
- interface CallSite {
222
- /**
223
- * Value of "this"
224
- */
225
- getThis(): unknown;
226
-
227
- /**
228
- * Type of "this" as a string.
229
- * This is the name of the function stored in the constructor field of
230
- * "this", if available. Otherwise the object's [[Class]] internal
231
- * property.
232
- */
233
- getTypeName(): string | null;
234
-
235
- /**
236
- * Current function
237
- */
238
- getFunction(): Function | undefined;
239
-
240
- /**
241
- * Name of the current function, typically its name property.
242
- * If a name property is not available an attempt will be made to try
243
- * to infer a name from the function's context.
244
- */
245
- getFunctionName(): string | null;
246
-
247
- /**
248
- * Name of the property [of "this" or one of its prototypes] that holds
249
- * the current function
250
- */
251
- getMethodName(): string | null;
252
-
253
- /**
254
- * Name of the script [if this function was defined in a script]
255
- */
256
- getFileName(): string | undefined;
257
-
258
- /**
259
- * Current line number [if this function was defined in a script]
260
- */
261
- getLineNumber(): number | null;
262
-
263
- /**
264
- * Current column number [if this function was defined in a script]
265
- */
266
- getColumnNumber(): number | null;
267
-
268
- /**
269
- * A call site object representing the location where eval was called
270
- * [if this function was created using a call to eval]
271
- */
272
- getEvalOrigin(): string | undefined;
273
-
274
- /**
275
- * Is this a toplevel invocation, that is, is "this" the global object?
276
- */
277
- isToplevel(): boolean;
278
-
279
- /**
280
- * Does this call take place in code defined by a call to eval?
281
- */
282
- isEval(): boolean;
283
-
284
- /**
285
- * Is this call in native V8 code?
286
- */
287
- isNative(): boolean;
288
-
289
- /**
290
- * Is this a constructor call?
291
- */
292
- isConstructor(): boolean;
293
- }
294
-
295
- interface ErrnoException extends Error {
296
- errno?: number | undefined;
297
- code?: string | undefined;
298
- path?: string | undefined;
299
- syscall?: string | undefined;
300
- }
301
-
302
- interface ReadableStream extends EventEmitter {
303
- readable: boolean;
304
- read(size?: number): string | Buffer;
305
- setEncoding(encoding: BufferEncoding): this;
306
- pause(): this;
307
- resume(): this;
308
- isPaused(): boolean;
309
- pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined }): T;
310
- unpipe(destination?: WritableStream): this;
311
- unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
312
- wrap(oldStream: ReadableStream): this;
313
- [Symbol.asyncIterator](): NodeJS.AsyncIterator<string | Buffer>;
314
- }
315
-
316
- interface WritableStream extends EventEmitter {
317
- writable: boolean;
318
- write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
319
- write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
320
- end(cb?: () => void): this;
321
- end(data: string | Uint8Array, cb?: () => void): this;
322
- end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
323
- }
324
-
325
- interface ReadWriteStream extends ReadableStream, WritableStream {}
326
-
327
- interface RefCounted {
328
- ref(): this;
329
- unref(): this;
330
- }
331
-
332
- interface Require {
333
- (id: string): any;
334
- resolve: RequireResolve;
335
- cache: Dict<NodeModule>;
336
- /**
337
- * @deprecated
338
- */
339
- extensions: RequireExtensions;
340
- main: Module | undefined;
341
- }
342
-
343
- interface RequireResolve {
344
- (id: string, options?: { paths?: string[] | undefined }): string;
345
- paths(request: string): string[] | null;
346
- }
347
-
348
- interface RequireExtensions extends Dict<(m: Module, filename: string) => any> {
349
- ".js": (m: Module, filename: string) => any;
350
- ".json": (m: Module, filename: string) => any;
351
- ".node": (m: Module, filename: string) => any;
352
- }
353
- interface Module {
354
- /**
355
- * `true` if the module is running during the Node.js preload
356
- */
357
- isPreloading: boolean;
358
- exports: any;
359
- require: Require;
360
- id: string;
361
- filename: string;
362
- loaded: boolean;
363
- /** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */
364
- parent: Module | null | undefined;
365
- children: Module[];
366
- /**
367
- * @since v11.14.0
368
- *
369
- * The directory name of the module. This is usually the same as the path.dirname() of the module.id.
370
- */
371
- path: string;
372
- paths: string[];
373
- }
374
-
375
- interface Dict<T> {
376
- [key: string]: T | undefined;
377
- }
378
-
379
- interface ReadOnlyDict<T> {
380
- readonly [key: string]: T | undefined;
381
- }
382
-
383
- /** An iterable iterator returned by the Node.js API. */
384
- // Default TReturn/TNext in v18 is `any`, for compatibility with the previously-used IterableIterator.
385
- interface Iterator<T, TReturn = any, TNext = any> extends IteratorObject<T, TReturn, TNext> {
386
- [Symbol.iterator](): NodeJS.Iterator<T, TReturn, TNext>;
387
- }
388
-
389
- /** An async iterable iterator returned by the Node.js API. */
390
- // Default TReturn/TNext in v18 is `any`, for compatibility with the previously-used AsyncIterableIterator.
391
- interface AsyncIterator<T, TReturn = any, TNext = any> extends AsyncIteratorObject<T, TReturn, TNext> {
392
- [Symbol.asyncIterator](): NodeJS.AsyncIterator<T, TReturn, TNext>;
393
- }
394
- }
395
-
396
- interface RequestInit extends _RequestInit {}
397
-
398
- function fetch(
399
- input: string | URL | Request,
400
- init?: RequestInit,
401
- ): Promise<Response>;
402
-
403
- interface Request extends _Request {}
404
- var Request: typeof globalThis extends {
405
- onmessage: any;
406
- Request: infer T;
407
- } ? T
408
- : typeof import("undici-types").Request;
409
-
410
- interface ResponseInit extends _ResponseInit {}
411
-
412
- interface Response extends _Response {}
413
- var Response: typeof globalThis extends {
414
- onmessage: any;
415
- Response: infer T;
416
- } ? T
417
- : typeof import("undici-types").Response;
418
-
419
- interface FormData extends _FormData {}
420
- var FormData: typeof globalThis extends {
421
- onmessage: any;
422
- FormData: infer T;
423
- } ? T
424
- : typeof import("undici-types").FormData;
425
-
426
- interface Headers extends _Headers {}
427
- var Headers: typeof globalThis extends {
428
- onmessage: any;
429
- Headers: infer T;
430
- } ? T
431
- : typeof import("undici-types").Headers;
432
-
433
- interface MessageEvent extends _MessageEvent {}
434
- /**
435
- * @since v15.0.0
436
- */
437
- var MessageEvent: typeof globalThis extends {
438
- onmessage: any;
439
- MessageEvent: infer T;
440
- } ? T
441
- : typeof import("undici-types").MessageEvent;
442
- }
@@ -1,21 +0,0 @@
1
- export {}; // Make this a module
2
-
3
- declare global {
4
- namespace NodeJS {
5
- type TypedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> =
6
- | Uint8Array<TArrayBuffer>
7
- | Uint8ClampedArray<TArrayBuffer>
8
- | Uint16Array<TArrayBuffer>
9
- | Uint32Array<TArrayBuffer>
10
- | Int8Array<TArrayBuffer>
11
- | Int16Array<TArrayBuffer>
12
- | Int32Array<TArrayBuffer>
13
- | BigUint64Array<TArrayBuffer>
14
- | BigInt64Array<TArrayBuffer>
15
- | Float32Array<TArrayBuffer>
16
- | Float64Array<TArrayBuffer>;
17
- type ArrayBufferView<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> =
18
- | TypedArray<TArrayBuffer>
19
- | DataView<TArrayBuffer>;
20
- }
21
- }