@indiciaosint/sdk 0.0.1 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/README.md +5 -9
  2. package/esm/lib/config.d.ts +2 -2
  3. package/esm/lib/config.js +2 -2
  4. package/jsr.json +1 -1
  5. package/package.json +14 -7
  6. package/src/lib/config.ts +2 -2
  7. package/.devcontainer/README.md +0 -30
  8. package/docs/sdks/indicia/README.md +0 -3053
  9. package/examples/README.md +0 -31
  10. package/examples/node_modules/@esbuild/darwin-arm64/README.md +0 -3
  11. package/examples/node_modules/@types/node/LICENSE +0 -21
  12. package/examples/node_modules/@types/node/README.md +0 -15
  13. package/examples/node_modules/@types/node/assert/strict.d.ts +0 -8
  14. package/examples/node_modules/@types/node/assert.d.ts +0 -1062
  15. package/examples/node_modules/@types/node/async_hooks.d.ts +0 -605
  16. package/examples/node_modules/@types/node/buffer.buffer.d.ts +0 -471
  17. package/examples/node_modules/@types/node/buffer.d.ts +0 -1936
  18. package/examples/node_modules/@types/node/child_process.d.ts +0 -1475
  19. package/examples/node_modules/@types/node/cluster.d.ts +0 -577
  20. package/examples/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  21. package/examples/node_modules/@types/node/compatibility/index.d.ts +0 -9
  22. package/examples/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  23. package/examples/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  24. package/examples/node_modules/@types/node/console.d.ts +0 -452
  25. package/examples/node_modules/@types/node/constants.d.ts +0 -21
  26. package/examples/node_modules/@types/node/crypto.d.ts +0 -4590
  27. package/examples/node_modules/@types/node/dgram.d.ts +0 -597
  28. package/examples/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
  29. package/examples/node_modules/@types/node/dns/promises.d.ts +0 -479
  30. package/examples/node_modules/@types/node/dns.d.ts +0 -871
  31. package/examples/node_modules/@types/node/domain.d.ts +0 -170
  32. package/examples/node_modules/@types/node/events.d.ts +0 -977
  33. package/examples/node_modules/@types/node/fs/promises.d.ts +0 -1270
  34. package/examples/node_modules/@types/node/fs.d.ts +0 -4375
  35. package/examples/node_modules/@types/node/globals.d.ts +0 -172
  36. package/examples/node_modules/@types/node/globals.typedarray.d.ts +0 -38
  37. package/examples/node_modules/@types/node/http.d.ts +0 -2049
  38. package/examples/node_modules/@types/node/http2.d.ts +0 -2712
  39. package/examples/node_modules/@types/node/https.d.ts +0 -578
  40. package/examples/node_modules/@types/node/index.d.ts +0 -93
  41. package/examples/node_modules/@types/node/inspector.generated.d.ts +0 -3966
  42. package/examples/node_modules/@types/node/module.d.ts +0 -539
  43. package/examples/node_modules/@types/node/net.d.ts +0 -1031
  44. package/examples/node_modules/@types/node/os.d.ts +0 -506
  45. package/examples/node_modules/@types/node/path.d.ts +0 -200
  46. package/examples/node_modules/@types/node/perf_hooks.d.ts +0 -961
  47. package/examples/node_modules/@types/node/process.d.ts +0 -1961
  48. package/examples/node_modules/@types/node/punycode.d.ts +0 -117
  49. package/examples/node_modules/@types/node/querystring.d.ts +0 -152
  50. package/examples/node_modules/@types/node/readline/promises.d.ts +0 -162
  51. package/examples/node_modules/@types/node/readline.d.ts +0 -589
  52. package/examples/node_modules/@types/node/repl.d.ts +0 -430
  53. package/examples/node_modules/@types/node/sea.d.ts +0 -153
  54. package/examples/node_modules/@types/node/stream/consumers.d.ts +0 -38
  55. package/examples/node_modules/@types/node/stream/promises.d.ts +0 -90
  56. package/examples/node_modules/@types/node/stream/web.d.ts +0 -533
  57. package/examples/node_modules/@types/node/stream.d.ts +0 -1698
  58. package/examples/node_modules/@types/node/string_decoder.d.ts +0 -67
  59. package/examples/node_modules/@types/node/test.d.ts +0 -1787
  60. package/examples/node_modules/@types/node/timers/promises.d.ts +0 -108
  61. package/examples/node_modules/@types/node/timers.d.ts +0 -286
  62. package/examples/node_modules/@types/node/tls.d.ts +0 -1259
  63. package/examples/node_modules/@types/node/trace_events.d.ts +0 -197
  64. package/examples/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
  65. package/examples/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
  66. package/examples/node_modules/@types/node/ts5.6/index.d.ts +0 -93
  67. package/examples/node_modules/@types/node/tty.d.ts +0 -208
  68. package/examples/node_modules/@types/node/url.d.ts +0 -964
  69. package/examples/node_modules/@types/node/util.d.ts +0 -2331
  70. package/examples/node_modules/@types/node/v8.d.ts +0 -809
  71. package/examples/node_modules/@types/node/vm.d.ts +0 -1001
  72. package/examples/node_modules/@types/node/wasi.d.ts +0 -181
  73. package/examples/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
  74. package/examples/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  75. package/examples/node_modules/@types/node/web-globals/events.d.ts +0 -97
  76. package/examples/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
  77. package/examples/node_modules/@types/node/worker_threads.d.ts +0 -715
  78. package/examples/node_modules/@types/node/zlib.d.ts +0 -598
  79. package/examples/node_modules/dotenv/LICENSE +0 -23
  80. package/examples/node_modules/dotenv/README.md +0 -645
  81. package/examples/node_modules/dotenv/config.d.ts +0 -1
  82. package/examples/node_modules/dotenv/config.js +0 -9
  83. package/examples/node_modules/dotenv/lib/cli-options.js +0 -17
  84. package/examples/node_modules/dotenv/lib/env-options.js +0 -28
  85. package/examples/node_modules/dotenv/lib/main.d.ts +0 -162
  86. package/examples/node_modules/dotenv/lib/main.js +0 -386
  87. package/examples/node_modules/esbuild/LICENSE.md +0 -21
  88. package/examples/node_modules/esbuild/README.md +0 -3
  89. package/examples/node_modules/esbuild/install.js +0 -300
  90. package/examples/node_modules/esbuild/lib/main.d.ts +0 -716
  91. package/examples/node_modules/esbuild/lib/main.js +0 -2532
  92. package/examples/node_modules/fsevents/LICENSE +0 -22
  93. package/examples/node_modules/fsevents/README.md +0 -89
  94. package/examples/node_modules/fsevents/fsevents.d.ts +0 -46
  95. package/examples/node_modules/fsevents/fsevents.js +0 -83
  96. package/examples/node_modules/tsx/LICENSE +0 -21
  97. package/examples/node_modules/tsx/README.md +0 -32
  98. package/examples/node_modules/tsx/dist/cjs/api/index.mjs +0 -1
  99. package/examples/node_modules/tsx/dist/cjs/index.mjs +0 -1
  100. package/examples/node_modules/tsx/dist/cli.mjs +0 -55
  101. package/examples/node_modules/tsx/dist/client-D_mPDF5S.mjs +0 -1
  102. package/examples/node_modules/tsx/dist/esm/api/index.mjs +0 -1
  103. package/examples/node_modules/tsx/dist/esm/index.mjs +0 -1
  104. package/examples/node_modules/tsx/dist/get-pipe-path-_tAJyU_v.mjs +0 -1
  105. package/examples/node_modules/tsx/dist/index-XurvG3JN.mjs +0 -14
  106. package/examples/node_modules/tsx/dist/index-gbaejti9.mjs +0 -1
  107. package/examples/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +0 -3
  108. package/examples/node_modules/tsx/dist/loader.mjs +0 -1
  109. package/examples/node_modules/tsx/dist/node-features-B9BBLzwu.mjs +0 -1
  110. package/examples/node_modules/tsx/dist/package-Bj47PlGH.mjs +0 -1
  111. package/examples/node_modules/tsx/dist/patch-repl.mjs +0 -1
  112. package/examples/node_modules/tsx/dist/preflight.mjs +0 -1
  113. package/examples/node_modules/tsx/dist/register-BnTWPeIB.mjs +0 -10
  114. package/examples/node_modules/tsx/dist/register-CqMfTiWi.mjs +0 -2
  115. package/examples/node_modules/tsx/dist/repl.mjs +0 -3
  116. package/examples/node_modules/tsx/dist/require-DzmC1hVr.mjs +0 -1
  117. package/examples/node_modules/tsx/dist/suppress-warnings.mjs +0 -1
  118. package/examples/node_modules/tsx/dist/temporary-directory-BDDVQOvU.mjs +0 -1
  119. package/examples/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +0 -5
  120. package/examples/node_modules/undici-types/LICENSE +0 -21
  121. package/examples/node_modules/undici-types/README.md +0 -6
  122. package/examples/node_modules/undici-types/agent.d.ts +0 -31
  123. package/examples/node_modules/undici-types/api.d.ts +0 -43
  124. package/examples/node_modules/undici-types/balanced-pool.d.ts +0 -29
  125. package/examples/node_modules/undici-types/cache.d.ts +0 -36
  126. package/examples/node_modules/undici-types/client.d.ts +0 -108
  127. package/examples/node_modules/undici-types/connector.d.ts +0 -34
  128. package/examples/node_modules/undici-types/content-type.d.ts +0 -21
  129. package/examples/node_modules/undici-types/cookies.d.ts +0 -28
  130. package/examples/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  131. package/examples/node_modules/undici-types/dispatcher.d.ts +0 -256
  132. package/examples/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  133. package/examples/node_modules/undici-types/errors.d.ts +0 -149
  134. package/examples/node_modules/undici-types/eventsource.d.ts +0 -61
  135. package/examples/node_modules/undici-types/fetch.d.ts +0 -209
  136. package/examples/node_modules/undici-types/file.d.ts +0 -39
  137. package/examples/node_modules/undici-types/filereader.d.ts +0 -54
  138. package/examples/node_modules/undici-types/formdata.d.ts +0 -108
  139. package/examples/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  140. package/examples/node_modules/undici-types/global-origin.d.ts +0 -7
  141. package/examples/node_modules/undici-types/handlers.d.ts +0 -15
  142. package/examples/node_modules/undici-types/header.d.ts +0 -4
  143. package/examples/node_modules/undici-types/index.d.ts +0 -71
  144. package/examples/node_modules/undici-types/interceptors.d.ts +0 -17
  145. package/examples/node_modules/undici-types/mock-agent.d.ts +0 -50
  146. package/examples/node_modules/undici-types/mock-client.d.ts +0 -25
  147. package/examples/node_modules/undici-types/mock-errors.d.ts +0 -12
  148. package/examples/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  149. package/examples/node_modules/undici-types/mock-pool.d.ts +0 -25
  150. package/examples/node_modules/undici-types/patch.d.ts +0 -33
  151. package/examples/node_modules/undici-types/pool-stats.d.ts +0 -19
  152. package/examples/node_modules/undici-types/pool.d.ts +0 -39
  153. package/examples/node_modules/undici-types/proxy-agent.d.ts +0 -28
  154. package/examples/node_modules/undici-types/readable.d.ts +0 -65
  155. package/examples/node_modules/undici-types/retry-agent.d.ts +0 -8
  156. package/examples/node_modules/undici-types/retry-handler.d.ts +0 -116
  157. package/examples/node_modules/undici-types/util.d.ts +0 -18
  158. package/examples/node_modules/undici-types/webidl.d.ts +0 -228
  159. package/examples/node_modules/undici-types/websocket.d.ts +0 -150
@@ -1,506 +0,0 @@
1
- /**
2
- * The `node:os` module provides operating system-related utility methods and
3
- * properties. It can be accessed using:
4
- *
5
- * ```js
6
- * import os from 'node:os';
7
- * ```
8
- * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/os.js)
9
- */
10
- declare module "os" {
11
- import { NonSharedBuffer } from "buffer";
12
- interface CpuInfo {
13
- model: string;
14
- speed: number;
15
- times: {
16
- /** The number of milliseconds the CPU has spent in user mode. */
17
- user: number;
18
- /** The number of milliseconds the CPU has spent in nice mode. */
19
- nice: number;
20
- /** The number of milliseconds the CPU has spent in sys mode. */
21
- sys: number;
22
- /** The number of milliseconds the CPU has spent in idle mode. */
23
- idle: number;
24
- /** The number of milliseconds the CPU has spent in irq mode. */
25
- irq: number;
26
- };
27
- }
28
- interface NetworkInterfaceBase {
29
- address: string;
30
- netmask: string;
31
- mac: string;
32
- internal: boolean;
33
- cidr: string | null;
34
- scopeid?: number;
35
- }
36
- interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase {
37
- family: "IPv4";
38
- }
39
- interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase {
40
- family: "IPv6";
41
- scopeid: number;
42
- }
43
- interface UserInfo<T> {
44
- username: T;
45
- uid: number;
46
- gid: number;
47
- shell: T | null;
48
- homedir: T;
49
- }
50
- type NetworkInterfaceInfo = NetworkInterfaceInfoIPv4 | NetworkInterfaceInfoIPv6;
51
- /**
52
- * Returns the host name of the operating system as a string.
53
- * @since v0.3.3
54
- */
55
- function hostname(): string;
56
- /**
57
- * Returns an array containing the 1, 5, and 15 minute load averages.
58
- *
59
- * The load average is a measure of system activity calculated by the operating
60
- * system and expressed as a fractional number.
61
- *
62
- * The load average is a Unix-specific concept. On Windows, the return value is
63
- * always `[0, 0, 0]`.
64
- * @since v0.3.3
65
- */
66
- function loadavg(): number[];
67
- /**
68
- * Returns the system uptime in number of seconds.
69
- * @since v0.3.3
70
- */
71
- function uptime(): number;
72
- /**
73
- * Returns the amount of free system memory in bytes as an integer.
74
- * @since v0.3.3
75
- */
76
- function freemem(): number;
77
- /**
78
- * Returns the total amount of system memory in bytes as an integer.
79
- * @since v0.3.3
80
- */
81
- function totalmem(): number;
82
- /**
83
- * Returns an array of objects containing information about each logical CPU core.
84
- * The array will be empty if no CPU information is available, such as if the `/proc` file system is unavailable.
85
- *
86
- * The properties included on each object include:
87
- *
88
- * ```js
89
- * [
90
- * {
91
- * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz',
92
- * speed: 2926,
93
- * times: {
94
- * user: 252020,
95
- * nice: 0,
96
- * sys: 30340,
97
- * idle: 1070356870,
98
- * irq: 0,
99
- * },
100
- * },
101
- * {
102
- * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz',
103
- * speed: 2926,
104
- * times: {
105
- * user: 306960,
106
- * nice: 0,
107
- * sys: 26980,
108
- * idle: 1071569080,
109
- * irq: 0,
110
- * },
111
- * },
112
- * {
113
- * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz',
114
- * speed: 2926,
115
- * times: {
116
- * user: 248450,
117
- * nice: 0,
118
- * sys: 21750,
119
- * idle: 1070919370,
120
- * irq: 0,
121
- * },
122
- * },
123
- * {
124
- * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz',
125
- * speed: 2926,
126
- * times: {
127
- * user: 256880,
128
- * nice: 0,
129
- * sys: 19430,
130
- * idle: 1070905480,
131
- * irq: 20,
132
- * },
133
- * },
134
- * ]
135
- * ```
136
- *
137
- * `nice` values are POSIX-only. On Windows, the `nice` values of all processors
138
- * are always 0.
139
- *
140
- * `os.cpus().length` should not be used to calculate the amount of parallelism
141
- * available to an application. Use {@link availableParallelism} for this purpose.
142
- * @since v0.3.3
143
- */
144
- function cpus(): CpuInfo[];
145
- /**
146
- * Returns an estimate of the default amount of parallelism a program should use.
147
- * Always returns a value greater than zero.
148
- *
149
- * This function is a small wrapper about libuv's [`uv_available_parallelism()`](https://docs.libuv.org/en/v1.x/misc.html#c.uv_available_parallelism).
150
- * @since v19.4.0, v18.14.0
151
- */
152
- function availableParallelism(): number;
153
- /**
154
- * Returns the operating system name as returned by [`uname(3)`](https://linux.die.net/man/3/uname). For example, it
155
- * returns `'Linux'` on Linux, `'Darwin'` on macOS, and `'Windows_NT'` on Windows.
156
- *
157
- * See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for additional information
158
- * about the output of running [`uname(3)`](https://linux.die.net/man/3/uname) on various operating systems.
159
- * @since v0.3.3
160
- */
161
- function type(): string;
162
- /**
163
- * Returns the operating system as a string.
164
- *
165
- * On POSIX systems, the operating system release is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `GetVersionExW()` is used. See
166
- * [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information.
167
- * @since v0.3.3
168
- */
169
- function release(): string;
170
- /**
171
- * Returns an object containing network interfaces that have been assigned a
172
- * network address.
173
- *
174
- * Each key on the returned object identifies a network interface. The associated
175
- * value is an array of objects that each describe an assigned network address.
176
- *
177
- * The properties available on the assigned network address object include:
178
- *
179
- * ```js
180
- * {
181
- * lo: [
182
- * {
183
- * address: '127.0.0.1',
184
- * netmask: '255.0.0.0',
185
- * family: 'IPv4',
186
- * mac: '00:00:00:00:00:00',
187
- * internal: true,
188
- * cidr: '127.0.0.1/8'
189
- * },
190
- * {
191
- * address: '::1',
192
- * netmask: 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff',
193
- * family: 'IPv6',
194
- * mac: '00:00:00:00:00:00',
195
- * scopeid: 0,
196
- * internal: true,
197
- * cidr: '::1/128'
198
- * }
199
- * ],
200
- * eth0: [
201
- * {
202
- * address: '192.168.1.108',
203
- * netmask: '255.255.255.0',
204
- * family: 'IPv4',
205
- * mac: '01:02:03:0a:0b:0c',
206
- * internal: false,
207
- * cidr: '192.168.1.108/24'
208
- * },
209
- * {
210
- * address: 'fe80::a00:27ff:fe4e:66a1',
211
- * netmask: 'ffff:ffff:ffff:ffff::',
212
- * family: 'IPv6',
213
- * mac: '01:02:03:0a:0b:0c',
214
- * scopeid: 1,
215
- * internal: false,
216
- * cidr: 'fe80::a00:27ff:fe4e:66a1/64'
217
- * }
218
- * ]
219
- * }
220
- * ```
221
- * @since v0.6.0
222
- */
223
- function networkInterfaces(): NodeJS.Dict<NetworkInterfaceInfo[]>;
224
- /**
225
- * Returns the string path of the current user's home directory.
226
- *
227
- * On POSIX, it uses the `$HOME` environment variable if defined. Otherwise it
228
- * uses the [effective UID](https://en.wikipedia.org/wiki/User_identifier#Effective_user_ID) to look up the user's home directory.
229
- *
230
- * On Windows, it uses the `USERPROFILE` environment variable if defined.
231
- * Otherwise it uses the path to the profile directory of the current user.
232
- * @since v2.3.0
233
- */
234
- function homedir(): string;
235
- interface UserInfoOptions {
236
- encoding?: BufferEncoding | "buffer" | undefined;
237
- }
238
- interface UserInfoOptionsWithBufferEncoding extends UserInfoOptions {
239
- encoding: "buffer";
240
- }
241
- interface UserInfoOptionsWithStringEncoding extends UserInfoOptions {
242
- encoding?: BufferEncoding | undefined;
243
- }
244
- /**
245
- * Returns information about the currently effective user. On POSIX platforms,
246
- * this is typically a subset of the password file. The returned object includes
247
- * the `username`, `uid`, `gid`, `shell`, and `homedir`. On Windows, the `uid` and `gid` fields are `-1`, and `shell` is `null`.
248
- *
249
- * The value of `homedir` returned by `os.userInfo()` is provided by the operating
250
- * system. This differs from the result of `os.homedir()`, which queries
251
- * environment variables for the home directory before falling back to the
252
- * operating system response.
253
- *
254
- * Throws a [`SystemError`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-systemerror) if a user has no `username` or `homedir`.
255
- * @since v6.0.0
256
- */
257
- function userInfo(options?: UserInfoOptionsWithStringEncoding): UserInfo<string>;
258
- function userInfo(options: UserInfoOptionsWithBufferEncoding): UserInfo<NonSharedBuffer>;
259
- function userInfo(options: UserInfoOptions): UserInfo<string | NonSharedBuffer>;
260
- type SignalConstants = {
261
- [key in NodeJS.Signals]: number;
262
- };
263
- namespace constants {
264
- const UV_UDP_REUSEADDR: number;
265
- namespace signals {}
266
- const signals: SignalConstants;
267
- namespace errno {
268
- const E2BIG: number;
269
- const EACCES: number;
270
- const EADDRINUSE: number;
271
- const EADDRNOTAVAIL: number;
272
- const EAFNOSUPPORT: number;
273
- const EAGAIN: number;
274
- const EALREADY: number;
275
- const EBADF: number;
276
- const EBADMSG: number;
277
- const EBUSY: number;
278
- const ECANCELED: number;
279
- const ECHILD: number;
280
- const ECONNABORTED: number;
281
- const ECONNREFUSED: number;
282
- const ECONNRESET: number;
283
- const EDEADLK: number;
284
- const EDESTADDRREQ: number;
285
- const EDOM: number;
286
- const EDQUOT: number;
287
- const EEXIST: number;
288
- const EFAULT: number;
289
- const EFBIG: number;
290
- const EHOSTUNREACH: number;
291
- const EIDRM: number;
292
- const EILSEQ: number;
293
- const EINPROGRESS: number;
294
- const EINTR: number;
295
- const EINVAL: number;
296
- const EIO: number;
297
- const EISCONN: number;
298
- const EISDIR: number;
299
- const ELOOP: number;
300
- const EMFILE: number;
301
- const EMLINK: number;
302
- const EMSGSIZE: number;
303
- const EMULTIHOP: number;
304
- const ENAMETOOLONG: number;
305
- const ENETDOWN: number;
306
- const ENETRESET: number;
307
- const ENETUNREACH: number;
308
- const ENFILE: number;
309
- const ENOBUFS: number;
310
- const ENODATA: number;
311
- const ENODEV: number;
312
- const ENOENT: number;
313
- const ENOEXEC: number;
314
- const ENOLCK: number;
315
- const ENOLINK: number;
316
- const ENOMEM: number;
317
- const ENOMSG: number;
318
- const ENOPROTOOPT: number;
319
- const ENOSPC: number;
320
- const ENOSR: number;
321
- const ENOSTR: number;
322
- const ENOSYS: number;
323
- const ENOTCONN: number;
324
- const ENOTDIR: number;
325
- const ENOTEMPTY: number;
326
- const ENOTSOCK: number;
327
- const ENOTSUP: number;
328
- const ENOTTY: number;
329
- const ENXIO: number;
330
- const EOPNOTSUPP: number;
331
- const EOVERFLOW: number;
332
- const EPERM: number;
333
- const EPIPE: number;
334
- const EPROTO: number;
335
- const EPROTONOSUPPORT: number;
336
- const EPROTOTYPE: number;
337
- const ERANGE: number;
338
- const EROFS: number;
339
- const ESPIPE: number;
340
- const ESRCH: number;
341
- const ESTALE: number;
342
- const ETIME: number;
343
- const ETIMEDOUT: number;
344
- const ETXTBSY: number;
345
- const EWOULDBLOCK: number;
346
- const EXDEV: number;
347
- const WSAEINTR: number;
348
- const WSAEBADF: number;
349
- const WSAEACCES: number;
350
- const WSAEFAULT: number;
351
- const WSAEINVAL: number;
352
- const WSAEMFILE: number;
353
- const WSAEWOULDBLOCK: number;
354
- const WSAEINPROGRESS: number;
355
- const WSAEALREADY: number;
356
- const WSAENOTSOCK: number;
357
- const WSAEDESTADDRREQ: number;
358
- const WSAEMSGSIZE: number;
359
- const WSAEPROTOTYPE: number;
360
- const WSAENOPROTOOPT: number;
361
- const WSAEPROTONOSUPPORT: number;
362
- const WSAESOCKTNOSUPPORT: number;
363
- const WSAEOPNOTSUPP: number;
364
- const WSAEPFNOSUPPORT: number;
365
- const WSAEAFNOSUPPORT: number;
366
- const WSAEADDRINUSE: number;
367
- const WSAEADDRNOTAVAIL: number;
368
- const WSAENETDOWN: number;
369
- const WSAENETUNREACH: number;
370
- const WSAENETRESET: number;
371
- const WSAECONNABORTED: number;
372
- const WSAECONNRESET: number;
373
- const WSAENOBUFS: number;
374
- const WSAEISCONN: number;
375
- const WSAENOTCONN: number;
376
- const WSAESHUTDOWN: number;
377
- const WSAETOOMANYREFS: number;
378
- const WSAETIMEDOUT: number;
379
- const WSAECONNREFUSED: number;
380
- const WSAELOOP: number;
381
- const WSAENAMETOOLONG: number;
382
- const WSAEHOSTDOWN: number;
383
- const WSAEHOSTUNREACH: number;
384
- const WSAENOTEMPTY: number;
385
- const WSAEPROCLIM: number;
386
- const WSAEUSERS: number;
387
- const WSAEDQUOT: number;
388
- const WSAESTALE: number;
389
- const WSAEREMOTE: number;
390
- const WSASYSNOTREADY: number;
391
- const WSAVERNOTSUPPORTED: number;
392
- const WSANOTINITIALISED: number;
393
- const WSAEDISCON: number;
394
- const WSAENOMORE: number;
395
- const WSAECANCELLED: number;
396
- const WSAEINVALIDPROCTABLE: number;
397
- const WSAEINVALIDPROVIDER: number;
398
- const WSAEPROVIDERFAILEDINIT: number;
399
- const WSASYSCALLFAILURE: number;
400
- const WSASERVICE_NOT_FOUND: number;
401
- const WSATYPE_NOT_FOUND: number;
402
- const WSA_E_NO_MORE: number;
403
- const WSA_E_CANCELLED: number;
404
- const WSAEREFUSED: number;
405
- }
406
- namespace dlopen {
407
- const RTLD_LAZY: number;
408
- const RTLD_NOW: number;
409
- const RTLD_GLOBAL: number;
410
- const RTLD_LOCAL: number;
411
- const RTLD_DEEPBIND: number;
412
- }
413
- namespace priority {
414
- const PRIORITY_LOW: number;
415
- const PRIORITY_BELOW_NORMAL: number;
416
- const PRIORITY_NORMAL: number;
417
- const PRIORITY_ABOVE_NORMAL: number;
418
- const PRIORITY_HIGH: number;
419
- const PRIORITY_HIGHEST: number;
420
- }
421
- }
422
- const devNull: string;
423
- /**
424
- * The operating system-specific end-of-line marker.
425
- * * `\n` on POSIX
426
- * * `\r\n` on Windows
427
- */
428
- const EOL: string;
429
- /**
430
- * Returns the operating system CPU architecture for which the Node.js binary was
431
- * compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`,
432
- * and `'x64'`.
433
- *
434
- * The return value is equivalent to [process.arch](https://nodejs.org/docs/latest-v20.x/api/process.html#processarch).
435
- * @since v0.5.0
436
- */
437
- function arch(): string;
438
- /**
439
- * Returns a string identifying the kernel version.
440
- *
441
- * On POSIX systems, the operating system release is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `RtlGetVersion()` is used, and if it is not
442
- * available, `GetVersionExW()` will be used. See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information.
443
- * @since v13.11.0, v12.17.0
444
- */
445
- function version(): string;
446
- /**
447
- * Returns a string identifying the operating system platform for which
448
- * the Node.js binary was compiled. The value is set at compile time.
449
- * Possible values are `'aix'`, `'darwin'`, `'freebsd'`, `'linux'`, `'openbsd'`, `'sunos'`, and `'win32'`.
450
- *
451
- * The return value is equivalent to `process.platform`.
452
- *
453
- * The value `'android'` may also be returned if Node.js is built on the Android
454
- * operating system. [Android support is experimental](https://github.com/nodejs/node/blob/HEAD/BUILDING.md#androidandroid-based-devices-eg-firefox-os).
455
- * @since v0.5.0
456
- */
457
- function platform(): NodeJS.Platform;
458
- /**
459
- * Returns the machine type as a string, such as `arm`, `arm64`, `aarch64`, `mips`, `mips64`, `ppc64`, `ppc64le`, `s390`, `s390x`, `i386`, `i686`, `x86_64`.
460
- *
461
- * On POSIX systems, the machine type is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `RtlGetVersion()` is used, and if it is not
462
- * available, `GetVersionExW()` will be used. See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information.
463
- * @since v18.9.0, v16.18.0
464
- */
465
- function machine(): string;
466
- /**
467
- * Returns the operating system's default directory for temporary files as a
468
- * string.
469
- * @since v0.9.9
470
- */
471
- function tmpdir(): string;
472
- /**
473
- * Returns a string identifying the endianness of the CPU for which the Node.js
474
- * binary was compiled.
475
- *
476
- * Possible values are `'BE'` for big endian and `'LE'` for little endian.
477
- * @since v0.9.4
478
- */
479
- function endianness(): "BE" | "LE";
480
- /**
481
- * Returns the scheduling priority for the process specified by `pid`. If `pid` is
482
- * not provided or is `0`, the priority of the current process is returned.
483
- * @since v10.10.0
484
- * @param [pid=0] The process ID to retrieve scheduling priority for.
485
- */
486
- function getPriority(pid?: number): number;
487
- /**
488
- * Attempts to set the scheduling priority for the process specified by `pid`. If `pid` is not provided or is `0`, the process ID of the current process is used.
489
- *
490
- * The `priority` input must be an integer between `-20` (high priority) and `19` (low priority). Due to differences between Unix priority levels and Windows
491
- * priority classes, `priority` is mapped to one of six priority constants in `os.constants.priority`. When retrieving a process priority level, this range
492
- * mapping may cause the return value to be slightly different on Windows. To avoid
493
- * confusion, set `priority` to one of the priority constants.
494
- *
495
- * On Windows, setting priority to `PRIORITY_HIGHEST` requires elevated user
496
- * privileges. Otherwise the set priority will be silently reduced to `PRIORITY_HIGH`.
497
- * @since v10.10.0
498
- * @param [pid=0] The process ID to set scheduling priority for.
499
- * @param priority The scheduling priority to assign to the process.
500
- */
501
- function setPriority(priority: number): void;
502
- function setPriority(pid: number, priority: number): void;
503
- }
504
- declare module "node:os" {
505
- export * from "os";
506
- }