@alanszp/core 11.0.0 → 12.0.3

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