cdk-common 2.0.222 → 2.0.225

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 (91) hide show
  1. package/.gitattributes +1 -0
  2. package/.jsii +3 -3
  3. package/lib/main.js +1 -1
  4. package/node_modules/@aws-cdk/assert/package.json +8 -8
  5. package/node_modules/@aws-cdk/cfnspec/package.json +3 -3
  6. package/node_modules/@aws-cdk/cfnspec/tsconfig.tsbuildinfo +5 -5
  7. package/node_modules/@aws-cdk/cloudformation-diff/package.json +5 -5
  8. package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
  9. package/node_modules/@types/concat-stream/node_modules/@types/node/fs.d.ts +1 -1
  10. package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
  11. package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
  12. package/node_modules/@types/form-data/node_modules/@types/node/fs.d.ts +1 -1
  13. package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
  14. package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/LICENSE +0 -0
  15. package/node_modules/@types/node/README.md +16 -0
  16. package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/assert.d.ts +35 -6
  17. package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/async_hooks.d.ts +96 -11
  18. package/node_modules/@types/node/buffer.d.ts +89 -0
  19. package/node_modules/@types/node/child_process.d.ts +514 -0
  20. package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/cluster.d.ts +43 -38
  21. package/node_modules/@types/node/console.d.ts +142 -0
  22. package/node_modules/@types/node/constants.d.ts +18 -0
  23. package/node_modules/@types/node/crypto.d.ts +1283 -0
  24. package/node_modules/@types/node/dgram.d.ts +144 -0
  25. package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/dns.d.ts +33 -12
  26. package/node_modules/@types/node/domain.d.ts +27 -0
  27. package/node_modules/@types/node/events.d.ts +82 -0
  28. package/node_modules/@types/node/fs/promises.d.ts +569 -0
  29. package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/fs.d.ts +736 -757
  30. package/node_modules/@types/node/globals.d.ts +746 -0
  31. package/node_modules/@types/node/globals.global.d.ts +1 -0
  32. package/node_modules/@types/node/http.d.ts +492 -0
  33. package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/http2.d.ts +289 -186
  34. package/node_modules/@types/node/https.d.ts +142 -0
  35. package/node_modules/@types/node/index.d.ts +98 -0
  36. package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/inspector.d.ts +1508 -1619
  37. package/node_modules/@types/node/module.d.ts +56 -0
  38. package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/net.d.ts +128 -71
  39. package/node_modules/@types/node/os.d.ts +242 -0
  40. package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/package.json +67 -23
  41. package/node_modules/@types/node/path.d.ts +168 -0
  42. package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/perf_hooks.d.ts +124 -19
  43. package/node_modules/@types/node/process.d.ts +413 -0
  44. package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/punycode.d.ts +11 -1
  45. package/node_modules/@types/node/querystring.d.ts +31 -0
  46. package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/readline.d.ts +55 -24
  47. package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/repl.d.ts +40 -22
  48. package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/stream.d.ts +103 -57
  49. package/node_modules/@types/node/string_decoder.d.ts +10 -0
  50. package/node_modules/@types/node/timers.d.ts +19 -0
  51. package/node_modules/@types/node/tls.d.ts +784 -0
  52. package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/trace_events.d.ts +7 -4
  53. package/node_modules/@types/node/tty.d.ts +69 -0
  54. package/node_modules/@types/node/url.d.ts +149 -0
  55. package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/util.d.ts +70 -41
  56. package/node_modules/@types/node/v8.d.ts +190 -0
  57. package/node_modules/@types/node/vm.d.ts +155 -0
  58. package/node_modules/@types/node/wasi.d.ts +89 -0
  59. package/node_modules/@types/node/worker_threads.d.ts +241 -0
  60. package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/zlib.d.ts +91 -54
  61. package/package.json +3 -3
  62. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/README.md +0 -16
  63. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/base.d.ts +0 -19
  64. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/buffer.d.ts +0 -16
  65. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/child_process.d.ts +0 -369
  66. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/console.d.ts +0 -3
  67. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/constants.d.ts +0 -449
  68. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/crypto.d.ts +0 -613
  69. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/dgram.d.ts +0 -97
  70. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/domain.d.ts +0 -16
  71. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/events.d.ts +0 -30
  72. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/globals.d.ts +0 -1066
  73. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/http.d.ts +0 -274
  74. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/https.d.ts +0 -51
  75. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/index.d.ts +0 -41
  76. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/module.d.ts +0 -3
  77. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/os.d.ts +0 -254
  78. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/path.d.ts +0 -159
  79. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/process.d.ts +0 -3
  80. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/querystring.d.ts +0 -17
  81. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/string_decoder.d.ts +0 -9
  82. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/timers.d.ts +0 -16
  83. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/tls.d.ts +0 -459
  84. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/ts3.6/assert.d.ts +0 -73
  85. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/ts3.6/base.d.ts +0 -54
  86. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/ts3.6/index.d.ts +0 -6
  87. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/tty.d.ts +0 -17
  88. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/url.d.ts +0 -104
  89. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/v8.d.ts +0 -28
  90. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/vm.d.ts +0 -81
  91. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/worker_threads.d.ts +0 -124
@@ -1,18 +1,18 @@
1
- declare module "cluster" {
2
- import * as child from "child_process";
3
- import * as events from "events";
4
- import * as net from "net";
1
+ declare module 'cluster' {
2
+ import * as child from 'child_process';
3
+ import EventEmitter = require('events');
4
+ import * as net from 'net';
5
5
 
6
6
  // interfaces
7
7
  interface ClusterSettings {
8
- execArgv?: string[]; // default: process.execArgv
9
- exec?: string;
10
- args?: string[];
11
- silent?: boolean;
12
- stdio?: any[];
13
- uid?: number;
14
- gid?: number;
15
- inspectPort?: number | (() => number);
8
+ execArgv?: string[] | undefined; // default: process.execArgv
9
+ exec?: string | undefined;
10
+ args?: string[] | undefined;
11
+ silent?: boolean | undefined;
12
+ stdio?: any[] | undefined;
13
+ uid?: number | undefined;
14
+ gid?: number | undefined;
15
+ inspectPort?: number | (() => number) | undefined;
16
16
  }
17
17
 
18
18
  interface Address {
@@ -21,10 +21,10 @@ declare module "cluster" {
21
21
  addressType: number | "udp4" | "udp6"; // 4, 6, -1, "udp4", "udp6"
22
22
  }
23
23
 
24
- class Worker extends events.EventEmitter {
24
+ class Worker extends EventEmitter {
25
25
  id: number;
26
26
  process: child.ChildProcess;
27
- send(message: any, sendHandle?: any, callback?: (error: Error) => void): boolean;
27
+ send(message: child.Serializable, sendHandle?: child.SendHandle, callback?: (error: Error | null) => void): boolean;
28
28
  kill(signal?: string): void;
29
29
  destroy(signal?: string): void;
30
30
  disconnect(): void;
@@ -90,19 +90,20 @@ declare module "cluster" {
90
90
  prependOnceListener(event: "online", listener: () => void): this;
91
91
  }
92
92
 
93
- interface Cluster extends events.EventEmitter {
93
+ interface Cluster extends EventEmitter {
94
94
  Worker: Worker;
95
- disconnect(callback?: Function): void;
95
+ disconnect(callback?: () => void): void;
96
96
  fork(env?: any): Worker;
97
97
  isMaster: boolean;
98
98
  isWorker: boolean;
99
- // TODO: cluster.schedulingPolicy
99
+ schedulingPolicy: number;
100
100
  settings: ClusterSettings;
101
101
  setupMaster(settings?: ClusterSettings): void;
102
- worker?: Worker;
103
- workers?: {
104
- [index: string]: Worker | undefined
105
- };
102
+ worker?: Worker | undefined;
103
+ workers?: NodeJS.Dict<Worker> | undefined;
104
+
105
+ readonly SCHED_NONE: number;
106
+ readonly SCHED_RR: number;
106
107
 
107
108
  /**
108
109
  * events.EventEmitter
@@ -121,7 +122,7 @@ declare module "cluster" {
121
122
  addListener(event: "listening", listener: (worker: Worker, address: Address) => void): this;
122
123
  addListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
123
124
  addListener(event: "online", listener: (worker: Worker) => void): this;
124
- addListener(event: "setup", listener: (settings: any) => void): this;
125
+ addListener(event: "setup", listener: (settings: ClusterSettings) => void): this;
125
126
 
126
127
  emit(event: string | symbol, ...args: any[]): boolean;
127
128
  emit(event: "disconnect", worker: Worker): boolean;
@@ -130,7 +131,7 @@ declare module "cluster" {
130
131
  emit(event: "listening", worker: Worker, address: Address): boolean;
131
132
  emit(event: "message", worker: Worker, message: any, handle: net.Socket | net.Server): boolean;
132
133
  emit(event: "online", worker: Worker): boolean;
133
- emit(event: "setup", settings: any): boolean;
134
+ emit(event: "setup", settings: ClusterSettings): boolean;
134
135
 
135
136
  on(event: string, listener: (...args: any[]) => void): this;
136
137
  on(event: "disconnect", listener: (worker: Worker) => void): this;
@@ -139,7 +140,7 @@ declare module "cluster" {
139
140
  on(event: "listening", listener: (worker: Worker, address: Address) => void): this;
140
141
  on(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
141
142
  on(event: "online", listener: (worker: Worker) => void): this;
142
- on(event: "setup", listener: (settings: any) => void): this;
143
+ on(event: "setup", listener: (settings: ClusterSettings) => void): this;
143
144
 
144
145
  once(event: string, listener: (...args: any[]) => void): this;
145
146
  once(event: "disconnect", listener: (worker: Worker) => void): this;
@@ -148,7 +149,7 @@ declare module "cluster" {
148
149
  once(event: "listening", listener: (worker: Worker, address: Address) => void): this;
149
150
  once(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
150
151
  once(event: "online", listener: (worker: Worker) => void): this;
151
- once(event: "setup", listener: (settings: any) => void): this;
152
+ once(event: "setup", listener: (settings: ClusterSettings) => void): this;
152
153
 
153
154
  prependListener(event: string, listener: (...args: any[]) => void): this;
154
155
  prependListener(event: "disconnect", listener: (worker: Worker) => void): this;
@@ -157,7 +158,7 @@ declare module "cluster" {
157
158
  prependListener(event: "listening", listener: (worker: Worker, address: Address) => void): this;
158
159
  prependListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
159
160
  prependListener(event: "online", listener: (worker: Worker) => void): this;
160
- prependListener(event: "setup", listener: (settings: any) => void): this;
161
+ prependListener(event: "setup", listener: (settings: ClusterSettings) => void): this;
161
162
 
162
163
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
163
164
  prependOnceListener(event: "disconnect", listener: (worker: Worker) => void): this;
@@ -167,20 +168,21 @@ declare module "cluster" {
167
168
  // the handle is a net.Socket or net.Server object, or undefined.
168
169
  prependOnceListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this;
169
170
  prependOnceListener(event: "online", listener: (worker: Worker) => void): this;
170
- prependOnceListener(event: "setup", listener: (settings: any) => void): this;
171
+ prependOnceListener(event: "setup", listener: (settings: ClusterSettings) => void): this;
171
172
  }
172
173
 
173
- function disconnect(callback?: Function): void;
174
+ const SCHED_NONE: number;
175
+ const SCHED_RR: number;
176
+
177
+ function disconnect(callback?: () => void): void;
174
178
  function fork(env?: any): Worker;
175
179
  const isMaster: boolean;
176
180
  const isWorker: boolean;
177
- // TODO: cluster.schedulingPolicy
181
+ let schedulingPolicy: number;
178
182
  const settings: ClusterSettings;
179
183
  function setupMaster(settings?: ClusterSettings): void;
180
184
  const worker: Worker;
181
- const workers: {
182
- [index: string]: Worker | undefined
183
- };
185
+ const workers: NodeJS.Dict<Worker>;
184
186
 
185
187
  /**
186
188
  * events.EventEmitter
@@ -200,7 +202,7 @@ declare module "cluster" {
200
202
  // the handle is a net.Socket or net.Server object, or undefined.
201
203
  function addListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster;
202
204
  function addListener(event: "online", listener: (worker: Worker) => void): Cluster;
203
- function addListener(event: "setup", listener: (settings: any) => void): Cluster;
205
+ function addListener(event: "setup", listener: (settings: ClusterSettings) => void): Cluster;
204
206
 
205
207
  function emit(event: string | symbol, ...args: any[]): boolean;
206
208
  function emit(event: "disconnect", worker: Worker): boolean;
@@ -209,7 +211,7 @@ declare module "cluster" {
209
211
  function emit(event: "listening", worker: Worker, address: Address): boolean;
210
212
  function emit(event: "message", worker: Worker, message: any, handle: net.Socket | net.Server): boolean;
211
213
  function emit(event: "online", worker: Worker): boolean;
212
- function emit(event: "setup", settings: any): boolean;
214
+ function emit(event: "setup", settings: ClusterSettings): boolean;
213
215
 
214
216
  function on(event: string, listener: (...args: any[]) => void): Cluster;
215
217
  function on(event: "disconnect", listener: (worker: Worker) => void): Cluster;
@@ -218,7 +220,7 @@ declare module "cluster" {
218
220
  function on(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster;
219
221
  function on(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; // the handle is a net.Socket or net.Server object, or undefined.
220
222
  function on(event: "online", listener: (worker: Worker) => void): Cluster;
221
- function on(event: "setup", listener: (settings: any) => void): Cluster;
223
+ function on(event: "setup", listener: (settings: ClusterSettings) => void): Cluster;
222
224
 
223
225
  function once(event: string, listener: (...args: any[]) => void): Cluster;
224
226
  function once(event: "disconnect", listener: (worker: Worker) => void): Cluster;
@@ -227,7 +229,7 @@ declare module "cluster" {
227
229
  function once(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster;
228
230
  function once(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; // the handle is a net.Socket or net.Server object, or undefined.
229
231
  function once(event: "online", listener: (worker: Worker) => void): Cluster;
230
- function once(event: "setup", listener: (settings: any) => void): Cluster;
232
+ function once(event: "setup", listener: (settings: ClusterSettings) => void): Cluster;
231
233
 
232
234
  function removeListener(event: string, listener: (...args: any[]) => void): Cluster;
233
235
  function removeAllListeners(event?: string): Cluster;
@@ -244,7 +246,7 @@ declare module "cluster" {
244
246
  // the handle is a net.Socket or net.Server object, or undefined.
245
247
  function prependListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster;
246
248
  function prependListener(event: "online", listener: (worker: Worker) => void): Cluster;
247
- function prependListener(event: "setup", listener: (settings: any) => void): Cluster;
249
+ function prependListener(event: "setup", listener: (settings: ClusterSettings) => void): Cluster;
248
250
 
249
251
  function prependOnceListener(event: string, listener: (...args: any[]) => void): Cluster;
250
252
  function prependOnceListener(event: "disconnect", listener: (worker: Worker) => void): Cluster;
@@ -254,7 +256,10 @@ declare module "cluster" {
254
256
  // the handle is a net.Socket or net.Server object, or undefined.
255
257
  function prependOnceListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster;
256
258
  function prependOnceListener(event: "online", listener: (worker: Worker) => void): Cluster;
257
- function prependOnceListener(event: "setup", listener: (settings: any) => void): Cluster;
259
+ function prependOnceListener(event: "setup", listener: (settings: ClusterSettings) => void): Cluster;
258
260
 
259
261
  function eventNames(): string[];
260
262
  }
263
+ declare module 'node:cluster' {
264
+ export * from 'cluster';
265
+ }
@@ -0,0 +1,142 @@
1
+ declare module 'console' {
2
+ import console = require('node:console');
3
+ export = console;
4
+ }
5
+ declare module 'node:console' {
6
+ import { InspectOptions } from 'util';
7
+
8
+ global {
9
+ // This needs to be global to avoid TS2403 in case lib.dom.d.ts is present in the same build
10
+ interface Console {
11
+ Console: NodeJS.ConsoleConstructor;
12
+ /**
13
+ * A simple assertion test that verifies whether `value` is truthy.
14
+ * If it is not, an `AssertionError` is thrown.
15
+ * If provided, the error `message` is formatted using `util.format()` and used as the error message.
16
+ */
17
+ assert(value: any, message?: string, ...optionalParams: any[]): void;
18
+ /**
19
+ * When `stdout` is a TTY, calling `console.clear()` will attempt to clear the TTY.
20
+ * When `stdout` is not a TTY, this method does nothing.
21
+ */
22
+ clear(): void;
23
+ /**
24
+ * Maintains an internal counter specific to `label` and outputs to `stdout` the number of times `console.count()` has been called with the given `label`.
25
+ */
26
+ count(label?: string): void;
27
+ /**
28
+ * Resets the internal counter specific to `label`.
29
+ */
30
+ countReset(label?: string): void;
31
+ /**
32
+ * The `console.debug()` function is an alias for {@link console.log}.
33
+ */
34
+ debug(message?: any, ...optionalParams: any[]): void;
35
+ /**
36
+ * Uses {@link util.inspect} on `obj` and prints the resulting string to `stdout`.
37
+ * This function bypasses any custom `inspect()` function defined on `obj`.
38
+ */
39
+ dir(obj: any, options?: InspectOptions): void;
40
+ /**
41
+ * This method calls {@link console.log} passing it the arguments received. Please note that this method does not produce any XML formatting
42
+ */
43
+ dirxml(...data: any[]): void;
44
+ /**
45
+ * Prints to `stderr` with newline.
46
+ */
47
+ error(message?: any, ...optionalParams: any[]): void;
48
+ /**
49
+ * Increases indentation of subsequent lines by two spaces.
50
+ * If one or more `label`s are provided, those are printed first without the additional indentation.
51
+ */
52
+ group(...label: any[]): void;
53
+ /**
54
+ * The `console.groupCollapsed()` function is an alias for {@link console.group}.
55
+ */
56
+ groupCollapsed(...label: any[]): void;
57
+ /**
58
+ * Decreases indentation of subsequent lines by two spaces.
59
+ */
60
+ groupEnd(): void;
61
+ /**
62
+ * The {@link console.info} function is an alias for {@link console.log}.
63
+ */
64
+ info(message?: any, ...optionalParams: any[]): void;
65
+ /**
66
+ * Prints to `stdout` with newline.
67
+ */
68
+ log(message?: any, ...optionalParams: any[]): void;
69
+ /**
70
+ * This method does not display anything unless used in the inspector.
71
+ * Prints to `stdout` the array `array` formatted as a table.
72
+ */
73
+ table(tabularData: any, properties?: ReadonlyArray<string>): void;
74
+ /**
75
+ * Starts a timer that can be used to compute the duration of an operation. Timers are identified by a unique `label`.
76
+ */
77
+ time(label?: string): void;
78
+ /**
79
+ * Stops a timer that was previously started by calling {@link console.time} and prints the result to `stdout`.
80
+ */
81
+ timeEnd(label?: string): void;
82
+ /**
83
+ * For a timer that was previously started by calling {@link console.time}, prints the elapsed time and other `data` arguments to `stdout`.
84
+ */
85
+ timeLog(label?: string, ...data: any[]): void;
86
+ /**
87
+ * Prints to `stderr` the string 'Trace :', followed by the {@link util.format} formatted message and stack trace to the current position in the code.
88
+ */
89
+ trace(message?: any, ...optionalParams: any[]): void;
90
+ /**
91
+ * The {@link console.warn} function is an alias for {@link console.error}.
92
+ */
93
+ warn(message?: any, ...optionalParams: any[]): void;
94
+
95
+ // --- Inspector mode only ---
96
+ /**
97
+ * This method does not display anything unless used in the inspector.
98
+ * Starts a JavaScript CPU profile with an optional label.
99
+ */
100
+ profile(label?: string): void;
101
+ /**
102
+ * This method does not display anything unless used in the inspector.
103
+ * Stops the current JavaScript CPU profiling session if one has been started and prints the report to the Profiles panel of the inspector.
104
+ */
105
+ profileEnd(label?: string): void;
106
+ /**
107
+ * This method does not display anything unless used in the inspector.
108
+ * Adds an event with the label `label` to the Timeline panel of the inspector.
109
+ */
110
+ timeStamp(label?: string): void;
111
+ }
112
+
113
+ var console: Console;
114
+
115
+ namespace NodeJS {
116
+ interface ConsoleConstructorOptions {
117
+ stdout: WritableStream;
118
+ stderr?: WritableStream | undefined;
119
+ ignoreErrors?: boolean | undefined;
120
+ colorMode?: boolean | 'auto' | undefined;
121
+ inspectOptions?: InspectOptions | undefined;
122
+ /**
123
+ * Set group indentation
124
+ * @default 2
125
+ */
126
+ groupIndentation?: number | undefined;
127
+ }
128
+
129
+ interface ConsoleConstructor {
130
+ prototype: Console;
131
+ new(stdout: WritableStream, stderr?: WritableStream, ignoreErrors?: boolean): Console;
132
+ new(options: ConsoleConstructorOptions): Console;
133
+ }
134
+
135
+ interface Global {
136
+ console: typeof console;
137
+ }
138
+ }
139
+ }
140
+
141
+ export = console;
142
+ }
@@ -0,0 +1,18 @@
1
+ /** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
2
+ declare module 'constants' {
3
+ import { constants as osConstants, SignalConstants } from 'os';
4
+ import { constants as cryptoConstants } from 'crypto';
5
+ import { constants as fsConstants } from 'fs';
6
+
7
+ const exp: typeof osConstants.errno &
8
+ typeof osConstants.priority &
9
+ SignalConstants &
10
+ typeof cryptoConstants &
11
+ typeof fsConstants;
12
+ export = exp;
13
+ }
14
+
15
+ declare module 'node:constants' {
16
+ import constants = require('constants');
17
+ export = constants;
18
+ }