@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,187 @@
|
|
|
1
|
+
declare module "node:module" {
|
|
2
|
+
import { URL } from "node:url";
|
|
3
|
+
class Module {
|
|
4
|
+
constructor(id: string, parent?: Module);
|
|
5
|
+
}
|
|
6
|
+
interface Module extends NodeJS.Module {
|
|
7
|
+
}
|
|
8
|
+
namespace Module {
|
|
9
|
+
export { Module };
|
|
10
|
+
}
|
|
11
|
+
namespace Module {
|
|
12
|
+
const builtinModules: readonly string[];
|
|
13
|
+
function createRequire(path: string | URL): NodeJS.Require;
|
|
14
|
+
namespace constants {
|
|
15
|
+
namespace compileCacheStatus {
|
|
16
|
+
const ENABLED: number;
|
|
17
|
+
const ALREADY_ENABLED: number;
|
|
18
|
+
const FAILED: number;
|
|
19
|
+
const DISABLED: number;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
interface EnableCompileCacheOptions {
|
|
23
|
+
directory?: string | undefined;
|
|
24
|
+
portable?: boolean | undefined;
|
|
25
|
+
}
|
|
26
|
+
interface EnableCompileCacheResult {
|
|
27
|
+
status: number;
|
|
28
|
+
message?: string;
|
|
29
|
+
directory?: string;
|
|
30
|
+
}
|
|
31
|
+
function enableCompileCache(options?: string | EnableCompileCacheOptions): EnableCompileCacheResult;
|
|
32
|
+
function flushCompileCache(): void;
|
|
33
|
+
function getCompileCacheDir(): string | undefined;
|
|
34
|
+
function findPackageJSON(specifier: string | URL, base?: string | URL): string | undefined;
|
|
35
|
+
function isBuiltin(moduleName: string): boolean;
|
|
36
|
+
interface RegisterOptions<Data> {
|
|
37
|
+
parentURL?: string | URL | undefined;
|
|
38
|
+
data?: Data | undefined;
|
|
39
|
+
transferList?: any[] | undefined;
|
|
40
|
+
}
|
|
41
|
+
function register<Data = any>(specifier: string | URL, parentURL?: string | URL, options?: RegisterOptions<Data>): void;
|
|
42
|
+
function register<Data = any>(specifier: string | URL, options?: RegisterOptions<Data>): void;
|
|
43
|
+
interface RegisterHooksOptions {
|
|
44
|
+
load?: LoadHookSync | undefined;
|
|
45
|
+
resolve?: ResolveHookSync | undefined;
|
|
46
|
+
}
|
|
47
|
+
interface ModuleHooks {
|
|
48
|
+
deregister(): void;
|
|
49
|
+
}
|
|
50
|
+
function registerHooks(options: RegisterHooksOptions): ModuleHooks;
|
|
51
|
+
interface StripTypeScriptTypesOptions {
|
|
52
|
+
mode?: "strip" | "transform" | undefined;
|
|
53
|
+
sourceMap?: boolean | undefined;
|
|
54
|
+
sourceUrl?: string | undefined;
|
|
55
|
+
}
|
|
56
|
+
function stripTypeScriptTypes(code: string, options?: StripTypeScriptTypesOptions): string;
|
|
57
|
+
function syncBuiltinESMExports(): void;
|
|
58
|
+
interface ImportAttributes extends NodeJS.Dict<string> {
|
|
59
|
+
type?: string | undefined;
|
|
60
|
+
}
|
|
61
|
+
type ImportPhase = "source" | "evaluation";
|
|
62
|
+
type ModuleFormat = "addon" | "builtin" | "commonjs" | "commonjs-typescript" | "json" | "module" | "module-typescript" | "wasm";
|
|
63
|
+
type ModuleSource = string | ArrayBuffer | NodeJS.TypedArray;
|
|
64
|
+
type InitializeHook<Data = any> = (data: Data) => void | Promise<void>;
|
|
65
|
+
interface ResolveHookContext {
|
|
66
|
+
conditions: string[];
|
|
67
|
+
importAttributes: ImportAttributes;
|
|
68
|
+
parentURL: string | undefined;
|
|
69
|
+
}
|
|
70
|
+
interface ResolveFnOutput {
|
|
71
|
+
format?: string | null | undefined;
|
|
72
|
+
importAttributes?: ImportAttributes | undefined;
|
|
73
|
+
shortCircuit?: boolean | undefined;
|
|
74
|
+
url: string;
|
|
75
|
+
}
|
|
76
|
+
type ResolveHook = (specifier: string, context: ResolveHookContext, nextResolve: (specifier: string, context?: Partial<ResolveHookContext>) => ResolveFnOutput | Promise<ResolveFnOutput>) => ResolveFnOutput | Promise<ResolveFnOutput>;
|
|
77
|
+
type ResolveHookSync = (specifier: string, context: ResolveHookContext, nextResolve: (specifier: string, context?: Partial<ResolveHookContext>) => ResolveFnOutput) => ResolveFnOutput;
|
|
78
|
+
interface LoadHookContext {
|
|
79
|
+
conditions: string[];
|
|
80
|
+
format: string | null | undefined;
|
|
81
|
+
importAttributes: ImportAttributes;
|
|
82
|
+
}
|
|
83
|
+
interface LoadFnOutput {
|
|
84
|
+
format: string | null | undefined;
|
|
85
|
+
shortCircuit?: boolean | undefined;
|
|
86
|
+
source?: ModuleSource | undefined;
|
|
87
|
+
}
|
|
88
|
+
type LoadHook = (url: string, context: LoadHookContext, nextLoad: (url: string, context?: Partial<LoadHookContext>) => LoadFnOutput | Promise<LoadFnOutput>) => LoadFnOutput | Promise<LoadFnOutput>;
|
|
89
|
+
type LoadHookSync = (url: string, context: LoadHookContext, nextLoad: (url: string, context?: Partial<LoadHookContext>) => LoadFnOutput) => LoadFnOutput;
|
|
90
|
+
interface SourceMapsSupport {
|
|
91
|
+
enabled: boolean;
|
|
92
|
+
nodeModules: boolean;
|
|
93
|
+
generatedCode: boolean;
|
|
94
|
+
}
|
|
95
|
+
function getSourceMapsSupport(): SourceMapsSupport;
|
|
96
|
+
function findSourceMap(path: string): SourceMap | undefined;
|
|
97
|
+
interface SetSourceMapsSupportOptions {
|
|
98
|
+
nodeModules?: boolean | undefined;
|
|
99
|
+
generatedCode?: boolean | undefined;
|
|
100
|
+
}
|
|
101
|
+
function setSourceMapsSupport(enabled: boolean, options?: SetSourceMapsSupportOptions): void;
|
|
102
|
+
interface SourceMapConstructorOptions {
|
|
103
|
+
lineLengths?: readonly number[] | undefined;
|
|
104
|
+
}
|
|
105
|
+
interface SourceMapPayload {
|
|
106
|
+
file: string;
|
|
107
|
+
version: number;
|
|
108
|
+
sources: string[];
|
|
109
|
+
sourcesContent: string[];
|
|
110
|
+
names: string[];
|
|
111
|
+
mappings: string;
|
|
112
|
+
sourceRoot: string;
|
|
113
|
+
}
|
|
114
|
+
interface SourceMapping {
|
|
115
|
+
generatedLine: number;
|
|
116
|
+
generatedColumn: number;
|
|
117
|
+
originalSource: string;
|
|
118
|
+
originalLine: number;
|
|
119
|
+
originalColumn: number;
|
|
120
|
+
}
|
|
121
|
+
interface SourceOrigin {
|
|
122
|
+
name: string | undefined;
|
|
123
|
+
fileName: string;
|
|
124
|
+
lineNumber: number;
|
|
125
|
+
columnNumber: number;
|
|
126
|
+
}
|
|
127
|
+
class SourceMap {
|
|
128
|
+
constructor(payload: SourceMapPayload, options?: SourceMapConstructorOptions);
|
|
129
|
+
readonly payload: SourceMapPayload;
|
|
130
|
+
findEntry(lineOffset: number, columnOffset: number): SourceMapping | {};
|
|
131
|
+
findOrigin(lineNumber: number, columnNumber: number): SourceOrigin | {};
|
|
132
|
+
}
|
|
133
|
+
function runMain(main?: string): void;
|
|
134
|
+
function wrap(script: string): string;
|
|
135
|
+
}
|
|
136
|
+
global {
|
|
137
|
+
namespace NodeJS {
|
|
138
|
+
interface Module {
|
|
139
|
+
children: Module[];
|
|
140
|
+
exports: any;
|
|
141
|
+
filename: string;
|
|
142
|
+
id: string;
|
|
143
|
+
isPreloading: boolean;
|
|
144
|
+
loaded: boolean;
|
|
145
|
+
parent: Module | null | undefined;
|
|
146
|
+
path: string;
|
|
147
|
+
paths: string[];
|
|
148
|
+
require(id: string): any;
|
|
149
|
+
}
|
|
150
|
+
interface Require {
|
|
151
|
+
(id: string): any;
|
|
152
|
+
cache: Dict<Module>;
|
|
153
|
+
extensions: RequireExtensions;
|
|
154
|
+
main: Module | undefined;
|
|
155
|
+
resolve: RequireResolve;
|
|
156
|
+
}
|
|
157
|
+
interface RequireExtensions extends Dict<(module: Module, filename: string) => any> {
|
|
158
|
+
".js": (module: Module, filename: string) => any;
|
|
159
|
+
".json": (module: Module, filename: string) => any;
|
|
160
|
+
".node": (module: Module, filename: string) => any;
|
|
161
|
+
}
|
|
162
|
+
interface RequireResolveOptions {
|
|
163
|
+
paths?: string[] | undefined;
|
|
164
|
+
}
|
|
165
|
+
interface RequireResolve {
|
|
166
|
+
(request: string, options?: RequireResolveOptions): string;
|
|
167
|
+
paths(request: string): string[] | null;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
var __dirname: string;
|
|
171
|
+
var __filename: string;
|
|
172
|
+
var exports: NodeJS.Module["exports"];
|
|
173
|
+
var module: NodeJS.Module;
|
|
174
|
+
var require: NodeJS.Require;
|
|
175
|
+
interface NodeModule extends NodeJS.Module {
|
|
176
|
+
}
|
|
177
|
+
interface NodeRequire extends NodeJS.Require {
|
|
178
|
+
}
|
|
179
|
+
interface RequireResolve extends NodeJS.RequireResolve {
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
export = Module;
|
|
183
|
+
}
|
|
184
|
+
declare module "module" {
|
|
185
|
+
import module = require("node:module");
|
|
186
|
+
export = module;
|
|
187
|
+
}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
declare module "node:net" {
|
|
2
|
+
import { NonSharedBuffer } from "node:buffer";
|
|
3
|
+
import * as dns from "node:dns";
|
|
4
|
+
import { Abortable, EventEmitter, InternalEventEmitter } from "node:events";
|
|
5
|
+
import * as stream from "node:stream";
|
|
6
|
+
type LookupFunction = (hostname: string, options: dns.LookupOptions, callback: (err: NodeJS.ErrnoException | null, address: string | dns.LookupAddress[], family?: number) => void) => void;
|
|
7
|
+
interface AddressInfo {
|
|
8
|
+
address: string;
|
|
9
|
+
family: string;
|
|
10
|
+
port: number;
|
|
11
|
+
}
|
|
12
|
+
interface SocketConstructorOpts {
|
|
13
|
+
fd?: number | undefined;
|
|
14
|
+
allowHalfOpen?: boolean | undefined;
|
|
15
|
+
onread?: OnReadOpts | undefined;
|
|
16
|
+
readable?: boolean | undefined;
|
|
17
|
+
writable?: boolean | undefined;
|
|
18
|
+
signal?: AbortSignal | undefined;
|
|
19
|
+
noDelay?: boolean | undefined;
|
|
20
|
+
keepAlive?: boolean | undefined;
|
|
21
|
+
keepAliveInitialDelay?: number | undefined;
|
|
22
|
+
blockList?: BlockList | undefined;
|
|
23
|
+
typeOfService?: number | undefined;
|
|
24
|
+
}
|
|
25
|
+
interface OnReadOpts {
|
|
26
|
+
buffer: Uint8Array | (() => Uint8Array);
|
|
27
|
+
callback(bytesWritten: number, buffer: Uint8Array): boolean;
|
|
28
|
+
}
|
|
29
|
+
interface TcpSocketConnectOpts {
|
|
30
|
+
port: number;
|
|
31
|
+
host?: string | undefined;
|
|
32
|
+
localAddress?: string | undefined;
|
|
33
|
+
localPort?: number | undefined;
|
|
34
|
+
hints?: number | undefined;
|
|
35
|
+
family?: number | undefined;
|
|
36
|
+
lookup?: LookupFunction | undefined;
|
|
37
|
+
autoSelectFamily?: boolean | undefined;
|
|
38
|
+
autoSelectFamilyAttemptTimeout?: number | undefined;
|
|
39
|
+
}
|
|
40
|
+
interface IpcSocketConnectOpts {
|
|
41
|
+
path: string;
|
|
42
|
+
}
|
|
43
|
+
type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts;
|
|
44
|
+
type SocketReadyState = "opening" | "open" | "readOnly" | "writeOnly" | "closed";
|
|
45
|
+
interface SocketEventMap extends Omit<stream.DuplexEventMap, "close"> {
|
|
46
|
+
"close": [
|
|
47
|
+
hadError: boolean
|
|
48
|
+
];
|
|
49
|
+
"connect": [
|
|
50
|
+
];
|
|
51
|
+
"connectionAttempt": [
|
|
52
|
+
ip: string,
|
|
53
|
+
port: number,
|
|
54
|
+
family: number
|
|
55
|
+
];
|
|
56
|
+
"connectionAttemptFailed": [
|
|
57
|
+
ip: string,
|
|
58
|
+
port: number,
|
|
59
|
+
family: number,
|
|
60
|
+
error: Error
|
|
61
|
+
];
|
|
62
|
+
"connectionAttemptTimeout": [
|
|
63
|
+
ip: string,
|
|
64
|
+
port: number,
|
|
65
|
+
family: number
|
|
66
|
+
];
|
|
67
|
+
"data": [
|
|
68
|
+
data: string | NonSharedBuffer
|
|
69
|
+
];
|
|
70
|
+
"lookup": [
|
|
71
|
+
err: Error | null,
|
|
72
|
+
address: string,
|
|
73
|
+
family: number | null,
|
|
74
|
+
host: string
|
|
75
|
+
];
|
|
76
|
+
"ready": [
|
|
77
|
+
];
|
|
78
|
+
"timeout": [
|
|
79
|
+
];
|
|
80
|
+
}
|
|
81
|
+
class Socket extends stream.Duplex {
|
|
82
|
+
constructor(options?: SocketConstructorOpts);
|
|
83
|
+
destroySoon(): void;
|
|
84
|
+
write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
|
|
85
|
+
write(str: Uint8Array | string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
|
|
86
|
+
connect(options: SocketConnectOpts, connectionListener?: () => void): this;
|
|
87
|
+
connect(port: number, host: string, connectionListener?: () => void): this;
|
|
88
|
+
connect(port: number, connectionListener?: () => void): this;
|
|
89
|
+
connect(path: string, connectionListener?: () => void): this;
|
|
90
|
+
setEncoding(encoding?: BufferEncoding): this;
|
|
91
|
+
pause(): this;
|
|
92
|
+
resetAndDestroy(): this;
|
|
93
|
+
resume(): this;
|
|
94
|
+
setTimeout(timeout: number, callback?: () => void): this;
|
|
95
|
+
setNoDelay(noDelay?: boolean): this;
|
|
96
|
+
setKeepAlive(enable?: boolean, initialDelay?: number): this;
|
|
97
|
+
getTypeOfService(): number;
|
|
98
|
+
setTypeOfService(tos: number): this;
|
|
99
|
+
address(): AddressInfo | {};
|
|
100
|
+
unref(): this;
|
|
101
|
+
ref(): this;
|
|
102
|
+
readonly autoSelectFamilyAttemptedAddresses: string[];
|
|
103
|
+
readonly bufferSize: number;
|
|
104
|
+
readonly bytesRead: number;
|
|
105
|
+
readonly bytesWritten: number;
|
|
106
|
+
readonly connecting: boolean;
|
|
107
|
+
readonly pending: boolean;
|
|
108
|
+
readonly destroyed: boolean;
|
|
109
|
+
readonly localAddress?: string;
|
|
110
|
+
readonly localPort?: number;
|
|
111
|
+
readonly localFamily?: string;
|
|
112
|
+
readonly readyState: SocketReadyState;
|
|
113
|
+
readonly remoteAddress: string | undefined;
|
|
114
|
+
readonly remoteFamily: string | undefined;
|
|
115
|
+
readonly remotePort: number | undefined;
|
|
116
|
+
readonly timeout?: number;
|
|
117
|
+
end(callback?: () => void): this;
|
|
118
|
+
end(buffer: Uint8Array | string, callback?: () => void): this;
|
|
119
|
+
end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): this;
|
|
120
|
+
addListener<E extends keyof SocketEventMap>(eventName: E, listener: (...args: SocketEventMap[E]) => void): this;
|
|
121
|
+
addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
122
|
+
emit<E extends keyof SocketEventMap>(eventName: E, ...args: SocketEventMap[E]): boolean;
|
|
123
|
+
emit(eventName: string | symbol, ...args: any[]): boolean;
|
|
124
|
+
listenerCount<E extends keyof SocketEventMap>(eventName: E, listener?: (...args: SocketEventMap[E]) => void): number;
|
|
125
|
+
listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
|
|
126
|
+
listeners<E extends keyof SocketEventMap>(eventName: E): ((...args: SocketEventMap[E]) => void)[];
|
|
127
|
+
listeners(eventName: string | symbol): ((...args: any[]) => void)[];
|
|
128
|
+
off<E extends keyof SocketEventMap>(eventName: E, listener: (...args: SocketEventMap[E]) => void): this;
|
|
129
|
+
off(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
130
|
+
on<E extends keyof SocketEventMap>(eventName: E, listener: (...args: SocketEventMap[E]) => void): this;
|
|
131
|
+
on(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
132
|
+
once<E extends keyof SocketEventMap>(eventName: E, listener: (...args: SocketEventMap[E]) => void): this;
|
|
133
|
+
once(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
134
|
+
prependListener<E extends keyof SocketEventMap>(eventName: E, listener: (...args: SocketEventMap[E]) => void): this;
|
|
135
|
+
prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
136
|
+
prependOnceListener<E extends keyof SocketEventMap>(eventName: E, listener: (...args: SocketEventMap[E]) => void): this;
|
|
137
|
+
prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
138
|
+
rawListeners<E extends keyof SocketEventMap>(eventName: E): ((...args: SocketEventMap[E]) => void)[];
|
|
139
|
+
rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
|
|
140
|
+
removeAllListeners<E extends keyof SocketEventMap>(eventName?: E): this;
|
|
141
|
+
removeAllListeners(eventName?: string | symbol): this;
|
|
142
|
+
removeListener<E extends keyof SocketEventMap>(eventName: E, listener: (...args: SocketEventMap[E]) => void): this;
|
|
143
|
+
removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
144
|
+
}
|
|
145
|
+
interface ListenOptions extends Abortable {
|
|
146
|
+
backlog?: number | undefined;
|
|
147
|
+
exclusive?: boolean | undefined;
|
|
148
|
+
host?: string | undefined;
|
|
149
|
+
ipv6Only?: boolean | undefined;
|
|
150
|
+
reusePort?: boolean | undefined;
|
|
151
|
+
path?: string | undefined;
|
|
152
|
+
port?: number | undefined;
|
|
153
|
+
readableAll?: boolean | undefined;
|
|
154
|
+
writableAll?: boolean | undefined;
|
|
155
|
+
}
|
|
156
|
+
interface ServerOpts {
|
|
157
|
+
allowHalfOpen?: boolean | undefined;
|
|
158
|
+
pauseOnConnect?: boolean | undefined;
|
|
159
|
+
noDelay?: boolean | undefined;
|
|
160
|
+
keepAlive?: boolean | undefined;
|
|
161
|
+
keepAliveInitialDelay?: number | undefined;
|
|
162
|
+
highWaterMark?: number | undefined;
|
|
163
|
+
blockList?: BlockList | undefined;
|
|
164
|
+
}
|
|
165
|
+
interface DropArgument {
|
|
166
|
+
localAddress?: string;
|
|
167
|
+
localPort?: number;
|
|
168
|
+
localFamily?: string;
|
|
169
|
+
remoteAddress?: string;
|
|
170
|
+
remotePort?: number;
|
|
171
|
+
remoteFamily?: string;
|
|
172
|
+
}
|
|
173
|
+
interface ServerEventMap {
|
|
174
|
+
"close": [
|
|
175
|
+
];
|
|
176
|
+
"connection": [
|
|
177
|
+
socket: Socket
|
|
178
|
+
];
|
|
179
|
+
"error": [
|
|
180
|
+
err: Error
|
|
181
|
+
];
|
|
182
|
+
"listening": [
|
|
183
|
+
];
|
|
184
|
+
"drop": [
|
|
185
|
+
data?: DropArgument
|
|
186
|
+
];
|
|
187
|
+
}
|
|
188
|
+
class Server implements EventEmitter {
|
|
189
|
+
constructor(connectionListener?: (socket: Socket) => void);
|
|
190
|
+
constructor(options?: ServerOpts, connectionListener?: (socket: Socket) => void);
|
|
191
|
+
listen(port?: number, hostname?: string, backlog?: number, listeningListener?: () => void): this;
|
|
192
|
+
listen(port?: number, hostname?: string, listeningListener?: () => void): this;
|
|
193
|
+
listen(port?: number, backlog?: number, listeningListener?: () => void): this;
|
|
194
|
+
listen(port?: number, listeningListener?: () => void): this;
|
|
195
|
+
listen(path: string, backlog?: number, listeningListener?: () => void): this;
|
|
196
|
+
listen(path: string, listeningListener?: () => void): this;
|
|
197
|
+
listen(options: ListenOptions, listeningListener?: () => void): this;
|
|
198
|
+
listen(handle: any, backlog?: number, listeningListener?: () => void): this;
|
|
199
|
+
listen(handle: any, listeningListener?: () => void): this;
|
|
200
|
+
close(callback?: (err?: Error) => void): this;
|
|
201
|
+
address(): AddressInfo | string | null;
|
|
202
|
+
getConnections(cb: (error: Error | null, count: number) => void): this;
|
|
203
|
+
ref(): this;
|
|
204
|
+
unref(): this;
|
|
205
|
+
maxConnections: number;
|
|
206
|
+
connections: number;
|
|
207
|
+
readonly listening: boolean;
|
|
208
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
209
|
+
}
|
|
210
|
+
interface Server extends InternalEventEmitter<ServerEventMap> {
|
|
211
|
+
}
|
|
212
|
+
type IPVersion = "ipv4" | "ipv6";
|
|
213
|
+
class BlockList {
|
|
214
|
+
addAddress(address: string, type?: IPVersion): void;
|
|
215
|
+
addAddress(address: SocketAddress): void;
|
|
216
|
+
addRange(start: string, end: string, type?: IPVersion): void;
|
|
217
|
+
addRange(start: SocketAddress, end: SocketAddress): void;
|
|
218
|
+
addSubnet(net: SocketAddress, prefix: number): void;
|
|
219
|
+
addSubnet(net: string, prefix: number, type?: IPVersion): void;
|
|
220
|
+
check(address: SocketAddress): boolean;
|
|
221
|
+
check(address: string, type?: IPVersion): boolean;
|
|
222
|
+
rules: readonly string[];
|
|
223
|
+
static isBlockList(value: unknown): value is BlockList;
|
|
224
|
+
fromJSON(data: string | readonly string[]): void;
|
|
225
|
+
toJSON(): readonly string[];
|
|
226
|
+
}
|
|
227
|
+
interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts {
|
|
228
|
+
timeout?: number | undefined;
|
|
229
|
+
}
|
|
230
|
+
interface IpcNetConnectOpts extends IpcSocketConnectOpts, SocketConstructorOpts {
|
|
231
|
+
timeout?: number | undefined;
|
|
232
|
+
}
|
|
233
|
+
type NetConnectOpts = TcpNetConnectOpts | IpcNetConnectOpts;
|
|
234
|
+
function createServer(connectionListener?: (socket: Socket) => void): Server;
|
|
235
|
+
function createServer(options?: ServerOpts, connectionListener?: (socket: Socket) => void): Server;
|
|
236
|
+
function connect(options: NetConnectOpts, connectionListener?: () => void): Socket;
|
|
237
|
+
function connect(port: number, host?: string, connectionListener?: () => void): Socket;
|
|
238
|
+
function connect(path: string, connectionListener?: () => void): Socket;
|
|
239
|
+
function createConnection(options: NetConnectOpts, connectionListener?: () => void): Socket;
|
|
240
|
+
function createConnection(port: number, host?: string, connectionListener?: () => void): Socket;
|
|
241
|
+
function createConnection(path: string, connectionListener?: () => void): Socket;
|
|
242
|
+
function getDefaultAutoSelectFamily(): boolean;
|
|
243
|
+
function setDefaultAutoSelectFamily(value: boolean): void;
|
|
244
|
+
function getDefaultAutoSelectFamilyAttemptTimeout(): number;
|
|
245
|
+
function setDefaultAutoSelectFamilyAttemptTimeout(value: number): void;
|
|
246
|
+
function isIP(input: string): number;
|
|
247
|
+
function isIPv4(input: string): boolean;
|
|
248
|
+
function isIPv6(input: string): boolean;
|
|
249
|
+
interface SocketAddressInitOptions {
|
|
250
|
+
address?: string | undefined;
|
|
251
|
+
family?: IPVersion | undefined;
|
|
252
|
+
flowlabel?: number | undefined;
|
|
253
|
+
port?: number | undefined;
|
|
254
|
+
}
|
|
255
|
+
class SocketAddress {
|
|
256
|
+
constructor(options: SocketAddressInitOptions);
|
|
257
|
+
readonly address: string;
|
|
258
|
+
readonly family: IPVersion;
|
|
259
|
+
readonly port: number;
|
|
260
|
+
readonly flowlabel: number;
|
|
261
|
+
static parse(input: string): SocketAddress | undefined;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
declare module "net" {
|
|
265
|
+
export * from "node:net";
|
|
266
|
+
}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
declare module "node:os" {
|
|
2
|
+
import { NonSharedBuffer } from "buffer";
|
|
3
|
+
interface CpuInfo {
|
|
4
|
+
model: string;
|
|
5
|
+
speed: number;
|
|
6
|
+
times: {
|
|
7
|
+
user: number;
|
|
8
|
+
nice: number;
|
|
9
|
+
sys: number;
|
|
10
|
+
idle: number;
|
|
11
|
+
irq: number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
interface NetworkInterfaceBase {
|
|
15
|
+
address: string;
|
|
16
|
+
netmask: string;
|
|
17
|
+
mac: string;
|
|
18
|
+
internal: boolean;
|
|
19
|
+
cidr: string | null;
|
|
20
|
+
scopeid?: number;
|
|
21
|
+
}
|
|
22
|
+
interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase {
|
|
23
|
+
family: "IPv4";
|
|
24
|
+
}
|
|
25
|
+
interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase {
|
|
26
|
+
family: "IPv6";
|
|
27
|
+
scopeid: number;
|
|
28
|
+
}
|
|
29
|
+
interface UserInfo<T> {
|
|
30
|
+
username: T;
|
|
31
|
+
uid: number;
|
|
32
|
+
gid: number;
|
|
33
|
+
shell: T | null;
|
|
34
|
+
homedir: T;
|
|
35
|
+
}
|
|
36
|
+
type NetworkInterfaceInfo = NetworkInterfaceInfoIPv4 | NetworkInterfaceInfoIPv6;
|
|
37
|
+
function hostname(): string;
|
|
38
|
+
function loadavg(): number[];
|
|
39
|
+
function uptime(): number;
|
|
40
|
+
function freemem(): number;
|
|
41
|
+
function totalmem(): number;
|
|
42
|
+
function cpus(): CpuInfo[];
|
|
43
|
+
function availableParallelism(): number;
|
|
44
|
+
function type(): string;
|
|
45
|
+
function release(): string;
|
|
46
|
+
function networkInterfaces(): NodeJS.Dict<NetworkInterfaceInfo[]>;
|
|
47
|
+
function homedir(): string;
|
|
48
|
+
interface UserInfoOptions {
|
|
49
|
+
encoding?: BufferEncoding | "buffer" | undefined;
|
|
50
|
+
}
|
|
51
|
+
interface UserInfoOptionsWithBufferEncoding extends UserInfoOptions {
|
|
52
|
+
encoding: "buffer";
|
|
53
|
+
}
|
|
54
|
+
interface UserInfoOptionsWithStringEncoding extends UserInfoOptions {
|
|
55
|
+
encoding?: BufferEncoding | undefined;
|
|
56
|
+
}
|
|
57
|
+
function userInfo(options?: UserInfoOptionsWithStringEncoding): UserInfo<string>;
|
|
58
|
+
function userInfo(options: UserInfoOptionsWithBufferEncoding): UserInfo<NonSharedBuffer>;
|
|
59
|
+
function userInfo(options: UserInfoOptions): UserInfo<string | NonSharedBuffer>;
|
|
60
|
+
type SignalConstants = {
|
|
61
|
+
[key in NodeJS.Signals]: number;
|
|
62
|
+
};
|
|
63
|
+
namespace constants {
|
|
64
|
+
const UV_UDP_REUSEADDR: number;
|
|
65
|
+
namespace signals { }
|
|
66
|
+
const signals: SignalConstants;
|
|
67
|
+
namespace errno {
|
|
68
|
+
const E2BIG: number;
|
|
69
|
+
const EACCES: number;
|
|
70
|
+
const EADDRINUSE: number;
|
|
71
|
+
const EADDRNOTAVAIL: number;
|
|
72
|
+
const EAFNOSUPPORT: number;
|
|
73
|
+
const EAGAIN: number;
|
|
74
|
+
const EALREADY: number;
|
|
75
|
+
const EBADF: number;
|
|
76
|
+
const EBADMSG: number;
|
|
77
|
+
const EBUSY: number;
|
|
78
|
+
const ECANCELED: number;
|
|
79
|
+
const ECHILD: number;
|
|
80
|
+
const ECONNABORTED: number;
|
|
81
|
+
const ECONNREFUSED: number;
|
|
82
|
+
const ECONNRESET: number;
|
|
83
|
+
const EDEADLK: number;
|
|
84
|
+
const EDESTADDRREQ: number;
|
|
85
|
+
const EDOM: number;
|
|
86
|
+
const EDQUOT: number;
|
|
87
|
+
const EEXIST: number;
|
|
88
|
+
const EFAULT: number;
|
|
89
|
+
const EFBIG: number;
|
|
90
|
+
const EHOSTUNREACH: number;
|
|
91
|
+
const EIDRM: number;
|
|
92
|
+
const EILSEQ: number;
|
|
93
|
+
const EINPROGRESS: number;
|
|
94
|
+
const EINTR: number;
|
|
95
|
+
const EINVAL: number;
|
|
96
|
+
const EIO: number;
|
|
97
|
+
const EISCONN: number;
|
|
98
|
+
const EISDIR: number;
|
|
99
|
+
const ELOOP: number;
|
|
100
|
+
const EMFILE: number;
|
|
101
|
+
const EMLINK: number;
|
|
102
|
+
const EMSGSIZE: number;
|
|
103
|
+
const EMULTIHOP: number;
|
|
104
|
+
const ENAMETOOLONG: number;
|
|
105
|
+
const ENETDOWN: number;
|
|
106
|
+
const ENETRESET: number;
|
|
107
|
+
const ENETUNREACH: number;
|
|
108
|
+
const ENFILE: number;
|
|
109
|
+
const ENOBUFS: number;
|
|
110
|
+
const ENODATA: number;
|
|
111
|
+
const ENODEV: number;
|
|
112
|
+
const ENOENT: number;
|
|
113
|
+
const ENOEXEC: number;
|
|
114
|
+
const ENOLCK: number;
|
|
115
|
+
const ENOLINK: number;
|
|
116
|
+
const ENOMEM: number;
|
|
117
|
+
const ENOMSG: number;
|
|
118
|
+
const ENOPROTOOPT: number;
|
|
119
|
+
const ENOSPC: number;
|
|
120
|
+
const ENOSR: number;
|
|
121
|
+
const ENOSTR: number;
|
|
122
|
+
const ENOSYS: number;
|
|
123
|
+
const ENOTCONN: number;
|
|
124
|
+
const ENOTDIR: number;
|
|
125
|
+
const ENOTEMPTY: number;
|
|
126
|
+
const ENOTSOCK: number;
|
|
127
|
+
const ENOTSUP: number;
|
|
128
|
+
const ENOTTY: number;
|
|
129
|
+
const ENXIO: number;
|
|
130
|
+
const EOPNOTSUPP: number;
|
|
131
|
+
const EOVERFLOW: number;
|
|
132
|
+
const EPERM: number;
|
|
133
|
+
const EPIPE: number;
|
|
134
|
+
const EPROTO: number;
|
|
135
|
+
const EPROTONOSUPPORT: number;
|
|
136
|
+
const EPROTOTYPE: number;
|
|
137
|
+
const ERANGE: number;
|
|
138
|
+
const EROFS: number;
|
|
139
|
+
const ESPIPE: number;
|
|
140
|
+
const ESRCH: number;
|
|
141
|
+
const ESTALE: number;
|
|
142
|
+
const ETIME: number;
|
|
143
|
+
const ETIMEDOUT: number;
|
|
144
|
+
const ETXTBSY: number;
|
|
145
|
+
const EWOULDBLOCK: number;
|
|
146
|
+
const EXDEV: number;
|
|
147
|
+
const WSAEINTR: number;
|
|
148
|
+
const WSAEBADF: number;
|
|
149
|
+
const WSAEACCES: number;
|
|
150
|
+
const WSAEFAULT: number;
|
|
151
|
+
const WSAEINVAL: number;
|
|
152
|
+
const WSAEMFILE: number;
|
|
153
|
+
const WSAEWOULDBLOCK: number;
|
|
154
|
+
const WSAEINPROGRESS: number;
|
|
155
|
+
const WSAEALREADY: number;
|
|
156
|
+
const WSAENOTSOCK: number;
|
|
157
|
+
const WSAEDESTADDRREQ: number;
|
|
158
|
+
const WSAEMSGSIZE: number;
|
|
159
|
+
const WSAEPROTOTYPE: number;
|
|
160
|
+
const WSAENOPROTOOPT: number;
|
|
161
|
+
const WSAEPROTONOSUPPORT: number;
|
|
162
|
+
const WSAESOCKTNOSUPPORT: number;
|
|
163
|
+
const WSAEOPNOTSUPP: number;
|
|
164
|
+
const WSAEPFNOSUPPORT: number;
|
|
165
|
+
const WSAEAFNOSUPPORT: number;
|
|
166
|
+
const WSAEADDRINUSE: number;
|
|
167
|
+
const WSAEADDRNOTAVAIL: number;
|
|
168
|
+
const WSAENETDOWN: number;
|
|
169
|
+
const WSAENETUNREACH: number;
|
|
170
|
+
const WSAENETRESET: number;
|
|
171
|
+
const WSAECONNABORTED: number;
|
|
172
|
+
const WSAECONNRESET: number;
|
|
173
|
+
const WSAENOBUFS: number;
|
|
174
|
+
const WSAEISCONN: number;
|
|
175
|
+
const WSAENOTCONN: number;
|
|
176
|
+
const WSAESHUTDOWN: number;
|
|
177
|
+
const WSAETOOMANYREFS: number;
|
|
178
|
+
const WSAETIMEDOUT: number;
|
|
179
|
+
const WSAECONNREFUSED: number;
|
|
180
|
+
const WSAELOOP: number;
|
|
181
|
+
const WSAENAMETOOLONG: number;
|
|
182
|
+
const WSAEHOSTDOWN: number;
|
|
183
|
+
const WSAEHOSTUNREACH: number;
|
|
184
|
+
const WSAENOTEMPTY: number;
|
|
185
|
+
const WSAEPROCLIM: number;
|
|
186
|
+
const WSAEUSERS: number;
|
|
187
|
+
const WSAEDQUOT: number;
|
|
188
|
+
const WSAESTALE: number;
|
|
189
|
+
const WSAEREMOTE: number;
|
|
190
|
+
const WSASYSNOTREADY: number;
|
|
191
|
+
const WSAVERNOTSUPPORTED: number;
|
|
192
|
+
const WSANOTINITIALISED: number;
|
|
193
|
+
const WSAEDISCON: number;
|
|
194
|
+
const WSAENOMORE: number;
|
|
195
|
+
const WSAECANCELLED: number;
|
|
196
|
+
const WSAEINVALIDPROCTABLE: number;
|
|
197
|
+
const WSAEINVALIDPROVIDER: number;
|
|
198
|
+
const WSAEPROVIDERFAILEDINIT: number;
|
|
199
|
+
const WSASYSCALLFAILURE: number;
|
|
200
|
+
const WSASERVICE_NOT_FOUND: number;
|
|
201
|
+
const WSATYPE_NOT_FOUND: number;
|
|
202
|
+
const WSA_E_NO_MORE: number;
|
|
203
|
+
const WSA_E_CANCELLED: number;
|
|
204
|
+
const WSAEREFUSED: number;
|
|
205
|
+
}
|
|
206
|
+
namespace dlopen {
|
|
207
|
+
const RTLD_LAZY: number;
|
|
208
|
+
const RTLD_NOW: number;
|
|
209
|
+
const RTLD_GLOBAL: number;
|
|
210
|
+
const RTLD_LOCAL: number;
|
|
211
|
+
const RTLD_DEEPBIND: number;
|
|
212
|
+
}
|
|
213
|
+
namespace priority {
|
|
214
|
+
const PRIORITY_LOW: number;
|
|
215
|
+
const PRIORITY_BELOW_NORMAL: number;
|
|
216
|
+
const PRIORITY_NORMAL: number;
|
|
217
|
+
const PRIORITY_ABOVE_NORMAL: number;
|
|
218
|
+
const PRIORITY_HIGH: number;
|
|
219
|
+
const PRIORITY_HIGHEST: number;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
const devNull: string;
|
|
223
|
+
const EOL: string;
|
|
224
|
+
function arch(): NodeJS.Architecture;
|
|
225
|
+
function version(): string;
|
|
226
|
+
function platform(): NodeJS.Platform;
|
|
227
|
+
function machine(): string;
|
|
228
|
+
function tmpdir(): string;
|
|
229
|
+
function endianness(): "BE" | "LE";
|
|
230
|
+
function getPriority(pid?: number): number;
|
|
231
|
+
function setPriority(priority: number): void;
|
|
232
|
+
function setPriority(pid: number, priority: number): void;
|
|
233
|
+
}
|
|
234
|
+
declare module "os" {
|
|
235
|
+
export * from "node:os";
|
|
236
|
+
}
|