@runlith/tagma 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adapter/claudeHooks.d.ts +10 -0
- package/adapter/claudeHooks.js +4 -0
- package/adapter/declaration.d.ts +14 -0
- package/adapter/declaration.js +2 -0
- package/adapter/harness.d.ts +454 -0
- package/adapter/harness.js +2 -0
- package/adapter/hook.d.ts +43 -0
- package/adapter/hook.js +2 -0
- package/adapter/hostModules.d.ts +19 -0
- package/adapter/hostModules.js +2 -0
- package/adapter/loader.d.ts +10 -0
- package/adapter/loader.js +2 -0
- package/adapter/metadata.d.ts +179 -0
- package/adapter/metadata.js +4 -0
- package/adapter/payload.d.ts +19 -0
- package/adapter/payload.js +3 -0
- package/adapter/provider.d.ts +209 -0
- package/adapter/provider.js +2 -0
- package/adapter/settings.d.ts +182 -0
- package/adapter/settings.js +2 -0
- package/adapter/speech.d.ts +4 -0
- package/adapter/speech.js +2 -0
- package/host.d.ts +61223 -0
- package/package.json +129 -3
- package/plugin/Held-6krt6ncs.js +6 -0
- package/plugin/accountKey-tdjj67f5.js +2 -0
- package/plugin/adapter-qdnpxs6n.js +1 -0
- package/plugin/anthropic-a4pdzrv2.js +2 -0
- package/plugin/anthropic-messages-7gtja121.js +2 -0
- package/plugin/anthropic-z9xqmm3q.js +2 -0
- package/plugin/auth-0w6kk39v.js +2 -0
- package/plugin/authStatus-a1g3eb9p.js +2 -0
- package/plugin/bundling.d.ts +30 -0
- package/plugin/bundling.js +2 -0
- package/plugin/cacheLifetime-c5mpw676.js +2 -0
- package/plugin/callback-server-0wrzmjfx.js +16 -0
- package/plugin/capabilities-n3vfpy41.js +2 -0
- package/plugin/claudeHooks-edpg1e46.js +3 -0
- package/plugin/cli.js +21 -0
- package/plugin/cliStore-9rhjxtht.js +2 -0
- package/plugin/clientSession-tmmxm39z.js +2 -0
- package/plugin/codec-aa8mxqyr.js +1 -0
- package/plugin/connect-vrdsw05j.js +2 -0
- package/plugin/contract-qn0z7r9c.js +1 -0
- package/plugin/credential-5sgapkh0.js +2 -0
- package/plugin/deepseek-fvdrmjr9.js +2 -0
- package/plugin/deepseek-v388d1wv.js +2 -0
- package/plugin/definition-s3xx207f.js +2 -0
- package/plugin/description-8xhxryaq.js +2 -0
- package/plugin/deviceGrant-vgbscpr4.js +2 -0
- package/plugin/devin-hy98d305.js +2 -0
- package/plugin/duplex-kpmftvf7.js +2 -0
- package/plugin/endpoint-kvf97tz7.js +2 -0
- package/plugin/errors-5t42p4q1.js +2 -0
- package/plugin/events-e8vv9hda.js +2 -0
- package/plugin/events-s95ybm4g.js +2 -0
- package/plugin/executor-q8kp5q8h.js +2 -0
- package/plugin/failure-vr32debc.js +2 -0
- package/plugin/framing-nktw5sts.js +2 -0
- package/plugin/grant-67b10nhx.js +2 -0
- package/plugin/harness-nrh78w4d.js +2 -0
- package/plugin/headers-ss3dzznj.js +2 -0
- package/plugin/hook-hjrk83m8.js +2 -0
- package/plugin/icon-044pa3y8.js +6 -0
- package/plugin/icon-j22svmgp.js +4 -0
- package/plugin/icon-ny6qbjvc.js +4 -0
- package/plugin/icon-pz54e8n3.js +4 -0
- package/plugin/icon-qy92jx2b.js +4 -0
- package/plugin/ids-n269hc5k.js +2 -0
- package/plugin/images-q80x3bt1.js +2 -0
- package/plugin/index-cyd7v366.js +2 -0
- package/plugin/index-jpmjpmkn.js +2 -0
- package/plugin/lifecycle-qf4fh5m8.js +2 -0
- package/plugin/manual-2mdscj84.js +2 -0
- package/plugin/messages-1szh3p3k.js +2 -0
- package/plugin/metadata-zm1v3ptf.js +4 -0
- package/plugin/muse-r16jp51z.js +2 -0
- package/plugin/muse-tfe6sph7.js +2 -0
- package/plugin/museToolSchema-tbe0f3wa.js +2 -0
- package/plugin/notes-6amdhm6h.js +2 -0
- package/plugin/object-9pjtdam7.js +2 -0
- package/plugin/open-browser-vqb7ckt1.js +2 -0
- package/plugin/openai-0z6fy497.js +2 -0
- package/plugin/openai-37dne8v0.js +2 -0
- package/plugin/openai-compatible-chat-tq9w69h4.js +2 -0
- package/plugin/openai-images-x1sj79qh.js +2 -0
- package/plugin/openai-responses-dka6k753.js +2 -0
- package/plugin/opencodeGo-173fz5c5.js +3 -0
- package/plugin/opencodeGo-qgw3pfg6.js +2 -0
- package/plugin/options-pxwjpfdk.js +2 -0
- package/plugin/payload-2gr4q9g8.js +2 -0
- package/plugin/pkce-nrpept7w.js +2 -0
- package/plugin/plugin-1n46me5n.js +6 -0
- package/plugin/plugin-1vpp5mqk.js +4 -0
- package/plugin/plugin-1x94cj6e.js +3 -0
- package/plugin/plugin-1xze8f5y.js +3 -0
- package/plugin/plugin-285exjxd.js +3 -0
- package/plugin/plugin-3b8x73y6.js +3 -0
- package/plugin/plugin-3pfrkxg1.js +3 -0
- package/plugin/plugin-3whwpedj.js +3 -0
- package/plugin/plugin-521srf94.js +3 -0
- package/plugin/plugin-55fbx586.js +3 -0
- package/plugin/plugin-5zq084fb.js +3 -0
- package/plugin/plugin-60bdzk1r.js +4 -0
- package/plugin/plugin-6a56xsx3.js +3 -0
- package/plugin/plugin-6xpcmvm3.js +36 -0
- package/plugin/plugin-72xxqm1t.js +3 -0
- package/plugin/plugin-7y7ndrk9.js +3 -0
- package/plugin/plugin-80gqwmjy.js +3 -0
- package/plugin/plugin-8230g28p.js +3 -0
- package/plugin/plugin-8jf7f360.js +3 -0
- package/plugin/plugin-92redty0.js +3 -0
- package/plugin/plugin-9gha9fx3.js +3 -0
- package/plugin/plugin-a4ng6krf.js +3 -0
- package/plugin/plugin-ak62rhwz.js +3 -0
- package/plugin/plugin-ay29ch70.js +3 -0
- package/plugin/plugin-ba1sv0th.js +3 -0
- package/plugin/plugin-ca4vf4j5.js +3 -0
- package/plugin/plugin-cydz2zhy.js +3 -0
- package/plugin/plugin-d6hbav22.js +3 -0
- package/plugin/plugin-e2y95zm5.js +3 -0
- package/plugin/plugin-ff38dxy1.js +3 -0
- package/plugin/plugin-ff9hx5a4.js +3 -0
- package/plugin/plugin-fhc5q7r3.js +3 -0
- package/plugin/plugin-frrvs5yc.js +3 -0
- package/plugin/plugin-g65b14k1.js +3 -0
- package/plugin/plugin-gh857xdd.js +3 -0
- package/plugin/plugin-gkgs7vfv.js +3 -0
- package/plugin/plugin-h66k1zhn.js +14 -0
- package/plugin/plugin-je5cfnqn.js +3 -0
- package/plugin/plugin-jjm52353.js +3 -0
- package/plugin/plugin-jxvmq18y.js +3 -0
- package/plugin/plugin-kc4z9msd.js +3 -0
- package/plugin/plugin-kjtzm2q6.js +3 -0
- package/plugin/plugin-krbbb4ts.js +3 -0
- package/plugin/plugin-me00x60n.js +3 -0
- package/plugin/plugin-mqr325kz.js +3 -0
- package/plugin/plugin-njh1f7b2.js +5 -0
- package/plugin/plugin-nkb5bb2q.js +3 -0
- package/plugin/plugin-nqmb78ez.js +4 -0
- package/plugin/plugin-nzacjxf9.js +3 -0
- package/plugin/plugin-p59gy5xd.js +3 -0
- package/plugin/plugin-pfj9nc2e.js +3 -0
- package/plugin/plugin-pkxw1pfs.js +3 -0
- package/plugin/plugin-q1n5kwx0.js +3 -0
- package/plugin/plugin-q1sqj2tc.js +3 -0
- package/plugin/plugin-q7rk75bs.js +3 -0
- package/plugin/plugin-qpda63gv.js +3 -0
- package/plugin/plugin-rrgyjesv.js +3 -0
- package/plugin/plugin-sfdxgkds.js +3 -0
- package/plugin/plugin-v7k9fx92.js +3 -0
- package/plugin/plugin-vfjhxng8.js +3 -0
- package/plugin/plugin-vv72e4ah.js +3 -0
- package/plugin/plugin-w8f977my.js +3 -0
- package/plugin/plugin-xbnw80pk.js +3 -0
- package/plugin/plugin-yxgg03s0.js +5 -0
- package/plugin/plugin-z6hkd9rw.js +3 -0
- package/plugin/plugin-zew2m18x.js +3 -0
- package/plugin/plugin-zphe2a5v.js +9 -0
- package/plugin/plugin-zvyk8bnr.js +3 -0
- package/plugin/plugin-zw3ywa4b.js +3 -0
- package/plugin/plugin-zxe49p72.js +3 -0
- package/plugin/plugin-zz7yc97m.js +3 -0
- package/plugin/plugin.d.ts +175 -0
- package/plugin/plugin.js +2 -0
- package/plugin/points.generated.d.ts +341 -0
- package/plugin/points.generated.js +2 -0
- package/plugin/process.d.ts +4 -0
- package/plugin/process.js +85 -0
- package/plugin/protocol-hwnfh4h1.js +2 -0
- package/plugin/protocol.d.ts +115 -0
- package/plugin/protocol.js +2 -0
- package/plugin/provider-0b7xxyhn.js +2 -0
- package/plugin/quota-vrrmfag6.js +2 -0
- package/plugin/quotaRead-vj6e90xc.js +2 -0
- package/plugin/reasoning-5nanktp2.js +2 -0
- package/plugin/record-1m3vvy60.js +2 -0
- package/plugin/requests-2zyr1g8e.js +1 -0
- package/plugin/responseFold-w4526gvb.js +2 -0
- package/plugin/settings-vdypzert.js +2 -0
- package/plugin/shared-a2yyy8ry.js +2 -0
- package/plugin/speech-067caz1a.js +2 -0
- package/plugin/stepfun-3en5g41d.js +2 -0
- package/plugin/stepfun-bwsz4nrd.js +2 -0
- package/plugin/stream-bt8etfpc.js +2 -0
- package/plugin/svelteProgram-73v9yajk.js +2 -0
- package/plugin/synthesisDuplex-m2j6pmyv.js +2 -0
- package/plugin/template.d.ts +14 -0
- package/plugin/template.js +2 -0
- package/plugin/testing.d.ts +85 -0
- package/plugin/testing.js +4 -0
- package/plugin/tool-content-b9jtprr7.js +2 -0
- package/plugin/tool-stream-gdajdxn0.js +2 -0
- package/plugin/transport-7hfp9sn4.js +2 -0
- package/plugin/ui.generated.d.ts +1044 -0
- package/plugin/value.d.ts +8 -0
- package/plugin/value.js +2 -0
- package/plugin/vendor-pn6b5a8f.js +2 -0
- package/plugin/vendorCall-6n5chrn0.js +2 -0
- package/plugin/vendorCall-hv01nwsp.js +2 -0
- package/plugin/vendorPayload-awxqr7t8.js +2 -0
- package/plugin/vendorWeb-vnf344r1.js +2 -0
- package/plugin/verbatim-mqt9x4aa.js +2 -0
- package/plugin/xai-e8sbtk6a.js +2 -0
- package/plugin/xai-z1ysta23.js +2 -0
- package/rules/effect.d.ts +55 -0
- package/rules/effect.js +11 -0
- package/rules/rules.d.ts +342 -0
- package/rules/rules.js +50 -0
- package/types/node/assert/strict.d.ts +12 -0
- package/types/node/assert.d.ts +76 -0
- package/types/node/async_hooks.d.ts +113 -0
- package/types/node/buffer.buffer.d.ts +29 -0
- package/types/node/buffer.d.ts +162 -0
- package/types/node/child_process.d.ts +337 -0
- package/types/node/cluster.d.ts +118 -0
- package/types/node/compatibility/iterators.d.ts +11 -0
- package/types/node/console.d.ts +48 -0
- package/types/node/constants.d.ts +8 -0
- package/types/node/crypto.d.ts +847 -0
- package/types/node/dgram.d.ts +88 -0
- package/types/node/diagnostics_channel.d.ts +61 -0
- package/types/node/dns/promises.d.ts +94 -0
- package/types/node/dns.d.ts +276 -0
- package/types/node/domain.d.ts +17 -0
- package/types/node/events.d.ts +138 -0
- package/types/node/fs/promises.d.ts +253 -0
- package/types/node/fs.d.ts +1038 -0
- package/types/node/globals.d.ts +73 -0
- package/types/node/globals.typedarray.d.ts +22 -0
- package/types/node/http.d.ts +530 -0
- package/types/node/http2.d.ts +794 -0
- package/types/node/https.d.ts +66 -0
- package/types/node/index.d.ts +84 -0
- package/types/node/inspector/promises.d.ts +13 -0
- package/types/node/inspector.d.ts +61 -0
- package/types/node/inspector.generated.d.ts +1624 -0
- package/types/node/module.d.ts +187 -0
- package/types/node/net.d.ts +266 -0
- package/types/node/os.d.ts +236 -0
- package/types/node/path/posix.d.ts +8 -0
- package/types/node/path/win32.d.ts +8 -0
- package/types/node/path.d.ts +40 -0
- package/types/node/perf_hooks.d.ts +236 -0
- package/types/node/process.d.ts +436 -0
- package/types/node/punycode.d.ts +15 -0
- package/types/node/querystring.d.ts +22 -0
- package/types/node/quic.d.ts +203 -0
- package/types/node/readline/promises.d.ts +28 -0
- package/types/node/readline.d.ts +94 -0
- package/types/node/repl.d.ts +104 -0
- package/types/node/sea.d.ts +11 -0
- package/types/node/sqlite.d.ts +183 -0
- package/types/node/stream/consumers.d.ts +13 -0
- package/types/node/stream/iter.d.ts +240 -0
- package/types/node/stream/promises.d.ts +37 -0
- package/types/node/stream/web.d.ts +297 -0
- package/types/node/stream.d.ts +378 -0
- package/types/node/string_decoder.d.ts +10 -0
- package/types/node/test/reporters.d.ts +66 -0
- package/types/node/test.d.ts +462 -0
- package/types/node/timers/promises.d.ts +16 -0
- package/types/node/timers.d.ts +43 -0
- package/types/node/tls.d.ts +279 -0
- package/types/node/trace_events.d.ts +16 -0
- package/types/node/ts5.6/buffer.buffer.d.ts +26 -0
- package/types/node/ts5.6/compatibility/float16array.d.ts +43 -0
- package/types/node/ts5.6/globals.typedarray.d.ts +22 -0
- package/types/node/ts5.6/index.d.ts +84 -0
- package/types/node/ts5.7/compatibility/float16array.d.ts +50 -0
- package/types/node/ts5.7/index.d.ts +84 -0
- package/types/node/tty.d.ts +61 -0
- package/types/node/url.d.ts +165 -0
- package/types/node/util/types.d.ts +49 -0
- package/types/node/util.d.ts +320 -0
- package/types/node/v8.d.ts +178 -0
- package/types/node/vm.d.ts +130 -0
- package/types/node/wasi.d.ts +26 -0
- package/types/node/web-globals/abortcontroller.d.ts +47 -0
- package/types/node/web-globals/blob.d.ts +34 -0
- package/types/node/web-globals/console.d.ts +7 -0
- package/types/node/web-globals/crypto.d.ts +46 -0
- package/types/node/web-globals/domexception.d.ts +74 -0
- package/types/node/web-globals/encoding.d.ts +16 -0
- package/types/node/web-globals/events.d.ts +111 -0
- package/types/node/web-globals/fetch.d.ts +121 -0
- package/types/node/web-globals/importmeta.d.ts +11 -0
- package/types/node/web-globals/messaging.d.ts +32 -0
- package/types/node/web-globals/navigator.d.ts +28 -0
- package/types/node/web-globals/performance.d.ts +71 -0
- package/types/node/web-globals/storage.d.ts +26 -0
- package/types/node/web-globals/streams.d.ts +162 -0
- package/types/node/web-globals/timers.d.ts +22 -0
- package/types/node/web-globals/url.d.ts +27 -0
- package/types/node/worker_threads.d.ts +199 -0
- package/types/node/zlib/iter.d.ts +49 -0
- package/types/node/zlib.d.ts +360 -0
- package/types/undici/agent.d.ts +24 -0
- package/types/undici/api.d.ts +19 -0
- package/types/undici/balanced-pool.d.ts +16 -0
- package/types/undici/cache-interceptor.d.ts +98 -0
- package/types/undici/cache.d.ts +30 -0
- package/types/undici/client-stats.d.ts +9 -0
- package/types/undici/client.d.ts +61 -0
- package/types/undici/connector.d.ts +37 -0
- package/types/undici/content-type.d.ts +9 -0
- package/types/undici/cookies.d.ts +22 -0
- package/types/undici/diagnostics-channel.d.ts +72 -0
- package/types/undici/dispatcher.d.ts +207 -0
- package/types/undici/env-http-proxy-agent.d.ts +15 -0
- package/types/undici/errors.d.ts +117 -0
- package/types/undici/eventsource.d.ts +39 -0
- package/types/undici/fetch.d.ts +122 -0
- package/types/undici/formdata.d.ts +24 -0
- package/types/undici/global-dispatcher.d.ts +4 -0
- package/types/undici/global-origin.d.ts +3 -0
- package/types/undici/h2c-client.d.ts +35 -0
- package/types/undici/handlers.d.ts +7 -0
- package/types/undici/header.d.ts +10 -0
- package/types/undici/index.d.ts +85 -0
- package/types/undici/interceptors.d.ts +70 -0
- package/types/undici/mock-agent.d.ts +43 -0
- package/types/undici/mock-call-history.d.ts +57 -0
- package/types/undici/mock-client.d.ts +17 -0
- package/types/undici/mock-errors.d.ts +9 -0
- package/types/undici/mock-interceptor.d.ts +60 -0
- package/types/undici/mock-pool.d.ts +17 -0
- package/types/undici/patch.d.ts +21 -0
- package/types/undici/pool-stats.d.ts +11 -0
- package/types/undici/pool.d.ts +25 -0
- package/types/undici/proxy-agent.d.ts +22 -0
- package/types/undici/readable.d.ts +24 -0
- package/types/undici/retry-agent.d.ts +6 -0
- package/types/undici/retry-handler.d.ts +41 -0
- package/types/undici/round-robin-pool.d.ts +25 -0
- package/types/undici/snapshot-agent.d.ts +98 -0
- package/types/undici/socks5-proxy-agent.d.ts +17 -0
- package/types/undici/util.d.ts +4 -0
- package/types/undici/utility.d.ts +2 -0
- package/types/undici/webidl.d.ts +121 -0
- package/types/undici/websocket.d.ts +130 -0
- package/README.md +0 -3
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
declare module "node:tty" {
|
|
2
|
+
import * as net from "node:net";
|
|
3
|
+
function isatty(fd: number): boolean;
|
|
4
|
+
class ReadStream extends net.Socket {
|
|
5
|
+
constructor(fd: number, options?: net.SocketConstructorOpts);
|
|
6
|
+
isRaw: boolean;
|
|
7
|
+
setRawMode(mode: boolean): this;
|
|
8
|
+
isTTY: boolean;
|
|
9
|
+
}
|
|
10
|
+
type Direction = -1 | 0 | 1;
|
|
11
|
+
interface WriteStreamEventMap extends net.SocketEventMap {
|
|
12
|
+
"resize": [
|
|
13
|
+
];
|
|
14
|
+
}
|
|
15
|
+
class WriteStream extends net.Socket {
|
|
16
|
+
constructor(fd: number);
|
|
17
|
+
clearLine(dir: Direction, callback?: () => void): boolean;
|
|
18
|
+
clearScreenDown(callback?: () => void): boolean;
|
|
19
|
+
cursorTo(x: number, y?: number, callback?: () => void): boolean;
|
|
20
|
+
cursorTo(x: number, callback: () => void): boolean;
|
|
21
|
+
moveCursor(dx: number, dy: number, callback?: () => void): boolean;
|
|
22
|
+
getColorDepth(env?: object): number;
|
|
23
|
+
hasColors(count?: number): boolean;
|
|
24
|
+
hasColors(env?: object): boolean;
|
|
25
|
+
hasColors(count: number, env?: object): boolean;
|
|
26
|
+
getWindowSize(): [
|
|
27
|
+
number,
|
|
28
|
+
number
|
|
29
|
+
];
|
|
30
|
+
columns: number;
|
|
31
|
+
rows: number;
|
|
32
|
+
isTTY: boolean;
|
|
33
|
+
addListener<E extends keyof WriteStreamEventMap>(eventName: E, listener: (...args: WriteStreamEventMap[E]) => void): this;
|
|
34
|
+
addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
35
|
+
emit<E extends keyof WriteStreamEventMap>(eventName: E, ...args: WriteStreamEventMap[E]): boolean;
|
|
36
|
+
emit(eventName: string | symbol, ...args: any[]): boolean;
|
|
37
|
+
listenerCount<E extends keyof WriteStreamEventMap>(eventName: E, listener?: (...args: WriteStreamEventMap[E]) => void): number;
|
|
38
|
+
listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
|
|
39
|
+
listeners<E extends keyof WriteStreamEventMap>(eventName: E): ((...args: WriteStreamEventMap[E]) => void)[];
|
|
40
|
+
listeners(eventName: string | symbol): ((...args: any[]) => void)[];
|
|
41
|
+
off<E extends keyof WriteStreamEventMap>(eventName: E, listener: (...args: WriteStreamEventMap[E]) => void): this;
|
|
42
|
+
off(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
43
|
+
on<E extends keyof WriteStreamEventMap>(eventName: E, listener: (...args: WriteStreamEventMap[E]) => void): this;
|
|
44
|
+
on(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
45
|
+
once<E extends keyof WriteStreamEventMap>(eventName: E, listener: (...args: WriteStreamEventMap[E]) => void): this;
|
|
46
|
+
once(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
47
|
+
prependListener<E extends keyof WriteStreamEventMap>(eventName: E, listener: (...args: WriteStreamEventMap[E]) => void): this;
|
|
48
|
+
prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
49
|
+
prependOnceListener<E extends keyof WriteStreamEventMap>(eventName: E, listener: (...args: WriteStreamEventMap[E]) => void): this;
|
|
50
|
+
prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
51
|
+
rawListeners<E extends keyof WriteStreamEventMap>(eventName: E): ((...args: WriteStreamEventMap[E]) => void)[];
|
|
52
|
+
rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
|
|
53
|
+
removeAllListeners<E extends keyof WriteStreamEventMap>(eventName?: E): this;
|
|
54
|
+
removeAllListeners(eventName?: string | symbol): this;
|
|
55
|
+
removeListener<E extends keyof WriteStreamEventMap>(eventName: E, listener: (...args: WriteStreamEventMap[E]) => void): this;
|
|
56
|
+
removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
declare module "tty" {
|
|
60
|
+
export * from "node:tty";
|
|
61
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
declare module "node:url" {
|
|
2
|
+
import { Blob, NonSharedBuffer } from "node:buffer";
|
|
3
|
+
import { ClientRequestArgs } from "node:http";
|
|
4
|
+
import { ParsedUrlQuery, ParsedUrlQueryInput } from "node:querystring";
|
|
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
|
+
interface Url {
|
|
19
|
+
auth: string | null;
|
|
20
|
+
hash: string | null;
|
|
21
|
+
host: string | null;
|
|
22
|
+
hostname: string | null;
|
|
23
|
+
href: string;
|
|
24
|
+
path: string | null;
|
|
25
|
+
pathname: string | null;
|
|
26
|
+
protocol: string | null;
|
|
27
|
+
search: string | null;
|
|
28
|
+
slashes: boolean | null;
|
|
29
|
+
port: string | null;
|
|
30
|
+
query: string | null | ParsedUrlQuery;
|
|
31
|
+
}
|
|
32
|
+
interface UrlWithParsedQuery extends Url {
|
|
33
|
+
query: ParsedUrlQuery;
|
|
34
|
+
}
|
|
35
|
+
interface UrlWithStringQuery extends Url {
|
|
36
|
+
query: string | null;
|
|
37
|
+
}
|
|
38
|
+
interface FileUrlToPathOptions {
|
|
39
|
+
windows?: boolean | undefined;
|
|
40
|
+
}
|
|
41
|
+
interface PathToFileUrlOptions {
|
|
42
|
+
windows?: boolean | undefined;
|
|
43
|
+
}
|
|
44
|
+
function parse(urlString: string, parseQueryString?: false, slashesDenoteHost?: boolean): UrlWithStringQuery;
|
|
45
|
+
function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery;
|
|
46
|
+
function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url;
|
|
47
|
+
function format(urlObject: URL, options?: URLFormatOptions): string;
|
|
48
|
+
function format(urlObject: UrlObject): string;
|
|
49
|
+
function format(urlString: string): string;
|
|
50
|
+
function resolve(from: string, to: string): string;
|
|
51
|
+
function domainToASCII(domain: string): string;
|
|
52
|
+
function domainToUnicode(domain: string): string;
|
|
53
|
+
function fileURLToPath(url: string | URL, options?: FileUrlToPathOptions): string;
|
|
54
|
+
function fileURLToPathBuffer(url: string | URL, options?: FileUrlToPathOptions): NonSharedBuffer;
|
|
55
|
+
function pathToFileURL(path: string, options?: PathToFileUrlOptions): URL;
|
|
56
|
+
function urlToHttpOptions(url: URL): ClientRequestArgs;
|
|
57
|
+
interface URLFormatOptions {
|
|
58
|
+
auth?: boolean | undefined;
|
|
59
|
+
fragment?: boolean | undefined;
|
|
60
|
+
search?: boolean | undefined;
|
|
61
|
+
unicode?: boolean | undefined;
|
|
62
|
+
}
|
|
63
|
+
type URLPatternInput = string | URLPatternInit;
|
|
64
|
+
interface URLPatternComponentResult {
|
|
65
|
+
input: string;
|
|
66
|
+
groups: Record<string, string | undefined>;
|
|
67
|
+
}
|
|
68
|
+
interface URLPatternInit {
|
|
69
|
+
protocol?: string;
|
|
70
|
+
username?: string;
|
|
71
|
+
password?: string;
|
|
72
|
+
hostname?: string;
|
|
73
|
+
port?: string;
|
|
74
|
+
pathname?: string;
|
|
75
|
+
search?: string;
|
|
76
|
+
hash?: string;
|
|
77
|
+
baseURL?: string;
|
|
78
|
+
}
|
|
79
|
+
interface URLPatternOptions {
|
|
80
|
+
ignoreCase?: boolean;
|
|
81
|
+
}
|
|
82
|
+
interface URLPatternResult {
|
|
83
|
+
inputs: URLPatternInput[];
|
|
84
|
+
protocol: URLPatternComponentResult;
|
|
85
|
+
username: URLPatternComponentResult;
|
|
86
|
+
password: URLPatternComponentResult;
|
|
87
|
+
hostname: URLPatternComponentResult;
|
|
88
|
+
port: URLPatternComponentResult;
|
|
89
|
+
pathname: URLPatternComponentResult;
|
|
90
|
+
search: URLPatternComponentResult;
|
|
91
|
+
hash: URLPatternComponentResult;
|
|
92
|
+
}
|
|
93
|
+
interface URL {
|
|
94
|
+
hash: string;
|
|
95
|
+
host: string;
|
|
96
|
+
hostname: string;
|
|
97
|
+
href: string;
|
|
98
|
+
readonly origin: string;
|
|
99
|
+
password: string;
|
|
100
|
+
pathname: string;
|
|
101
|
+
port: string;
|
|
102
|
+
protocol: string;
|
|
103
|
+
search: string;
|
|
104
|
+
readonly searchParams: URLSearchParams;
|
|
105
|
+
username: string;
|
|
106
|
+
toJSON(): string;
|
|
107
|
+
}
|
|
108
|
+
var URL: {
|
|
109
|
+
prototype: URL;
|
|
110
|
+
new (url: string | URL, base?: string | URL): URL;
|
|
111
|
+
canParse(input: string | URL, base?: string | URL): boolean;
|
|
112
|
+
createObjectURL(blob: Blob): string;
|
|
113
|
+
parse(input: string | URL, base?: string | URL): URL | null;
|
|
114
|
+
revokeObjectURL(id: string): void;
|
|
115
|
+
};
|
|
116
|
+
interface URLPattern {
|
|
117
|
+
readonly hasRegExpGroups: boolean;
|
|
118
|
+
readonly hash: string;
|
|
119
|
+
readonly hostname: string;
|
|
120
|
+
readonly password: string;
|
|
121
|
+
readonly pathname: string;
|
|
122
|
+
readonly port: string;
|
|
123
|
+
readonly protocol: string;
|
|
124
|
+
readonly search: string;
|
|
125
|
+
readonly username: string;
|
|
126
|
+
exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
|
|
127
|
+
test(input?: URLPatternInput, baseURL?: string | URL): boolean;
|
|
128
|
+
}
|
|
129
|
+
var URLPattern: {
|
|
130
|
+
prototype: URLPattern;
|
|
131
|
+
new (input: URLPatternInput, baseURL: string | URL, options?: URLPatternOptions): URLPattern;
|
|
132
|
+
new (input?: URLPatternInput, options?: URLPatternOptions): URLPattern;
|
|
133
|
+
};
|
|
134
|
+
interface URLSearchParams {
|
|
135
|
+
readonly size: number;
|
|
136
|
+
append(name: string, value: string): void;
|
|
137
|
+
delete(name: string, value?: string): void;
|
|
138
|
+
get(name: string): string | null;
|
|
139
|
+
getAll(name: string): string[];
|
|
140
|
+
has(name: string, value?: string): boolean;
|
|
141
|
+
set(name: string, value: string): void;
|
|
142
|
+
sort(): void;
|
|
143
|
+
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
|
|
144
|
+
[Symbol.iterator](): URLSearchParamsIterator<[
|
|
145
|
+
string,
|
|
146
|
+
string
|
|
147
|
+
]>;
|
|
148
|
+
entries(): URLSearchParamsIterator<[
|
|
149
|
+
string,
|
|
150
|
+
string
|
|
151
|
+
]>;
|
|
152
|
+
keys(): URLSearchParamsIterator<string>;
|
|
153
|
+
values(): URLSearchParamsIterator<string>;
|
|
154
|
+
}
|
|
155
|
+
var URLSearchParams: {
|
|
156
|
+
prototype: URLSearchParams;
|
|
157
|
+
new (init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
|
|
158
|
+
};
|
|
159
|
+
interface URLSearchParamsIterator<T> extends NodeJS.Iterator<T, NodeJS.BuiltinIteratorReturn, unknown> {
|
|
160
|
+
[Symbol.iterator](): URLSearchParamsIterator<T>;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
declare module "url" {
|
|
164
|
+
export * from "node:url";
|
|
165
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
declare module "node:util/types" {
|
|
2
|
+
import { KeyObject, webcrypto } from "node:crypto";
|
|
3
|
+
function isAnyArrayBuffer(object: unknown): object is ArrayBufferLike;
|
|
4
|
+
function isArgumentsObject(object: unknown): object is IArguments;
|
|
5
|
+
function isArrayBuffer(object: unknown): object is ArrayBuffer;
|
|
6
|
+
function isArrayBufferView(object: unknown): object is NodeJS.ArrayBufferView;
|
|
7
|
+
function isAsyncFunction(object: unknown): boolean;
|
|
8
|
+
function isBigInt64Array(value: unknown): value is BigInt64Array;
|
|
9
|
+
function isBigIntObject(object: unknown): object is BigInt;
|
|
10
|
+
function isBigUint64Array(value: unknown): value is BigUint64Array;
|
|
11
|
+
function isBooleanObject(object: unknown): object is Boolean;
|
|
12
|
+
function isBoxedPrimitive(object: unknown): object is String | Number | BigInt | Boolean | Symbol;
|
|
13
|
+
function isDataView(object: unknown): object is DataView;
|
|
14
|
+
function isDate(object: unknown): object is Date;
|
|
15
|
+
function isExternal(object: unknown): boolean;
|
|
16
|
+
function isFloat16Array(object: unknown): object is Float16Array;
|
|
17
|
+
function isFloat32Array(object: unknown): object is Float32Array;
|
|
18
|
+
function isFloat64Array(object: unknown): object is Float64Array;
|
|
19
|
+
function isGeneratorFunction(object: unknown): object is GeneratorFunction;
|
|
20
|
+
function isGeneratorObject(object: unknown): object is Generator;
|
|
21
|
+
function isInt8Array(object: unknown): object is Int8Array;
|
|
22
|
+
function isInt16Array(object: unknown): object is Int16Array;
|
|
23
|
+
function isInt32Array(object: unknown): object is Int32Array;
|
|
24
|
+
function isMap<T>(object: T | {}): object is T extends ReadonlyMap<any, any> ? (unknown extends T ? never : ReadonlyMap<any, any>) : Map<unknown, unknown>;
|
|
25
|
+
function isMapIterator(object: unknown): boolean;
|
|
26
|
+
function isModuleNamespaceObject(value: unknown): boolean;
|
|
27
|
+
function isNativeError(object: unknown): object is Error;
|
|
28
|
+
function isNumberObject(object: unknown): object is Number;
|
|
29
|
+
function isPromise(object: unknown): object is Promise<unknown>;
|
|
30
|
+
function isProxy(object: unknown): boolean;
|
|
31
|
+
function isRegExp(object: unknown): object is RegExp;
|
|
32
|
+
function isSet<T>(object: T | {}): object is T extends ReadonlySet<any> ? (unknown extends T ? never : ReadonlySet<any>) : Set<unknown>;
|
|
33
|
+
function isSetIterator(object: unknown): boolean;
|
|
34
|
+
function isSharedArrayBuffer(object: unknown): object is SharedArrayBuffer;
|
|
35
|
+
function isStringObject(object: unknown): object is String;
|
|
36
|
+
function isSymbolObject(object: unknown): object is Symbol;
|
|
37
|
+
function isTypedArray(object: unknown): object is NodeJS.TypedArray;
|
|
38
|
+
function isUint8Array(object: unknown): object is Uint8Array;
|
|
39
|
+
function isUint8ClampedArray(object: unknown): object is Uint8ClampedArray;
|
|
40
|
+
function isUint16Array(object: unknown): object is Uint16Array;
|
|
41
|
+
function isUint32Array(object: unknown): object is Uint32Array;
|
|
42
|
+
function isWeakMap(object: unknown): object is WeakMap<object, unknown>;
|
|
43
|
+
function isWeakSet(object: unknown): object is WeakSet<object>;
|
|
44
|
+
function isKeyObject(object: unknown): object is KeyObject;
|
|
45
|
+
function isCryptoKey(object: unknown): object is webcrypto.CryptoKey;
|
|
46
|
+
}
|
|
47
|
+
declare module "util/types" {
|
|
48
|
+
export * from "node:util/types";
|
|
49
|
+
}
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
declare module "node:util" {
|
|
2
|
+
export * as types from "node:util/types";
|
|
3
|
+
export type InspectStyle = "special" | "number" | "bigint" | "boolean" | "undefined" | "null" | "string" | "symbol" | "date" | "name" | "regexp" | "module";
|
|
4
|
+
export interface InspectStyles extends Record<InspectStyle, InspectColor | ((value: string) => string)> {
|
|
5
|
+
regexp: {
|
|
6
|
+
(value: string): string;
|
|
7
|
+
colors: InspectColor[];
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export type InspectColorModifier = "reset" | "bold" | "dim" | "italic" | "underline" | "blink" | "inverse" | "hidden" | "strikethrough" | "doubleunderline";
|
|
11
|
+
export type InspectColorForeground = "black" | "red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white" | "gray" | "redBright" | "greenBright" | "yellowBright" | "blueBright" | "magentaBright" | "cyanBright" | "whiteBright";
|
|
12
|
+
export type InspectColorBackground = `bg${Capitalize<InspectColorForeground>}`;
|
|
13
|
+
export type InspectColor = InspectColorModifier | InspectColorForeground | InspectColorBackground;
|
|
14
|
+
export interface InspectColors extends Record<InspectColor, [
|
|
15
|
+
number,
|
|
16
|
+
number
|
|
17
|
+
]> {
|
|
18
|
+
}
|
|
19
|
+
export interface InspectOptions {
|
|
20
|
+
showHidden?: boolean | undefined;
|
|
21
|
+
depth?: number | null | undefined;
|
|
22
|
+
colors?: boolean | undefined;
|
|
23
|
+
customInspect?: boolean | undefined;
|
|
24
|
+
showProxy?: boolean | undefined;
|
|
25
|
+
maxArrayLength?: number | null | undefined;
|
|
26
|
+
maxStringLength?: number | null | undefined;
|
|
27
|
+
breakLength?: number | undefined;
|
|
28
|
+
compact?: boolean | number | undefined;
|
|
29
|
+
sorted?: boolean | ((a: string, b: string) => number) | undefined;
|
|
30
|
+
getters?: "get" | "set" | boolean | undefined;
|
|
31
|
+
numericSeparator?: boolean | undefined;
|
|
32
|
+
}
|
|
33
|
+
export interface InspectContext extends Required<InspectOptions> {
|
|
34
|
+
stylize(text: string, styleType: InspectStyle): string;
|
|
35
|
+
}
|
|
36
|
+
import _inspect = inspect;
|
|
37
|
+
export interface Inspectable {
|
|
38
|
+
[inspect.custom](depth: number, options: InspectContext, inspect: typeof _inspect): any;
|
|
39
|
+
}
|
|
40
|
+
export type Style = Exclude<InspectStyle, "name">;
|
|
41
|
+
export type CustomInspectFunction = (depth: number, options: InspectContext) => any;
|
|
42
|
+
export interface InspectOptionsStylized extends InspectContext {
|
|
43
|
+
}
|
|
44
|
+
export type Modifiers = InspectColorModifier;
|
|
45
|
+
export type ForegroundColors = InspectColorForeground;
|
|
46
|
+
export type BackgroundColors = InspectColorBackground;
|
|
47
|
+
export interface CallSiteObject {
|
|
48
|
+
functionName: string;
|
|
49
|
+
scriptName: string;
|
|
50
|
+
scriptId: string;
|
|
51
|
+
lineNumber: number;
|
|
52
|
+
columnNumber: number;
|
|
53
|
+
}
|
|
54
|
+
export type DiffEntry = [
|
|
55
|
+
operation: -1 | 0 | 1,
|
|
56
|
+
value: string
|
|
57
|
+
];
|
|
58
|
+
export function diff(actual: string | readonly string[], expected: string | readonly string[]): DiffEntry[];
|
|
59
|
+
export function format(format?: any, ...param: any[]): string;
|
|
60
|
+
export function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string;
|
|
61
|
+
export interface GetCallSitesOptions {
|
|
62
|
+
sourceMap?: boolean | undefined;
|
|
63
|
+
}
|
|
64
|
+
export function getCallSites(frameCount?: number, options?: GetCallSitesOptions): CallSiteObject[];
|
|
65
|
+
export function getCallSites(options: GetCallSitesOptions): CallSiteObject[];
|
|
66
|
+
export function getSystemErrorName(err: number): string;
|
|
67
|
+
export function setTraceSigInt(enable: boolean): void;
|
|
68
|
+
export function getSystemErrorMap(): Map<number, [
|
|
69
|
+
string,
|
|
70
|
+
string
|
|
71
|
+
]>;
|
|
72
|
+
export function getSystemErrorMessage(err: number): string;
|
|
73
|
+
export function toUSVString(string: string): string;
|
|
74
|
+
export function transferableAbortController(): AbortController;
|
|
75
|
+
export function transferableAbortSignal(signal: AbortSignal): AbortSignal;
|
|
76
|
+
export function aborted(signal: AbortSignal, resource: any): Promise<void>;
|
|
77
|
+
export function inspect(object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string;
|
|
78
|
+
export function inspect(object: any, options?: InspectOptions): string;
|
|
79
|
+
export namespace inspect {
|
|
80
|
+
const custom: unique symbol;
|
|
81
|
+
let colors: InspectColors;
|
|
82
|
+
let styles: InspectStyles;
|
|
83
|
+
let defaultOptions: InspectOptions;
|
|
84
|
+
let replDefaults: InspectOptions;
|
|
85
|
+
}
|
|
86
|
+
export function isArray(object: unknown): object is unknown[];
|
|
87
|
+
export function inherits(constructor: unknown, superConstructor: unknown): void;
|
|
88
|
+
export function convertProcessSignalToExitCode(signal: NodeJS.Signals): number;
|
|
89
|
+
export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void;
|
|
90
|
+
export interface DebugLogger extends DebugLoggerFunction {
|
|
91
|
+
enabled: boolean;
|
|
92
|
+
}
|
|
93
|
+
export function debuglog(section: string, callback?: (fn: DebugLoggerFunction) => void): DebugLogger;
|
|
94
|
+
export { debuglog as debug };
|
|
95
|
+
export interface DeprecateOptions {
|
|
96
|
+
modifyPrototype?: boolean | undefined;
|
|
97
|
+
}
|
|
98
|
+
export function deprecate<T extends Function>(fn: T, msg: string, code?: string, options?: DeprecateOptions): T;
|
|
99
|
+
export interface IsDeepStrictEqualOptions {
|
|
100
|
+
skipPrototype?: boolean | undefined;
|
|
101
|
+
}
|
|
102
|
+
export function isDeepStrictEqual(val1: unknown, val2: unknown, options?: IsDeepStrictEqualOptions): boolean;
|
|
103
|
+
export function stripVTControlCharacters(str: string): string;
|
|
104
|
+
export function callbackify(fn: () => Promise<void>): (callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
105
|
+
export function callbackify<TResult>(fn: () => Promise<TResult>): (callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
|
106
|
+
export function callbackify<T1>(fn: (arg1: T1) => Promise<void>): (arg1: T1, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
107
|
+
export function callbackify<T1, TResult>(fn: (arg1: T1) => Promise<TResult>): (arg1: T1, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
|
108
|
+
export function callbackify<T1, T2>(fn: (arg1: T1, arg2: T2) => Promise<void>): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
109
|
+
export function callbackify<T1, T2, TResult>(fn: (arg1: T1, arg2: T2) => Promise<TResult>): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
|
110
|
+
export function callbackify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<void>): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
111
|
+
export function callbackify<T1, T2, T3, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
|
112
|
+
export function callbackify<T1, T2, T3, T4>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
113
|
+
export function callbackify<T1, T2, T3, T4, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
|
114
|
+
export function callbackify<T1, T2, T3, T4, T5>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
115
|
+
export function callbackify<T1, T2, T3, T4, T5, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
|
116
|
+
export function callbackify<T1, T2, T3, T4, T5, T6>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<void>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
117
|
+
export function callbackify<T1, T2, T3, T4, T5, T6, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
|
118
|
+
export interface CustomPromisifyLegacy<TCustom extends Function> extends Function {
|
|
119
|
+
__promisify__: TCustom;
|
|
120
|
+
}
|
|
121
|
+
export interface CustomPromisifySymbol<TCustom extends Function> extends Function {
|
|
122
|
+
[promisify.custom]: TCustom;
|
|
123
|
+
}
|
|
124
|
+
export type CustomPromisify<TCustom extends Function> = CustomPromisifySymbol<TCustom> | CustomPromisifyLegacy<TCustom>;
|
|
125
|
+
export function promisify<TCustom extends Function>(fn: CustomPromisify<TCustom>): TCustom;
|
|
126
|
+
export function promisify<TResult>(fn: (callback: (err: any, result: TResult) => void) => void): () => Promise<TResult>;
|
|
127
|
+
export function promisify(fn: (callback: (err?: any) => void) => void): () => Promise<void>;
|
|
128
|
+
export function promisify<T1, TResult>(fn: (arg1: T1, callback: (err: any, result: TResult) => void) => void): (arg1: T1) => Promise<TResult>;
|
|
129
|
+
export function promisify<T1>(fn: (arg1: T1, callback: (err?: any) => void) => void): (arg1: T1) => Promise<void>;
|
|
130
|
+
export function promisify<T1, T2, TResult>(fn: (arg1: T1, arg2: T2, callback: (err: any, result: TResult) => void) => void): (arg1: T1, arg2: T2) => Promise<TResult>;
|
|
131
|
+
export function promisify<T1, T2>(fn: (arg1: T1, arg2: T2, callback: (err?: any) => void) => void): (arg1: T1, arg2: T2) => Promise<void>;
|
|
132
|
+
export function promisify<T1, T2, T3, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: any, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>;
|
|
133
|
+
export function promisify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err?: any) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<void>;
|
|
134
|
+
export function promisify<T1, T2, T3, T4, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: any, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>;
|
|
135
|
+
export function promisify<T1, T2, T3, T4>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?: any) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>;
|
|
136
|
+
export function promisify<T1, T2, T3, T4, T5, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: any, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>;
|
|
137
|
+
export function promisify<T1, T2, T3, T4, T5>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: any) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>;
|
|
138
|
+
export function promisify(fn: Function): Function;
|
|
139
|
+
export namespace promisify {
|
|
140
|
+
const custom: unique symbol;
|
|
141
|
+
}
|
|
142
|
+
export function parseEnv(content: string): NodeJS.Dict<string>;
|
|
143
|
+
export interface StyleTextOptions {
|
|
144
|
+
validateStream?: boolean | undefined;
|
|
145
|
+
stream?: NodeJS.WritableStream | undefined;
|
|
146
|
+
}
|
|
147
|
+
export function styleText(format: InspectColor | readonly InspectColor[], text: string, options?: StyleTextOptions): string;
|
|
148
|
+
export interface EncodeIntoResult extends TextEncoderEncodeIntoResult {
|
|
149
|
+
}
|
|
150
|
+
export function parseArgs<T extends ParseArgsConfig>(config?: T): ParsedResults<T>;
|
|
151
|
+
export type ParseArgsOptionsType = "boolean" | "string";
|
|
152
|
+
export interface ParseArgsOptionDescriptor {
|
|
153
|
+
type: ParseArgsOptionsType;
|
|
154
|
+
multiple?: boolean | undefined;
|
|
155
|
+
short?: string | undefined;
|
|
156
|
+
default?: string | boolean | string[] | boolean[] | undefined;
|
|
157
|
+
}
|
|
158
|
+
export interface ParseArgsOptionsConfig {
|
|
159
|
+
[longOption: string]: ParseArgsOptionDescriptor;
|
|
160
|
+
}
|
|
161
|
+
export interface ParseArgsConfig {
|
|
162
|
+
args?: readonly string[] | undefined;
|
|
163
|
+
options?: ParseArgsOptionsConfig | undefined;
|
|
164
|
+
strict?: boolean | undefined;
|
|
165
|
+
allowPositionals?: boolean | undefined;
|
|
166
|
+
allowNegative?: boolean | undefined;
|
|
167
|
+
tokens?: boolean | undefined;
|
|
168
|
+
}
|
|
169
|
+
type IfDefaultsTrue<T, IfTrue, IfFalse> = T extends true ? IfTrue : T extends false ? IfFalse : IfTrue;
|
|
170
|
+
type IfDefaultsFalse<T, IfTrue, IfFalse> = T extends false ? IfFalse : T extends true ? IfTrue : IfFalse;
|
|
171
|
+
type ExtractOptionValue<T extends ParseArgsConfig, O extends ParseArgsOptionDescriptor> = IfDefaultsTrue<T["strict"], O["type"] extends "string" ? string : O["type"] extends "boolean" ? boolean : string | boolean, string | boolean>;
|
|
172
|
+
type ApplyOptionalModifiers<O extends ParseArgsOptionsConfig, V extends Record<keyof O, unknown>> = ({
|
|
173
|
+
-readonly [LongOption in keyof O]?: V[LongOption];
|
|
174
|
+
} & {
|
|
175
|
+
[LongOption in keyof O as O[LongOption]["default"] extends {} ? LongOption : never]: V[LongOption];
|
|
176
|
+
}) extends infer P ? {
|
|
177
|
+
[K in keyof P]: P[K];
|
|
178
|
+
} : never;
|
|
179
|
+
type ParsedValues<T extends ParseArgsConfig> = IfDefaultsTrue<T["strict"], unknown, {
|
|
180
|
+
[longOption: string]: undefined | string | boolean;
|
|
181
|
+
}> & (T["options"] extends ParseArgsOptionsConfig ? ApplyOptionalModifiers<T["options"], {
|
|
182
|
+
[LongOption in keyof T["options"]]: IfDefaultsFalse<T["options"][LongOption]["multiple"], Array<ExtractOptionValue<T, T["options"][LongOption]>>, ExtractOptionValue<T, T["options"][LongOption]>>;
|
|
183
|
+
}> : {});
|
|
184
|
+
type ParsedPositionals<T extends ParseArgsConfig> = IfDefaultsTrue<T["strict"], IfDefaultsFalse<T["allowPositionals"], string[], [
|
|
185
|
+
]>, IfDefaultsTrue<T["allowPositionals"], string[], [
|
|
186
|
+
]>>;
|
|
187
|
+
type PreciseTokenForOptions<K extends string, O extends ParseArgsOptionDescriptor> = O["type"] extends "string" ? {
|
|
188
|
+
kind: "option";
|
|
189
|
+
index: number;
|
|
190
|
+
name: K;
|
|
191
|
+
rawName: string;
|
|
192
|
+
value: string;
|
|
193
|
+
inlineValue: boolean;
|
|
194
|
+
} : O["type"] extends "boolean" ? {
|
|
195
|
+
kind: "option";
|
|
196
|
+
index: number;
|
|
197
|
+
name: K;
|
|
198
|
+
rawName: string;
|
|
199
|
+
value: undefined;
|
|
200
|
+
inlineValue: undefined;
|
|
201
|
+
} : OptionToken & {
|
|
202
|
+
name: K;
|
|
203
|
+
};
|
|
204
|
+
type TokenForOptions<T extends ParseArgsConfig, K extends keyof T["options"] = keyof T["options"]> = K extends unknown ? T["options"] extends ParseArgsOptionsConfig ? PreciseTokenForOptions<K & string, T["options"][K]> : OptionToken : never;
|
|
205
|
+
type ParsedOptionToken<T extends ParseArgsConfig> = IfDefaultsTrue<T["strict"], TokenForOptions<T>, OptionToken>;
|
|
206
|
+
type ParsedPositionalToken<T extends ParseArgsConfig> = IfDefaultsTrue<T["strict"], IfDefaultsFalse<T["allowPositionals"], {
|
|
207
|
+
kind: "positional";
|
|
208
|
+
index: number;
|
|
209
|
+
value: string;
|
|
210
|
+
}, never>, IfDefaultsTrue<T["allowPositionals"], {
|
|
211
|
+
kind: "positional";
|
|
212
|
+
index: number;
|
|
213
|
+
value: string;
|
|
214
|
+
}, never>>;
|
|
215
|
+
type ParsedTokens<T extends ParseArgsConfig> = Array<ParsedOptionToken<T> | ParsedPositionalToken<T> | {
|
|
216
|
+
kind: "option-terminator";
|
|
217
|
+
index: number;
|
|
218
|
+
}>;
|
|
219
|
+
type PreciseParsedResults<T extends ParseArgsConfig> = IfDefaultsFalse<T["tokens"], {
|
|
220
|
+
values: ParsedValues<T>;
|
|
221
|
+
positionals: ParsedPositionals<T>;
|
|
222
|
+
tokens: ParsedTokens<T>;
|
|
223
|
+
}, {
|
|
224
|
+
values: ParsedValues<T>;
|
|
225
|
+
positionals: ParsedPositionals<T>;
|
|
226
|
+
}>;
|
|
227
|
+
type OptionToken = {
|
|
228
|
+
kind: "option";
|
|
229
|
+
index: number;
|
|
230
|
+
name: string;
|
|
231
|
+
rawName: string;
|
|
232
|
+
value: string;
|
|
233
|
+
inlineValue: boolean;
|
|
234
|
+
} | {
|
|
235
|
+
kind: "option";
|
|
236
|
+
index: number;
|
|
237
|
+
name: string;
|
|
238
|
+
rawName: string;
|
|
239
|
+
value: undefined;
|
|
240
|
+
inlineValue: undefined;
|
|
241
|
+
};
|
|
242
|
+
type Token = OptionToken | {
|
|
243
|
+
kind: "positional";
|
|
244
|
+
index: number;
|
|
245
|
+
value: string;
|
|
246
|
+
} | {
|
|
247
|
+
kind: "option-terminator";
|
|
248
|
+
index: number;
|
|
249
|
+
};
|
|
250
|
+
type ParsedResults<T extends ParseArgsConfig> = ParseArgsConfig extends T ? {
|
|
251
|
+
values: {
|
|
252
|
+
[longOption: string]: undefined | string | boolean | Array<string | boolean>;
|
|
253
|
+
};
|
|
254
|
+
positionals: string[];
|
|
255
|
+
tokens?: Token[];
|
|
256
|
+
} : PreciseParsedResults<T>;
|
|
257
|
+
export class MIMEType {
|
|
258
|
+
constructor(input: string | {
|
|
259
|
+
toString: () => string;
|
|
260
|
+
});
|
|
261
|
+
type: string;
|
|
262
|
+
subtype: string;
|
|
263
|
+
readonly essence: string;
|
|
264
|
+
readonly params: MIMEParams;
|
|
265
|
+
toString(): string;
|
|
266
|
+
}
|
|
267
|
+
export class MIMEParams {
|
|
268
|
+
delete(name: string): void;
|
|
269
|
+
entries(): NodeJS.Iterator<[
|
|
270
|
+
name: string,
|
|
271
|
+
value: string
|
|
272
|
+
]>;
|
|
273
|
+
get(name: string): string | null;
|
|
274
|
+
has(name: string): boolean;
|
|
275
|
+
keys(): NodeJS.Iterator<string>;
|
|
276
|
+
set(name: string, value: string): void;
|
|
277
|
+
values(): NodeJS.Iterator<string>;
|
|
278
|
+
[Symbol.iterator](): NodeJS.Iterator<[
|
|
279
|
+
name: string,
|
|
280
|
+
value: string
|
|
281
|
+
]>;
|
|
282
|
+
}
|
|
283
|
+
export interface TextDecodeOptions {
|
|
284
|
+
stream?: boolean;
|
|
285
|
+
}
|
|
286
|
+
export interface TextDecoderCommon {
|
|
287
|
+
readonly encoding: string;
|
|
288
|
+
readonly fatal: boolean;
|
|
289
|
+
readonly ignoreBOM: boolean;
|
|
290
|
+
}
|
|
291
|
+
export interface TextDecoderOptions {
|
|
292
|
+
fatal?: boolean;
|
|
293
|
+
ignoreBOM?: boolean;
|
|
294
|
+
}
|
|
295
|
+
export interface TextEncoderCommon {
|
|
296
|
+
readonly encoding: string;
|
|
297
|
+
}
|
|
298
|
+
export interface TextEncoderEncodeIntoResult {
|
|
299
|
+
read: number;
|
|
300
|
+
written: number;
|
|
301
|
+
}
|
|
302
|
+
export interface TextDecoder extends TextDecoderCommon {
|
|
303
|
+
decode(input?: NodeJS.AllowSharedBufferSource, options?: TextDecodeOptions): string;
|
|
304
|
+
}
|
|
305
|
+
export var TextDecoder: {
|
|
306
|
+
prototype: TextDecoder;
|
|
307
|
+
new (label?: string, options?: TextDecoderOptions): TextDecoder;
|
|
308
|
+
};
|
|
309
|
+
export interface TextEncoder extends TextEncoderCommon {
|
|
310
|
+
encode(input?: string): NodeJS.NonSharedUint8Array;
|
|
311
|
+
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
|
|
312
|
+
}
|
|
313
|
+
export var TextEncoder: {
|
|
314
|
+
prototype: TextEncoder;
|
|
315
|
+
new (): TextEncoder;
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
declare module "util" {
|
|
319
|
+
export * from "node:util";
|
|
320
|
+
}
|