@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,88 @@
|
|
|
1
|
+
declare module "node:dgram" {
|
|
2
|
+
import { NonSharedBuffer } from "node:buffer";
|
|
3
|
+
import * as dns from "node:dns";
|
|
4
|
+
import { Abortable, EventEmitter, InternalEventEmitter } from "node:events";
|
|
5
|
+
import { AddressInfo, BlockList } from "node:net";
|
|
6
|
+
interface RemoteInfo {
|
|
7
|
+
address: string;
|
|
8
|
+
family: "IPv4" | "IPv6";
|
|
9
|
+
port: number;
|
|
10
|
+
size: number;
|
|
11
|
+
}
|
|
12
|
+
interface BindOptions {
|
|
13
|
+
port?: number | undefined;
|
|
14
|
+
address?: string | undefined;
|
|
15
|
+
exclusive?: boolean | undefined;
|
|
16
|
+
fd?: number | undefined;
|
|
17
|
+
}
|
|
18
|
+
type SocketType = "udp4" | "udp6";
|
|
19
|
+
interface SocketOptions extends Abortable {
|
|
20
|
+
type: SocketType;
|
|
21
|
+
reuseAddr?: boolean | undefined;
|
|
22
|
+
reusePort?: boolean | undefined;
|
|
23
|
+
ipv6Only?: boolean | undefined;
|
|
24
|
+
recvBufferSize?: number | undefined;
|
|
25
|
+
sendBufferSize?: number | undefined;
|
|
26
|
+
lookup?: ((hostname: string, options: dns.LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void) => void) | undefined;
|
|
27
|
+
receiveBlockList?: BlockList | undefined;
|
|
28
|
+
sendBlockList?: BlockList | undefined;
|
|
29
|
+
}
|
|
30
|
+
function createSocket(type: SocketType, callback?: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): Socket;
|
|
31
|
+
function createSocket(options: SocketOptions, callback?: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): Socket;
|
|
32
|
+
interface SocketEventMap {
|
|
33
|
+
"close": [
|
|
34
|
+
];
|
|
35
|
+
"connect": [
|
|
36
|
+
];
|
|
37
|
+
"error": [
|
|
38
|
+
err: Error
|
|
39
|
+
];
|
|
40
|
+
"listening": [
|
|
41
|
+
];
|
|
42
|
+
"message": [
|
|
43
|
+
msg: NonSharedBuffer,
|
|
44
|
+
rinfo: RemoteInfo
|
|
45
|
+
];
|
|
46
|
+
}
|
|
47
|
+
class Socket implements EventEmitter {
|
|
48
|
+
addMembership(multicastAddress: string, multicastInterface?: string): void;
|
|
49
|
+
address(): AddressInfo;
|
|
50
|
+
bind(port?: number, address?: string, callback?: () => void): this;
|
|
51
|
+
bind(port?: number, callback?: () => void): this;
|
|
52
|
+
bind(callback?: () => void): this;
|
|
53
|
+
bind(options: BindOptions, callback?: () => void): this;
|
|
54
|
+
close(callback?: () => void): this;
|
|
55
|
+
connect(port: number, address?: string, callback?: () => void): void;
|
|
56
|
+
connect(port: number, callback: () => void): void;
|
|
57
|
+
disconnect(): void;
|
|
58
|
+
dropMembership(multicastAddress: string, multicastInterface?: string): void;
|
|
59
|
+
getRecvBufferSize(): number;
|
|
60
|
+
getSendBufferSize(): number;
|
|
61
|
+
getSendQueueSize(): number;
|
|
62
|
+
getSendQueueCount(): number;
|
|
63
|
+
ref(): this;
|
|
64
|
+
remoteAddress(): AddressInfo;
|
|
65
|
+
send(msg: string | NodeJS.ArrayBufferView | readonly any[], port?: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void;
|
|
66
|
+
send(msg: string | NodeJS.ArrayBufferView | readonly any[], port?: number, callback?: (error: Error | null, bytes: number) => void): void;
|
|
67
|
+
send(msg: string | NodeJS.ArrayBufferView | readonly any[], callback?: (error: Error | null, bytes: number) => void): void;
|
|
68
|
+
send(msg: string | NodeJS.ArrayBufferView, offset: number, length: number, port?: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void;
|
|
69
|
+
send(msg: string | NodeJS.ArrayBufferView, offset: number, length: number, port?: number, callback?: (error: Error | null, bytes: number) => void): void;
|
|
70
|
+
send(msg: string | NodeJS.ArrayBufferView, offset: number, length: number, callback?: (error: Error | null, bytes: number) => void): void;
|
|
71
|
+
setBroadcast(flag: boolean): void;
|
|
72
|
+
setMulticastInterface(multicastInterface: string): void;
|
|
73
|
+
setMulticastLoopback(flag: boolean): boolean;
|
|
74
|
+
setMulticastTTL(ttl: number): number;
|
|
75
|
+
setRecvBufferSize(size: number): void;
|
|
76
|
+
setSendBufferSize(size: number): void;
|
|
77
|
+
setTTL(ttl: number): number;
|
|
78
|
+
unref(): this;
|
|
79
|
+
addSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void;
|
|
80
|
+
dropSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void;
|
|
81
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
82
|
+
}
|
|
83
|
+
interface Socket extends InternalEventEmitter<SocketEventMap> {
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
declare module "dgram" {
|
|
87
|
+
export * from "node:dgram";
|
|
88
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
declare module "node:diagnostics_channel" {
|
|
2
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3
|
+
function hasSubscribers(name: string | symbol): boolean;
|
|
4
|
+
function channel(name: string | symbol): Channel;
|
|
5
|
+
type ChannelListener = (message: unknown, name: string | symbol) => void;
|
|
6
|
+
function subscribe(name: string | symbol, onMessage: ChannelListener): void;
|
|
7
|
+
function unsubscribe(name: string | symbol, onMessage: ChannelListener): boolean;
|
|
8
|
+
function tracingChannel<StoreType = unknown, ContextType extends object = StoreType extends object ? StoreType : object>(nameOrChannels: string | TracingChannelCollection<StoreType, ContextType>): TracingChannel<StoreType, ContextType>;
|
|
9
|
+
class Channel<StoreType = unknown, ContextType = StoreType> {
|
|
10
|
+
readonly name: string | symbol;
|
|
11
|
+
readonly hasSubscribers: boolean;
|
|
12
|
+
private constructor(name: string | symbol);
|
|
13
|
+
publish(message: unknown): void;
|
|
14
|
+
subscribe(onMessage: ChannelListener): void;
|
|
15
|
+
unsubscribe(onMessage: ChannelListener): void;
|
|
16
|
+
bindStore(store: AsyncLocalStorage<StoreType>, transform?: (context: ContextType) => StoreType): void;
|
|
17
|
+
unbindStore(store: AsyncLocalStorage<StoreType>): boolean;
|
|
18
|
+
runStores<ThisArg = any, Args extends any[] = any[], Result = any>(context: ContextType, fn: (this: ThisArg, ...args: Args) => Result, thisArg?: ThisArg, ...args: Args): Result;
|
|
19
|
+
}
|
|
20
|
+
interface TracingChannelSubscribers<ContextType extends object> {
|
|
21
|
+
start: (message: ContextType) => void;
|
|
22
|
+
end: (message: ContextType & {
|
|
23
|
+
error?: unknown;
|
|
24
|
+
result?: unknown;
|
|
25
|
+
}) => void;
|
|
26
|
+
asyncStart: (message: ContextType & {
|
|
27
|
+
error?: unknown;
|
|
28
|
+
result?: unknown;
|
|
29
|
+
}) => void;
|
|
30
|
+
asyncEnd: (message: ContextType & {
|
|
31
|
+
error?: unknown;
|
|
32
|
+
result?: unknown;
|
|
33
|
+
}) => void;
|
|
34
|
+
error: (message: ContextType & {
|
|
35
|
+
error: unknown;
|
|
36
|
+
}) => void;
|
|
37
|
+
}
|
|
38
|
+
interface TracingChannelCollection<StoreType = unknown, ContextType = StoreType> {
|
|
39
|
+
start: Channel<StoreType, ContextType>;
|
|
40
|
+
end: Channel<StoreType, ContextType>;
|
|
41
|
+
asyncStart: Channel<StoreType, ContextType>;
|
|
42
|
+
asyncEnd: Channel<StoreType, ContextType>;
|
|
43
|
+
error: Channel<StoreType, ContextType>;
|
|
44
|
+
}
|
|
45
|
+
class TracingChannel<StoreType = unknown, ContextType extends object = {}> implements TracingChannelCollection {
|
|
46
|
+
start: Channel<StoreType, ContextType>;
|
|
47
|
+
end: Channel<StoreType, ContextType>;
|
|
48
|
+
asyncStart: Channel<StoreType, ContextType>;
|
|
49
|
+
asyncEnd: Channel<StoreType, ContextType>;
|
|
50
|
+
error: Channel<StoreType, ContextType>;
|
|
51
|
+
subscribe(subscribers: TracingChannelSubscribers<ContextType>): void;
|
|
52
|
+
unsubscribe(subscribers: TracingChannelSubscribers<ContextType>): void;
|
|
53
|
+
traceSync<ThisArg = any, Args extends any[] = any[], Result = any>(fn: (this: ThisArg, ...args: Args) => Result, context?: ContextType, thisArg?: ThisArg, ...args: Args): Result;
|
|
54
|
+
tracePromise<ThisArg = any, Args extends any[] = any[], Result = any>(fn: (this: ThisArg, ...args: Args) => Promise<Result>, context?: ContextType, thisArg?: ThisArg, ...args: Args): Promise<Result>;
|
|
55
|
+
traceCallback<ThisArg = any, Args extends any[] = any[], Result = any>(fn: (this: ThisArg, ...args: Args) => Result, position?: number, context?: ContextType, thisArg?: ThisArg, ...args: Args): Result;
|
|
56
|
+
readonly hasSubscribers: boolean;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
declare module "diagnostics_channel" {
|
|
60
|
+
export * from "node:diagnostics_channel";
|
|
61
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
declare module "node:dns/promises" {
|
|
2
|
+
import { AnyRecord, CaaRecord, LookupAddress, LookupAllOptions, LookupOneOptions, LookupOptions, MxRecord, NaptrRecord, RecordWithTtl, ResolveOptions, ResolverOptions, ResolveWithTtlOptions, SoaRecord, SrvRecord, TlsaRecord, } from "node:dns";
|
|
3
|
+
function getServers(): string[];
|
|
4
|
+
function lookup(hostname: string, family: number): Promise<LookupAddress>;
|
|
5
|
+
function lookup(hostname: string, options: LookupOneOptions): Promise<LookupAddress>;
|
|
6
|
+
function lookup(hostname: string, options: LookupAllOptions): Promise<LookupAddress[]>;
|
|
7
|
+
function lookup(hostname: string, options: LookupOptions): Promise<LookupAddress | LookupAddress[]>;
|
|
8
|
+
function lookup(hostname: string): Promise<LookupAddress>;
|
|
9
|
+
function lookupService(address: string, port: number): Promise<{
|
|
10
|
+
hostname: string;
|
|
11
|
+
service: string;
|
|
12
|
+
}>;
|
|
13
|
+
function resolve(hostname: string): Promise<string[]>;
|
|
14
|
+
function resolve(hostname: string, rrtype: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise<string[]>;
|
|
15
|
+
function resolve(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>;
|
|
16
|
+
function resolve(hostname: string, rrtype: "CAA"): Promise<CaaRecord[]>;
|
|
17
|
+
function resolve(hostname: string, rrtype: "MX"): Promise<MxRecord[]>;
|
|
18
|
+
function resolve(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>;
|
|
19
|
+
function resolve(hostname: string, rrtype: "SOA"): Promise<SoaRecord>;
|
|
20
|
+
function resolve(hostname: string, rrtype: "SRV"): Promise<SrvRecord[]>;
|
|
21
|
+
function resolve(hostname: string, rrtype: "TLSA"): Promise<TlsaRecord[]>;
|
|
22
|
+
function resolve(hostname: string, rrtype: "TXT"): Promise<string[][]>;
|
|
23
|
+
function resolve(hostname: string, rrtype: string): Promise<string[] | CaaRecord[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | TlsaRecord[] | string[][] | AnyRecord[]>;
|
|
24
|
+
function resolve4(hostname: string): Promise<string[]>;
|
|
25
|
+
function resolve4(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
|
26
|
+
function resolve4(hostname: string, options: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
|
27
|
+
function resolve6(hostname: string): Promise<string[]>;
|
|
28
|
+
function resolve6(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
|
29
|
+
function resolve6(hostname: string, options: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
|
30
|
+
function resolveAny(hostname: string): Promise<AnyRecord[]>;
|
|
31
|
+
function resolveCaa(hostname: string): Promise<CaaRecord[]>;
|
|
32
|
+
function resolveCname(hostname: string): Promise<string[]>;
|
|
33
|
+
function resolveMx(hostname: string): Promise<MxRecord[]>;
|
|
34
|
+
function resolveNaptr(hostname: string): Promise<NaptrRecord[]>;
|
|
35
|
+
function resolveNs(hostname: string): Promise<string[]>;
|
|
36
|
+
function resolvePtr(hostname: string): Promise<string[]>;
|
|
37
|
+
function resolveSoa(hostname: string): Promise<SoaRecord>;
|
|
38
|
+
function resolveSrv(hostname: string): Promise<SrvRecord[]>;
|
|
39
|
+
function resolveTlsa(hostname: string): Promise<TlsaRecord[]>;
|
|
40
|
+
function resolveTxt(hostname: string): Promise<string[][]>;
|
|
41
|
+
function reverse(ip: string): Promise<string[]>;
|
|
42
|
+
function getDefaultResultOrder(): "ipv4first" | "verbatim";
|
|
43
|
+
function setServers(servers: readonly string[]): void;
|
|
44
|
+
function setDefaultResultOrder(order: "ipv4first" | "ipv6first" | "verbatim"): void;
|
|
45
|
+
const NODATA: "ENODATA";
|
|
46
|
+
const FORMERR: "EFORMERR";
|
|
47
|
+
const SERVFAIL: "ESERVFAIL";
|
|
48
|
+
const NOTFOUND: "ENOTFOUND";
|
|
49
|
+
const NOTIMP: "ENOTIMP";
|
|
50
|
+
const REFUSED: "EREFUSED";
|
|
51
|
+
const BADQUERY: "EBADQUERY";
|
|
52
|
+
const BADNAME: "EBADNAME";
|
|
53
|
+
const BADFAMILY: "EBADFAMILY";
|
|
54
|
+
const BADRESP: "EBADRESP";
|
|
55
|
+
const CONNREFUSED: "ECONNREFUSED";
|
|
56
|
+
const TIMEOUT: "ETIMEOUT";
|
|
57
|
+
const EOF: "EOF";
|
|
58
|
+
const FILE: "EFILE";
|
|
59
|
+
const NOMEM: "ENOMEM";
|
|
60
|
+
const DESTRUCTION: "EDESTRUCTION";
|
|
61
|
+
const BADSTR: "EBADSTR";
|
|
62
|
+
const BADFLAGS: "EBADFLAGS";
|
|
63
|
+
const NONAME: "ENONAME";
|
|
64
|
+
const BADHINTS: "EBADHINTS";
|
|
65
|
+
const NOTINITIALIZED: "ENOTINITIALIZED";
|
|
66
|
+
const LOADIPHLPAPI: "ELOADIPHLPAPI";
|
|
67
|
+
const ADDRGETNETWORKPARAMS: "EADDRGETNETWORKPARAMS";
|
|
68
|
+
const CANCELLED: "ECANCELLED";
|
|
69
|
+
class Resolver {
|
|
70
|
+
constructor(options?: ResolverOptions);
|
|
71
|
+
cancel(): void;
|
|
72
|
+
getServers: typeof getServers;
|
|
73
|
+
resolve: typeof resolve;
|
|
74
|
+
resolve4: typeof resolve4;
|
|
75
|
+
resolve6: typeof resolve6;
|
|
76
|
+
resolveAny: typeof resolveAny;
|
|
77
|
+
resolveCaa: typeof resolveCaa;
|
|
78
|
+
resolveCname: typeof resolveCname;
|
|
79
|
+
resolveMx: typeof resolveMx;
|
|
80
|
+
resolveNaptr: typeof resolveNaptr;
|
|
81
|
+
resolveNs: typeof resolveNs;
|
|
82
|
+
resolvePtr: typeof resolvePtr;
|
|
83
|
+
resolveSoa: typeof resolveSoa;
|
|
84
|
+
resolveSrv: typeof resolveSrv;
|
|
85
|
+
resolveTlsa: typeof resolveTlsa;
|
|
86
|
+
resolveTxt: typeof resolveTxt;
|
|
87
|
+
reverse: typeof reverse;
|
|
88
|
+
setLocalAddress(ipv4?: string, ipv6?: string): void;
|
|
89
|
+
setServers: typeof setServers;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
declare module "dns/promises" {
|
|
93
|
+
export * from "node:dns/promises";
|
|
94
|
+
}
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
declare module "node:dns" {
|
|
2
|
+
const ADDRCONFIG: number;
|
|
3
|
+
const V4MAPPED: number;
|
|
4
|
+
const ALL: number;
|
|
5
|
+
interface LookupOptions {
|
|
6
|
+
family?: number | "IPv4" | "IPv6" | undefined;
|
|
7
|
+
hints?: number | undefined;
|
|
8
|
+
all?: boolean | undefined;
|
|
9
|
+
order?: "ipv4first" | "ipv6first" | "verbatim" | undefined;
|
|
10
|
+
verbatim?: boolean | undefined;
|
|
11
|
+
}
|
|
12
|
+
interface LookupOneOptions extends LookupOptions {
|
|
13
|
+
all?: false | undefined;
|
|
14
|
+
}
|
|
15
|
+
interface LookupAllOptions extends LookupOptions {
|
|
16
|
+
all: true;
|
|
17
|
+
}
|
|
18
|
+
interface LookupAddress {
|
|
19
|
+
address: string;
|
|
20
|
+
family: number;
|
|
21
|
+
}
|
|
22
|
+
function lookup(hostname: string, family: number, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void;
|
|
23
|
+
function lookup(hostname: string, options: LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void;
|
|
24
|
+
function lookup(hostname: string, options: LookupAllOptions, callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void): void;
|
|
25
|
+
function lookup(hostname: string, options: LookupOptions, callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void): void;
|
|
26
|
+
function lookup(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void;
|
|
27
|
+
namespace lookup {
|
|
28
|
+
function __promisify__(hostname: string, options: LookupAllOptions): Promise<LookupAddress[]>;
|
|
29
|
+
function __promisify__(hostname: string, options?: LookupOneOptions | number): Promise<LookupAddress>;
|
|
30
|
+
function __promisify__(hostname: string, options: LookupOptions): Promise<LookupAddress | LookupAddress[]>;
|
|
31
|
+
}
|
|
32
|
+
function lookupService(address: string, port: number, callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void): void;
|
|
33
|
+
namespace lookupService {
|
|
34
|
+
function __promisify__(address: string, port: number): Promise<{
|
|
35
|
+
hostname: string;
|
|
36
|
+
service: string;
|
|
37
|
+
}>;
|
|
38
|
+
}
|
|
39
|
+
interface ResolveOptions {
|
|
40
|
+
ttl: boolean;
|
|
41
|
+
}
|
|
42
|
+
interface ResolveWithTtlOptions extends ResolveOptions {
|
|
43
|
+
ttl: true;
|
|
44
|
+
}
|
|
45
|
+
interface RecordWithTtl {
|
|
46
|
+
address: string;
|
|
47
|
+
ttl: number;
|
|
48
|
+
}
|
|
49
|
+
interface AnyARecord extends RecordWithTtl {
|
|
50
|
+
type: "A";
|
|
51
|
+
}
|
|
52
|
+
interface AnyAaaaRecord extends RecordWithTtl {
|
|
53
|
+
type: "AAAA";
|
|
54
|
+
}
|
|
55
|
+
interface CaaRecord {
|
|
56
|
+
critical: number;
|
|
57
|
+
issue?: string | undefined;
|
|
58
|
+
issuewild?: string | undefined;
|
|
59
|
+
iodef?: string | undefined;
|
|
60
|
+
contactemail?: string | undefined;
|
|
61
|
+
contactphone?: string | undefined;
|
|
62
|
+
}
|
|
63
|
+
interface AnyCaaRecord extends CaaRecord {
|
|
64
|
+
type: "CAA";
|
|
65
|
+
}
|
|
66
|
+
interface MxRecord {
|
|
67
|
+
priority: number;
|
|
68
|
+
exchange: string;
|
|
69
|
+
}
|
|
70
|
+
interface AnyMxRecord extends MxRecord {
|
|
71
|
+
type: "MX";
|
|
72
|
+
}
|
|
73
|
+
interface NaptrRecord {
|
|
74
|
+
flags: string;
|
|
75
|
+
service: string;
|
|
76
|
+
regexp: string;
|
|
77
|
+
replacement: string;
|
|
78
|
+
order: number;
|
|
79
|
+
preference: number;
|
|
80
|
+
}
|
|
81
|
+
interface AnyNaptrRecord extends NaptrRecord {
|
|
82
|
+
type: "NAPTR";
|
|
83
|
+
}
|
|
84
|
+
interface SoaRecord {
|
|
85
|
+
nsname: string;
|
|
86
|
+
hostmaster: string;
|
|
87
|
+
serial: number;
|
|
88
|
+
refresh: number;
|
|
89
|
+
retry: number;
|
|
90
|
+
expire: number;
|
|
91
|
+
minttl: number;
|
|
92
|
+
}
|
|
93
|
+
interface AnySoaRecord extends SoaRecord {
|
|
94
|
+
type: "SOA";
|
|
95
|
+
}
|
|
96
|
+
interface SrvRecord {
|
|
97
|
+
priority: number;
|
|
98
|
+
weight: number;
|
|
99
|
+
port: number;
|
|
100
|
+
name: string;
|
|
101
|
+
}
|
|
102
|
+
interface AnySrvRecord extends SrvRecord {
|
|
103
|
+
type: "SRV";
|
|
104
|
+
}
|
|
105
|
+
interface TlsaRecord {
|
|
106
|
+
certUsage: number;
|
|
107
|
+
selector: number;
|
|
108
|
+
match: number;
|
|
109
|
+
data: ArrayBuffer;
|
|
110
|
+
}
|
|
111
|
+
interface AnyTlsaRecord extends TlsaRecord {
|
|
112
|
+
type: "TLSA";
|
|
113
|
+
}
|
|
114
|
+
interface AnyTxtRecord {
|
|
115
|
+
type: "TXT";
|
|
116
|
+
entries: string[];
|
|
117
|
+
}
|
|
118
|
+
interface AnyNsRecord {
|
|
119
|
+
type: "NS";
|
|
120
|
+
value: string;
|
|
121
|
+
}
|
|
122
|
+
interface AnyPtrRecord {
|
|
123
|
+
type: "PTR";
|
|
124
|
+
value: string;
|
|
125
|
+
}
|
|
126
|
+
interface AnyCnameRecord {
|
|
127
|
+
type: "CNAME";
|
|
128
|
+
value: string;
|
|
129
|
+
}
|
|
130
|
+
type AnyRecord = AnyARecord | AnyAaaaRecord | AnyCaaRecord | AnyCnameRecord | AnyMxRecord | AnyNaptrRecord | AnyNsRecord | AnyPtrRecord | AnySoaRecord | AnySrvRecord | AnyTlsaRecord | AnyTxtRecord;
|
|
131
|
+
function resolve(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
132
|
+
function resolve(hostname: string, rrtype: "A" | "AAAA" | "CNAME" | "NS" | "PTR", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
133
|
+
function resolve(hostname: string, rrtype: "ANY", callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void): void;
|
|
134
|
+
function resolve(hostname: string, rrtype: "CAA", callback: (err: NodeJS.ErrnoException | null, address: CaaRecord[]) => void): void;
|
|
135
|
+
function resolve(hostname: string, rrtype: "MX", callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void): void;
|
|
136
|
+
function resolve(hostname: string, rrtype: "NAPTR", callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void): void;
|
|
137
|
+
function resolve(hostname: string, rrtype: "SOA", callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void): void;
|
|
138
|
+
function resolve(hostname: string, rrtype: "SRV", callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void): void;
|
|
139
|
+
function resolve(hostname: string, rrtype: "TLSA", callback: (err: NodeJS.ErrnoException | null, addresses: TlsaRecord[]) => void): void;
|
|
140
|
+
function resolve(hostname: string, rrtype: "TXT", callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void;
|
|
141
|
+
function resolve(hostname: string, rrtype: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | CaaRecord[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | TlsaRecord[] | string[][] | AnyRecord[]) => void): void;
|
|
142
|
+
namespace resolve {
|
|
143
|
+
function __promisify__(hostname: string, rrtype?: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise<string[]>;
|
|
144
|
+
function __promisify__(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>;
|
|
145
|
+
function __promisify__(hostname: string, rrtype: "CAA"): Promise<CaaRecord[]>;
|
|
146
|
+
function __promisify__(hostname: string, rrtype: "MX"): Promise<MxRecord[]>;
|
|
147
|
+
function __promisify__(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>;
|
|
148
|
+
function __promisify__(hostname: string, rrtype: "SOA"): Promise<SoaRecord>;
|
|
149
|
+
function __promisify__(hostname: string, rrtype: "SRV"): Promise<SrvRecord[]>;
|
|
150
|
+
function __promisify__(hostname: string, rrtype: "TLSA"): Promise<TlsaRecord[]>;
|
|
151
|
+
function __promisify__(hostname: string, rrtype: "TXT"): Promise<string[][]>;
|
|
152
|
+
function __promisify__(hostname: string, rrtype: string): Promise<string[] | CaaRecord[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | TlsaRecord[] | string[][] | AnyRecord[]>;
|
|
153
|
+
}
|
|
154
|
+
function resolve4(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
155
|
+
function resolve4(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void): void;
|
|
156
|
+
function resolve4(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void): void;
|
|
157
|
+
namespace resolve4 {
|
|
158
|
+
function __promisify__(hostname: string): Promise<string[]>;
|
|
159
|
+
function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
|
160
|
+
function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
|
161
|
+
}
|
|
162
|
+
function resolve6(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
163
|
+
function resolve6(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void): void;
|
|
164
|
+
function resolve6(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void): void;
|
|
165
|
+
namespace resolve6 {
|
|
166
|
+
function __promisify__(hostname: string): Promise<string[]>;
|
|
167
|
+
function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
|
168
|
+
function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
|
169
|
+
}
|
|
170
|
+
function resolveCname(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
171
|
+
namespace resolveCname {
|
|
172
|
+
function __promisify__(hostname: string): Promise<string[]>;
|
|
173
|
+
}
|
|
174
|
+
function resolveCaa(hostname: string, callback: (err: NodeJS.ErrnoException | null, records: CaaRecord[]) => void): void;
|
|
175
|
+
namespace resolveCaa {
|
|
176
|
+
function __promisify__(hostname: string): Promise<CaaRecord[]>;
|
|
177
|
+
}
|
|
178
|
+
function resolveMx(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void): void;
|
|
179
|
+
namespace resolveMx {
|
|
180
|
+
function __promisify__(hostname: string): Promise<MxRecord[]>;
|
|
181
|
+
}
|
|
182
|
+
function resolveNaptr(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void): void;
|
|
183
|
+
namespace resolveNaptr {
|
|
184
|
+
function __promisify__(hostname: string): Promise<NaptrRecord[]>;
|
|
185
|
+
}
|
|
186
|
+
function resolveNs(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
187
|
+
namespace resolveNs {
|
|
188
|
+
function __promisify__(hostname: string): Promise<string[]>;
|
|
189
|
+
}
|
|
190
|
+
function resolvePtr(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
191
|
+
namespace resolvePtr {
|
|
192
|
+
function __promisify__(hostname: string): Promise<string[]>;
|
|
193
|
+
}
|
|
194
|
+
function resolveSoa(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void): void;
|
|
195
|
+
namespace resolveSoa {
|
|
196
|
+
function __promisify__(hostname: string): Promise<SoaRecord>;
|
|
197
|
+
}
|
|
198
|
+
function resolveSrv(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void): void;
|
|
199
|
+
namespace resolveSrv {
|
|
200
|
+
function __promisify__(hostname: string): Promise<SrvRecord[]>;
|
|
201
|
+
}
|
|
202
|
+
function resolveTlsa(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: TlsaRecord[]) => void): void;
|
|
203
|
+
namespace resolveTlsa {
|
|
204
|
+
function __promisify__(hostname: string): Promise<TlsaRecord[]>;
|
|
205
|
+
}
|
|
206
|
+
function resolveTxt(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void;
|
|
207
|
+
namespace resolveTxt {
|
|
208
|
+
function __promisify__(hostname: string): Promise<string[][]>;
|
|
209
|
+
}
|
|
210
|
+
function resolveAny(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void): void;
|
|
211
|
+
namespace resolveAny {
|
|
212
|
+
function __promisify__(hostname: string): Promise<AnyRecord[]>;
|
|
213
|
+
}
|
|
214
|
+
function reverse(ip: string, callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void): void;
|
|
215
|
+
function getDefaultResultOrder(): "ipv4first" | "ipv6first" | "verbatim";
|
|
216
|
+
function setServers(servers: readonly string[]): void;
|
|
217
|
+
function getServers(): string[];
|
|
218
|
+
function setDefaultResultOrder(order: "ipv4first" | "ipv6first" | "verbatim"): void;
|
|
219
|
+
const NODATA: "ENODATA";
|
|
220
|
+
const FORMERR: "EFORMERR";
|
|
221
|
+
const SERVFAIL: "ESERVFAIL";
|
|
222
|
+
const NOTFOUND: "ENOTFOUND";
|
|
223
|
+
const NOTIMP: "ENOTIMP";
|
|
224
|
+
const REFUSED: "EREFUSED";
|
|
225
|
+
const BADQUERY: "EBADQUERY";
|
|
226
|
+
const BADNAME: "EBADNAME";
|
|
227
|
+
const BADFAMILY: "EBADFAMILY";
|
|
228
|
+
const BADRESP: "EBADRESP";
|
|
229
|
+
const CONNREFUSED: "ECONNREFUSED";
|
|
230
|
+
const TIMEOUT: "ETIMEOUT";
|
|
231
|
+
const EOF: "EOF";
|
|
232
|
+
const FILE: "EFILE";
|
|
233
|
+
const NOMEM: "ENOMEM";
|
|
234
|
+
const DESTRUCTION: "EDESTRUCTION";
|
|
235
|
+
const BADSTR: "EBADSTR";
|
|
236
|
+
const BADFLAGS: "EBADFLAGS";
|
|
237
|
+
const NONAME: "ENONAME";
|
|
238
|
+
const BADHINTS: "EBADHINTS";
|
|
239
|
+
const NOTINITIALIZED: "ENOTINITIALIZED";
|
|
240
|
+
const LOADIPHLPAPI: "ELOADIPHLPAPI";
|
|
241
|
+
const ADDRGETNETWORKPARAMS: "EADDRGETNETWORKPARAMS";
|
|
242
|
+
const CANCELLED: "ECANCELLED";
|
|
243
|
+
interface ResolverOptions {
|
|
244
|
+
timeout?: number | undefined;
|
|
245
|
+
tries?: number | undefined;
|
|
246
|
+
maxTimeout?: number | undefined;
|
|
247
|
+
}
|
|
248
|
+
class Resolver {
|
|
249
|
+
constructor(options?: ResolverOptions);
|
|
250
|
+
cancel(): void;
|
|
251
|
+
getServers: typeof getServers;
|
|
252
|
+
resolve: typeof resolve;
|
|
253
|
+
resolve4: typeof resolve4;
|
|
254
|
+
resolve6: typeof resolve6;
|
|
255
|
+
resolveAny: typeof resolveAny;
|
|
256
|
+
resolveCaa: typeof resolveCaa;
|
|
257
|
+
resolveCname: typeof resolveCname;
|
|
258
|
+
resolveMx: typeof resolveMx;
|
|
259
|
+
resolveNaptr: typeof resolveNaptr;
|
|
260
|
+
resolveNs: typeof resolveNs;
|
|
261
|
+
resolvePtr: typeof resolvePtr;
|
|
262
|
+
resolveSoa: typeof resolveSoa;
|
|
263
|
+
resolveSrv: typeof resolveSrv;
|
|
264
|
+
resolveTlsa: typeof resolveTlsa;
|
|
265
|
+
resolveTxt: typeof resolveTxt;
|
|
266
|
+
reverse: typeof reverse;
|
|
267
|
+
setLocalAddress(ipv4?: string, ipv6?: string): void;
|
|
268
|
+
setServers: typeof setServers;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
declare module "node:dns" {
|
|
272
|
+
export * as promises from "node:dns/promises";
|
|
273
|
+
}
|
|
274
|
+
declare module "dns" {
|
|
275
|
+
export * from "node:dns";
|
|
276
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare module "node:domain" {
|
|
2
|
+
import { EventEmitter } from "node:events";
|
|
3
|
+
class Domain extends EventEmitter {
|
|
4
|
+
members: EventEmitter[];
|
|
5
|
+
enter(): void;
|
|
6
|
+
exit(): void;
|
|
7
|
+
run<T>(fn: (...args: any[]) => T, ...args: any[]): T;
|
|
8
|
+
add(emitter: EventEmitter): void;
|
|
9
|
+
remove(emitter: EventEmitter): void;
|
|
10
|
+
bind<T extends Function>(callback: T): T;
|
|
11
|
+
intercept<T extends Function>(callback: T): T;
|
|
12
|
+
}
|
|
13
|
+
function create(): Domain;
|
|
14
|
+
}
|
|
15
|
+
declare module "domain" {
|
|
16
|
+
export * from "node:domain";
|
|
17
|
+
}
|